Class OpenGLFrameBuffer

    • Field Detail

      • m_uiFrameBufferID

        protected int m_uiFrameBufferID
        OpenGL FrameBufferID:
      • m_uiDepthBufferID

        protected int m_uiDepthBufferID
        OpenGL DepthBufferID:
      • m_auiTargetID

        protected int[] m_auiTargetID
        OpenGL TextureID:
      • m_kGL

        private com.jogamp.opengl.GL3 m_kGL
        JOGL GL for access to JOGL function calls.
      • ms_aDrawBuffers

        private static int[] ms_aDrawBuffers
    • Method Detail

      • ClearDrawable

        public void ClearDrawable()
        Clears the GLAutoDrawable object.
      • Disable

        public void Disable()
        Disables the OpenGLFramebuffer
        Specified by:
        Disable in class FrameBuffer
      • DrawBuffers

        public void DrawBuffers​(int[] aiSet)
        Enables the OpenGLFramebuffer
        Specified by:
        DrawBuffers in class FrameBuffer
      • Enable

        public void Enable()
        Enables the OpenGLFramebuffer
        Specified by:
        Enable in class FrameBuffer
      • InitializeBuffer

        public boolean InitializeBuffer()
        Initializes the OpenGLFrameBuffer.
        Returns:
        true on successful initialization, false otherwise.
      • InitializeBuffer

        public boolean InitializeBuffer​(Texture[] apkTarget)
        Initializes the OpenGLFrameBuffer.
        Returns:
        true on successful initialization, false otherwise.
      • SetDrawable

        public void SetDrawable​(com.jogamp.opengl.GLAutoDrawable drawable)
        Sets the GLAutoDrawable object for accessing JOGL function calls.
        Parameters:
        drawable - the GLAutoDrawable object.
      • SetZOffset

        public void SetZOffset​(int iZOffset)
      • TerminateBuffer

        public void TerminateBuffer()
        Deletes the OpenGLFramebuffer and Renderbuffer