|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.aviatrix3d.rendering.BufferSetupData
public class BufferSetupData
Internal representation of the various states that a buffer can request for its rendering.
Constructor Summary | |
---|---|
BufferSetupData()
Create a default instance of the buffer setup data. |
Method Summary | |
---|---|
void |
enableFloatingPointColorBuffer(boolean enable)
Set the enabled state of floating point colour buffers. |
void |
enableUnclampedColorBuffer(boolean enable)
Set the enabled state of clamped colour values. |
int |
getDepthBits()
Return the number of bits that should be used in the depth buffer implementation. |
int |
getNumAASamples()
Return the number of samples that should be used for FSAA. |
int |
getNumRenderTargets()
Return the number render targets that should be used for this buffer. |
int |
getRenderTargetIndex()
Return the index of the render target this represents |
int |
getStencilBits()
Return the number of bits that should be used in the stencil buffer implementation. |
void |
setDepthBits(int depth)
Set the number of bits of precsions the depth buffer should have. |
void |
setNumAASamples(int samples)
Set the number of samples that should be used for full screen antialiasing. |
void |
setNumRenderTargets(int count)
Set the number of render targets to create in the underlying buffer. |
void |
setRenderTargetIndex(int index)
Set the index of this buffer's render target in the underlying FBO. |
void |
setStencilBits(int depth)
Set the number of bit planes to use in the stencil buffer. |
boolean |
useFloatingPointColorBuffer()
Enable the use of floating point colour buffers rather than fixed point of the default GL pipeline. |
boolean |
useUnclampedColorBuffer()
Enable the use of unclamped floating point colour buffers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferSetupData()
Method Detail |
---|
public void enableFloatingPointColorBuffer(boolean enable)
enable
- True to enable the use of colour bufferspublic boolean useFloatingPointColorBuffer()
public void enableUnclampedColorBuffer(boolean enable)
enable
- True to remove the clamping of colour values in the outputpublic boolean useUnclampedColorBuffer()
useFloatingPointColorBuffer()
returns true. Ignored otherwise.
Defaults to returning false to mimic traditional GL fixed point pipeline
behaviour.
public void setDepthBits(int depth)
depth
- The number of bits to use. Should be 0, 16, 24 or 32public int getDepthBits()
public void setStencilBits(int depth)
depth
- The stencil bit depth to usepublic int getStencilBits()
public void setNumAASamples(int samples)
samples
- The number of samples to use. Should be a positive power
of two or zero to disablepublic int getNumAASamples()
public void setNumRenderTargets(int count)
count
- The number of targets to usepublic int getNumRenderTargets()
public void setRenderTargetIndex(int index)
index
- The index of this render targetpublic int getRenderTargetIndex()
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |