Package WildMagic.LibGraphics.Rendering
Class FrameBuffer
- java.lang.Object
-
- WildMagic.LibGraphics.Rendering.FrameBuffer
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
OpenGLFrameBuffer
public abstract class FrameBuffer extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFrameBuffer.BufferingTypeFrame buffer buffering type:static classFrameBuffer.DepthTypeFrame buffer depth type:static classFrameBuffer.FormatTypeFrame buffer format type:static classFrameBuffer.MultisamplingTypeFrame buffer multi-sampling type:static classFrameBuffer.StencilTypeFrame buffer stencil type:
-
Field Summary
Fields Modifier and Type Field Description protected Texture[]m_apkTargetFrameBuffer Texture target when render-to-texture:protected FrameBuffer.BufferingTypem_eBufferingFrameBuffer buffering type:protected FrameBuffer.DepthTypem_eDepthFrameBuffer depth type:protected FrameBuffer.FormatTypem_eFormatFrameBuffer format type:protected FrameBuffer.MultisamplingTypem_eMultisamplingFrameBuffer multi-sampling type:protected FrameBuffer.StencilTypem_eStencilFrameBuffer stencil type:protected Rendererm_pkRendererFrameBuffer Renderer:private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description FrameBuffer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, Renderer pkRenderer, Texture[] apkTarget)Create a new FrameBuffer
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidDisable()Disable frame buffer:voiddispose()Delete memory.abstract voidDrawBuffers(int[] aiSet)abstract voidEnable()Enable frame buffer:FrameBuffer.BufferingTypeGetBufferingType()Get buffering type.FrameBuffer.DepthTypeGetDepthType()Get depth type.FrameBuffer.FormatTypeGetFormatType()Get format type.FrameBuffer.MultisamplingTypeGetMultisamplingType()Get multi-sampling type.RendererGetRenderer()Get Renderer.FrameBuffer.StencilTypeGetStencilType()Get stencil type.TextureGetTarget(int i)Get Texture target.voidSetTarget(int i, Texture kTarget)Set Texture target.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_eFormat
protected FrameBuffer.FormatType m_eFormat
FrameBuffer format type:
-
m_eDepth
protected FrameBuffer.DepthType m_eDepth
FrameBuffer depth type:
-
m_eStencil
protected FrameBuffer.StencilType m_eStencil
FrameBuffer stencil type:
-
m_eBuffering
protected FrameBuffer.BufferingType m_eBuffering
FrameBuffer buffering type:
-
m_eMultisampling
protected FrameBuffer.MultisamplingType m_eMultisampling
FrameBuffer multi-sampling type:
-
m_pkRenderer
protected Renderer m_pkRenderer
FrameBuffer Renderer:
-
m_apkTarget
protected Texture[] m_apkTarget
FrameBuffer Texture target when render-to-texture:
-
-
Constructor Detail
-
FrameBuffer
public FrameBuffer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, Renderer pkRenderer, Texture[] apkTarget)
Create a new FrameBuffer- Parameters:
eFormat- format typeeDepth- depth typeeStencil- stencil typeeBuffering- buffering typeeMultisampling- multi-sampling typepkRenderer- Renderer object.pkTarget- Texture target, when render-to-texture.
-
-
Method Detail
-
Disable
public abstract void Disable()
Disable frame buffer:
-
dispose
public void dispose()
Delete memory.
-
DrawBuffers
public abstract void DrawBuffers(int[] aiSet)
-
Enable
public abstract void Enable()
Enable frame buffer:
-
GetBufferingType
public final FrameBuffer.BufferingType GetBufferingType()
Get buffering type.- Returns:
- buffering type.
-
GetDepthType
public final FrameBuffer.DepthType GetDepthType()
Get depth type.- Returns:
- depth type.
-
GetFormatType
public final FrameBuffer.FormatType GetFormatType()
Get format type.- Returns:
- format type.
-
GetMultisamplingType
public final FrameBuffer.MultisamplingType GetMultisamplingType()
Get multi-sampling type.- Returns:
- multi-sampling type.
-
GetRenderer
public final Renderer GetRenderer()
Get Renderer.- Returns:
- Renderer.
-
GetStencilType
public final FrameBuffer.StencilType GetStencilType()
Get stencil type.- Returns:
- stencil type.
-
GetTarget
public final Texture GetTarget(int i)
Get Texture target.- Returns:
- texture target.
-
SetTarget
public void SetTarget(int i, Texture kTarget)Set Texture target.- Parameters:
texture- target.
-
-