Class ShaderRenderer3d

  • All Implemented Interfaces:
    com.jogamp.opengl.GLEventListener, EventListener

    public class ShaderRenderer3d
    extends Renderer3d
    • Field Detail

      • autoSwapBuffer

        protected boolean autoSwapBuffer
      • DEBUG

        protected static boolean DEBUG
      • DECOMPOSE_VIEW

        public static boolean DECOMPOSE_VIEW
    • Constructor Detail

      • ShaderRenderer3d

        public ShaderRenderer3d​(View view,
                                boolean traceGL,
                                boolean debugGL)
      • ShaderRenderer3d

        public ShaderRenderer3d​(View view,
                                boolean traceGL,
                                boolean debugGL,
                                IShaderable shaderable)
    • Method Detail

      • init

        public void init​(com.jogamp.opengl.GLAutoDrawable drawable)
        Description copied from class: Renderer3d
        Called when the GLAutoDrawable is rendered for the first time. When one calls Scene.init() function, this function is called and makes the OpenGL buffers initialization. Note: in this implementation, GL Exceptions are not triggered. To do so, make te following call at the beginning of the init() body: canvas.setGL( new DebugGL(canvas.getGL()) );
        Specified by:
        init in interface com.jogamp.opengl.GLEventListener
        Overrides:
        init in class Renderer3d
      • display

        public void display​(com.jogamp.opengl.GLAutoDrawable drawable)
        Description copied from class: Renderer3d
        Called when the GLAutoDrawable requires a rendering. All call to rendering methods should appear here.
        Specified by:
        display in interface com.jogamp.opengl.GLEventListener
        Overrides:
        display in class Renderer3d
      • preDisplay

        public void preDisplay​(com.jogamp.opengl.GL2 gl)
      • postDisplay

        public void postDisplay​(com.jogamp.opengl.GL2 gl)
      • getShaderContentRenderer

        public static IGLRenderer getShaderContentRenderer​(View view)
      • reshape

        public void reshape​(com.jogamp.opengl.GLAutoDrawable drawable,
                            int x,
                            int y,
                            int width,
                            int height)
        Rebuild all depth peeling buffers for the new screen size.
        Specified by:
        reshape in interface com.jogamp.opengl.GLEventListener
        Overrides:
        reshape in class Renderer3d
      • dispose

        public void dispose​(com.jogamp.opengl.GLAutoDrawable drawable)
        Specified by:
        dispose in interface com.jogamp.opengl.GLEventListener
        Overrides:
        dispose in class Renderer3d