|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BufferStateRenderable
Marker describing a renderable object that is used to control one of the OpenGL buffer states.
The buffer state renderables are only used at the beginning of a rendering pass as part of a Scene object. Buffer state renderables may be issued once at the beginning of a drawing run and then never again. In multipass rendering where you may want to accumulate state over multiple runs, one instance may start the state, then several are used to change the state between runs, and finally it is cleared at the end of the last run.
Field Summary | |
---|---|
static int |
ACCUMULATION_BUFFER
The buffer state represents Accumulation buffers |
static int |
COLOR_BUFFER
The buffer state represents colour buffers |
static int |
DEPTH_BUFFER
The buffer state represents depth buffers |
static int |
GENERAL_BUFFER
The buffer state represents general buffer management |
static int |
STENCIL_BUFFER
The buffer state represents stencil buffers |
Method Summary | |
---|---|
boolean |
checkClearBufferState()
Check to see if this buffer should be cleared at the start of this run. |
void |
clearBufferState(javax.media.opengl.GL gl)
Restore all state to the default values. |
int |
getBufferBitMask()
Get the GL buffer bit flag that this state class represents. |
int |
getBufferType()
Get the type of buffer this state represents. |
void |
setBufferState(javax.media.opengl.GL gl)
Issue ogl commands needed for this buffer to set the initial state, including the initial enabling. |
void |
updateBufferState(javax.media.opengl.GL gl)
Issue ogl commands needed for this component to change the state, assuming that it is already enabled. |
Methods inherited from interface org.j3d.aviatrix3d.rendering.Renderable |
---|
equals |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final int ACCUMULATION_BUFFER
static final int STENCIL_BUFFER
static final int DEPTH_BUFFER
static final int COLOR_BUFFER
static final int GENERAL_BUFFER
Method Detail |
---|
int getBufferType()
int getBufferBitMask()
boolean checkClearBufferState()
void setBufferState(javax.media.opengl.GL gl)
gl
- The gl context to draw withvoid updateBufferState(javax.media.opengl.GL gl)
gl
- The gl context to draw withvoid clearBufferState(javax.media.opengl.GL gl)
gl
- The gl context to draw with
|
Aviatrix3D 2.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |