public class OpenGLFrameBuffer extends FrameBuffer
FrameBuffer.BufferingType, FrameBuffer.DepthType, FrameBuffer.FormatType, FrameBuffer.MultisamplingType, FrameBuffer.StencilType
Modifier and Type | Field and Description |
---|---|
protected int[] |
m_auiTargetID
OpenGL TextureID:
|
private javax.media.opengl.GL3 |
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 |
m_apkTarget, m_eBuffering, m_eDepth, m_eFormat, m_eMultisampling, m_eStencil, m_pkRenderer
Constructor and Description |
---|
OpenGLFrameBuffer(FrameBuffer.FormatType eFormat,
FrameBuffer.DepthType eDepth,
FrameBuffer.StencilType eStencil,
FrameBuffer.BufferingType eBuffering,
FrameBuffer.MultisamplingType eMultisampling,
Renderer pkRenderer,
javax.media.opengl.GLAutoDrawable drawable) |
Modifier and Type | Method and Description |
---|---|
void |
ClearDrawable()
Clears the GLAutoDrawable object.
|
void |
Disable()
Disables the OpenGLFramebuffer
|
void |
dispose()
Delete memory
|
void |
DrawBuffers(int[] aiSet)
Enables the OpenGLFramebuffer
|
void |
Enable()
Enables the OpenGLFramebuffer
|
boolean |
InitializeBuffer()
Initializes the OpenGLFrameBuffer.
|
boolean |
InitializeBuffer(Texture[] apkTarget)
Initializes the OpenGLFrameBuffer.
|
void |
SetDrawable(javax.media.opengl.GLAutoDrawable drawable)
Sets the GLAutoDrawable object for accessing JOGL function calls.
|
void |
SetZOffset(int iZOffset) |
void |
TerminateBuffer()
Deletes the OpenGLFramebuffer and Renderbuffer
|
GetBufferingType, GetDepthType, GetFormatType, GetMultisamplingType, GetRenderer, GetStencilType, GetTarget, SetTarget
private static final long serialVersionUID
protected int m_uiFrameBufferID
protected int m_uiDepthBufferID
protected int[] m_auiTargetID
private javax.media.opengl.GL3 m_kGL
private static int[] ms_aDrawBuffers
public OpenGLFrameBuffer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, Renderer pkRenderer, javax.media.opengl.GLAutoDrawable drawable)
public void ClearDrawable()
public void Disable()
Disable
in class FrameBuffer
public void dispose()
dispose
in class FrameBuffer
public void DrawBuffers(int[] aiSet)
DrawBuffers
in class FrameBuffer
public void Enable()
Enable
in class FrameBuffer
public boolean InitializeBuffer()
public boolean InitializeBuffer(Texture[] apkTarget)
public void SetDrawable(javax.media.opengl.GLAutoDrawable drawable)
drawable
- the GLAutoDrawable object.public void SetZOffset(int iZOffset)
public void TerminateBuffer()