Class DynamicLineSetPainter.DynamicLineSetPainterProgram

    • Field Detail

      • lineVertShader_GLSL

        public static final String lineVertShader_GLSL
      • lineGeomShader_GLSL

        public static final String lineGeomShader_GLSL
      • lineFragShader_GLSL

        public static final String lineFragShader_GLSL
    • Constructor Detail

      • DynamicLineSetPainterProgram

        public DynamicLineSetPainterProgram()
    • 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)
      • 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 before begin(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.