Class OpenGLFrameBuffer
- java.lang.Object
-
- WildMagic.LibGraphics.Rendering.FrameBuffer
-
- WildMagic.LibRenderers.OpenGLRenderer.OpenGLFrameBuffer
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenGLFrameBuffer extends FrameBuffer
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class WildMagic.LibGraphics.Rendering.FrameBuffer
FrameBuffer.BufferingType, FrameBuffer.DepthType, FrameBuffer.FormatType, FrameBuffer.MultisamplingType, FrameBuffer.StencilType
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
m_auiTargetID
OpenGL TextureID:private com.jogamp.opengl.GL4
m_kGL
JOGL GL for access to JOGL function calls.protected int
m_uiDepthBufferID
OpenGL DepthBufferID:protected int
m_uiFrameBufferID
OpenGL FrameBufferID:private static int[]
ms_aDrawBuffers
private static long
serialVersionUID
-
Fields inherited from class WildMagic.LibGraphics.Rendering.FrameBuffer
m_apkTarget, m_eBuffering, m_eDepth, m_eFormat, m_eMultisampling, m_eStencil, m_pkRenderer
-
-
Constructor Summary
Constructors Constructor Description OpenGLFrameBuffer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, Renderer pkRenderer, com.jogamp.opengl.GLAutoDrawable drawable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ClearDrawable()
Clears the GLAutoDrawable object.void
Disable()
Disables the OpenGLFramebuffervoid
dispose()
Delete memoryvoid
DrawBuffers(int[] aiSet)
Enables the OpenGLFramebuffervoid
Enable()
Enables the OpenGLFramebufferboolean
InitializeBuffer()
Initializes the OpenGLFrameBuffer.boolean
InitializeBuffer(Texture[] apkTarget)
Initializes the OpenGLFrameBuffer.void
SetDrawable(com.jogamp.opengl.GLAutoDrawable drawable)
Sets the GLAutoDrawable object for accessing JOGL function calls.void
SetZOffset(int iZOffset)
void
TerminateBuffer()
Deletes the OpenGLFramebuffer and Renderbuffer-
Methods inherited from class WildMagic.LibGraphics.Rendering.FrameBuffer
GetBufferingType, GetDepthType, GetFormatType, GetMultisamplingType, GetRenderer, GetStencilType, GetTarget, SetTarget
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
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.GL4 m_kGL
JOGL GL for access to JOGL function calls.
-
ms_aDrawBuffers
private static int[] ms_aDrawBuffers
-
-
Constructor Detail
-
OpenGLFrameBuffer
public OpenGLFrameBuffer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, Renderer pkRenderer, com.jogamp.opengl.GLAutoDrawable drawable)
-
-
Method Detail
-
ClearDrawable
public void ClearDrawable()
Clears the GLAutoDrawable object.
-
Disable
public void Disable()
Disables the OpenGLFramebuffer- Specified by:
Disable
in classFrameBuffer
-
dispose
public void dispose()
Delete memory- Overrides:
dispose
in classFrameBuffer
-
DrawBuffers
public void DrawBuffers(int[] aiSet)
Enables the OpenGLFramebuffer- Specified by:
DrawBuffers
in classFrameBuffer
-
Enable
public void Enable()
Enables the OpenGLFramebuffer- Specified by:
Enable
in classFrameBuffer
-
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
-
-