Class DynamicLineSetPainter.DynamicLineSetPainterProgram
- java.lang.Object
-
- com.metsci.glimpse.core.painter.shape.DynamicLineSetPainter.DynamicLineSetPainterProgram
-
- Enclosing class:
- DynamicLineSetPainter
public static class DynamicLineSetPainter.DynamicLineSetPainterProgram extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicLineSetPainter.DynamicLineSetPainterProgram.LineProgramHandles
-
Field Summary
Fields Modifier and Type Field Description static StringlineFragShader_GLSLstatic StringlineGeomShader_GLSLstatic StringlineVertShader_GLSL
-
Constructor Summary
Constructors Constructor Description DynamicLineSetPainterProgram()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(com.jogamp.opengl.GL2ES2 gl)voiddispose(com.jogamp.opengl.GL2ES2 gl)Deletes the program, and resets this object to the way it was beforebegin(GL2ES2)was first called.voiddraw(com.jogamp.opengl.GL2ES2 gl, int mode, GLStreamingBuffer xyVbo, GLStreamingBuffer rgbaVbo, int first, int count)voidend(com.jogamp.opengl.GL2ES2 gl)DynamicLineSetPainter.DynamicLineSetPainterProgram.LineProgramHandleshandles(com.jogamp.opengl.GL2ES2 gl)Returns the raw GL handles for the shader program, uniforms, and attributes.voidsetAxisOrtho(com.jogamp.opengl.GL2ES2 gl, Axis2D axis)voidsetOrtho(com.jogamp.opengl.GL2ES2 gl, float xMin, float xMax, float yMin, float yMax)voidsetPixelOrtho(com.jogamp.opengl.GL2ES2 gl, GlimpseBounds bounds)voidsetStyle(com.jogamp.opengl.GL2ES2 gl, LineStyle style)voidsetViewport(com.jogamp.opengl.GL2ES2 gl, int viewportWidth, int viewportHeight)voidsetViewport(com.jogamp.opengl.GL2ES2 gl, GlimpseBounds bounds)voidsetWrapper(com.jogamp.opengl.GL2ES2 gl, float xMin, float xMax, float yMin, float yMax)voidsetWrapper(com.jogamp.opengl.GL2ES2 gl, Wrapper2D wrapper)
-
-
-
Method Detail
-
handles
public DynamicLineSetPainter.DynamicLineSetPainterProgram.LineProgramHandles handles(com.jogamp.opengl.GL2ES2 gl)
Returns the raw GL handles for the shader program, uniforms, and attributes. Compiles and links the program, if necessary.It is perfectly acceptable to use these handles directly, rather than calling the convenience methods in this class. However, the convenience methods are intended to be a fairly stable API, whereas the handles may change frequently.
-
begin
public void begin(com.jogamp.opengl.GL2ES2 gl)
-
setViewport
public void setViewport(com.jogamp.opengl.GL2ES2 gl, GlimpseBounds bounds)
-
setViewport
public void setViewport(com.jogamp.opengl.GL2ES2 gl, int viewportWidth, int viewportHeight)
-
setAxisOrtho
public void setAxisOrtho(com.jogamp.opengl.GL2ES2 gl, Axis2D axis)
-
setPixelOrtho
public void setPixelOrtho(com.jogamp.opengl.GL2ES2 gl, GlimpseBounds bounds)
-
setOrtho
public void setOrtho(com.jogamp.opengl.GL2ES2 gl, float xMin, float xMax, float yMin, float yMax)
-
setWrapper
public void setWrapper(com.jogamp.opengl.GL2ES2 gl, Wrapper2D wrapper)
-
setWrapper
public void setWrapper(com.jogamp.opengl.GL2ES2 gl, float xMin, float xMax, float yMin, float yMax)
-
setStyle
public void setStyle(com.jogamp.opengl.GL2ES2 gl, LineStyle style)
-
draw
public void draw(com.jogamp.opengl.GL2ES2 gl, int mode, GLStreamingBuffer xyVbo, GLStreamingBuffer rgbaVbo, int first, int count)
-
end
public void end(com.jogamp.opengl.GL2ES2 gl)
-
dispose
public void dispose(com.jogamp.opengl.GL2ES2 gl)
Deletes the program, and resets this object to the way it was beforebegin(GL2ES2)was first called.This object can be safely reused after being disposed, but in most cases there is no significant advantage to doing so.
-
-