|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.NodeComponent
org.xith3d.scenegraph.RenderingAttributes
public class RenderingAttributes
RenderingAttributes defines attributes that apply to .
| Field Summary | |
|---|---|
static org.jagatoo.opengl.enums.TestFunction |
ALWAYS
Indicates pixels are always drawn irrespective of the alpha value. |
static int |
COLOR_WRITE_MASK_ALL
|
static org.jagatoo.opengl.enums.StencilOperation |
DECREMENT
|
static org.jagatoo.opengl.enums.TestFunction |
EQUAL
|
static org.jagatoo.opengl.enums.TestFunction |
GREATER
|
static org.jagatoo.opengl.enums.TestFunction |
GREATER_OR_EQUAL
|
static org.jagatoo.opengl.enums.StencilOperation |
INCREMENT
|
static org.jagatoo.opengl.enums.StencilOperation |
INVERT
|
static org.jagatoo.opengl.enums.StencilOperation |
KEEP
|
static org.jagatoo.opengl.enums.TestFunction |
LESS
|
static org.jagatoo.opengl.enums.TestFunction |
LESS_OR_EQUAL
|
static org.jagatoo.opengl.enums.TestFunction |
NEVER
Indicates pixels are never drawn irrespective of the alpha value. |
static org.jagatoo.opengl.enums.TestFunction |
NOT_EQUAL
|
static org.jagatoo.opengl.enums.StencilOperation |
REPLACE
|
static org.jagatoo.opengl.enums.StencilOperation |
ZERO
|
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
RenderingAttributes()
Constructs a new RenderingAttributes object. |
|
RenderingAttributes(boolean depthBufferEnabled,
boolean depthBufferWriteEnabled,
float alphaTestValue,
org.jagatoo.opengl.enums.TestFunction alphaTestFunction)
Constructs a new RenderingAttributes object. |
|
RenderingAttributes(boolean depthBufferEnabled,
boolean depthBufferWriteEnabled,
org.jagatoo.opengl.enums.TestFunction depthTestFunction,
float alphaTestValue,
org.jagatoo.opengl.enums.TestFunction alphaTestFunction,
boolean ignoreVertexColors,
boolean stencilEnabled,
org.jagatoo.opengl.enums.StencilOperation stencilOpFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZPass,
org.jagatoo.opengl.enums.TestFunction stencilTestFunction,
int stencilRef,
int stencilMask)
|
|
RenderingAttributes(boolean depthBufferEnabled,
boolean depthBufferWriteEnabled,
org.jagatoo.opengl.enums.TestFunction depthTestFunction,
float alphaTestValue,
org.jagatoo.opengl.enums.TestFunction alphaTestFunction,
boolean ignoreVertexColors,
boolean stencilEnabled,
org.jagatoo.opengl.enums.StencilOperation stencilOpFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZPass,
org.jagatoo.opengl.enums.TestFunction stencilTestFunction,
int stencilRef,
int stencilMask,
boolean enableRedWrite,
boolean enableGreenWrite,
boolean enableBlueWrite,
boolean enableAlphaWrite)
|
|
| Method Summary | |
|---|---|
RenderingAttributes |
cloneNodeComponent(boolean forceDuplicate)
|
int |
compareTo(RenderingAttributes o)
|
protected void |
duplicateNodeComponent(NodeComponent originalNodeComponent,
boolean forceDuplicate)
|
boolean |
equals(java.lang.Object o)
|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all this NodeComponent and all child-components. |
org.jagatoo.opengl.enums.TestFunction |
getAlphaTestFunction()
Gets the alpha test function |
float |
getAlphaTestValue()
Gets the alpha test value |
int |
getColorWriteMask()
|
RenderingAttributes |
getCopy()
|
org.jagatoo.opengl.enums.TestFunction |
getDepthTestFunction()
|
boolean |
getIgnoreVertexColors()
|
long |
getStateId()
|
StateNode |
getStateNode()
|
StencilFuncSeparate |
getStencilFuncSeparate()
|
int |
getStencilMask()
|
StencilMaskSeparate |
getStencilMaskSeparate()
|
org.jagatoo.opengl.enums.StencilOperation |
getStencilOpFail()
|
StencilOpSeparate |
getStencilOpSeparate()
|
org.jagatoo.opengl.enums.StencilOperation |
getStencilOpZFail()
|
org.jagatoo.opengl.enums.StencilOperation |
getStencilOpZPass()
|
int |
getStencilRef()
|
org.jagatoo.opengl.enums.TestFunction |
getStencilTestFunction()
|
boolean |
hasColorWriteMask()
|
boolean |
isAlphaWriteEnabled()
|
boolean |
isBlueWriteEnabled()
|
boolean |
isDepthBufferEnabled()
Is the depth buffer enabled/disabled |
boolean |
isDepthBufferWriteEnabled()
Is the depth buffer write enabled/disabled |
boolean |
isGreenWriteEnabled()
|
boolean |
isRedWriteEnabled()
|
boolean |
isStencilEnabled()
|
void |
setAlphaTestFunction(org.jagatoo.opengl.enums.TestFunction func)
Sets the alpha test function |
void |
setAlphaTestValue(float val)
Sets the alpha test value |
void |
setAlphaWriteEnabled(boolean value)
|
void |
setBlueWriteEnabled(boolean value)
|
void |
setColorWriteMask(boolean valueR,
boolean valueG,
boolean valueB,
boolean valueA)
|
void |
setColorWriteMask(int mask)
|
void |
setDepthBufferEnabled(boolean state)
Enables/disables the depth buffer |
void |
setDepthBufferWriteEnabled(boolean state)
Enables/Disables writing to the depth buffer |
void |
setDepthTestFunction(org.jagatoo.opengl.enums.TestFunction depthTestFunction)
Sets the depth function for comparing against the z-buffer. |
void |
setGreenWriteEnabled(boolean value)
|
void |
setIgnoreVertexColors(boolean ignoreVertexColors)
|
void |
setRedWriteEnabled(boolean value)
|
void |
setStateNode(StateNode node)
Used by the render engine to set the state id for the node. |
void |
setStencilEnabled(boolean value)
|
void |
setStencilFuncSeparate(StencilFuncSeparate funcSep)
|
void |
setStencilMask(int value)
|
void |
setStencilMaskSeparate(StencilMaskSeparate funcSep)
|
void |
setStencilOp(org.jagatoo.opengl.enums.StencilOperation fail,
org.jagatoo.opengl.enums.StencilOperation zfail,
org.jagatoo.opengl.enums.StencilOperation zpass)
|
void |
setStencilOpFail(org.jagatoo.opengl.enums.StencilOperation value)
|
void |
setStencilOpSeparate(StencilOpSeparate funcSep)
|
void |
setStencilOpZFail(org.jagatoo.opengl.enums.StencilOperation value)
|
void |
setStencilOpZPass(org.jagatoo.opengl.enums.StencilOperation value)
|
void |
setStencilRef(int value)
|
void |
setStencilTestFunction(org.jagatoo.opengl.enums.TestFunction value)
|
void |
setStencilTestFunction(org.jagatoo.opengl.enums.TestFunction func,
int ref,
int mask)
|
| Methods inherited from class org.xith3d.scenegraph.NodeComponent |
|---|
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.jagatoo.opengl.enums.TestFunction ALWAYS
public static final org.jagatoo.opengl.enums.TestFunction NEVER
public static final org.jagatoo.opengl.enums.TestFunction EQUAL
TestFunction.EQUALpublic static final org.jagatoo.opengl.enums.TestFunction NOT_EQUAL
TestFunction.NOT_EQUALpublic static final org.jagatoo.opengl.enums.TestFunction LESS
TestFunction.LESSpublic static final org.jagatoo.opengl.enums.TestFunction LESS_OR_EQUAL
TestFunction.LESS_OR_EQUALpublic static final org.jagatoo.opengl.enums.TestFunction GREATER
TestFunction.GREATERpublic static final org.jagatoo.opengl.enums.TestFunction GREATER_OR_EQUAL
TestFunction.GREATER_OR_EQUALpublic static final org.jagatoo.opengl.enums.StencilOperation KEEP
StencilOperation.KEEPpublic static final org.jagatoo.opengl.enums.StencilOperation ZERO
StencilOperation.ZEROpublic static final org.jagatoo.opengl.enums.StencilOperation REPLACE
StencilOperation.REPLACEpublic static final org.jagatoo.opengl.enums.StencilOperation INCREMENT
StencilOperation.INCREMENTpublic static final org.jagatoo.opengl.enums.StencilOperation DECREMENT
StencilOperation.DECREMENTpublic static final org.jagatoo.opengl.enums.StencilOperation INVERT
StencilOperation.INVERTpublic static final int COLOR_WRITE_MASK_ALL
| Constructor Detail |
|---|
public RenderingAttributes()
public RenderingAttributes(boolean depthBufferEnabled,
boolean depthBufferWriteEnabled,
float alphaTestValue,
org.jagatoo.opengl.enums.TestFunction alphaTestFunction)
public RenderingAttributes(boolean depthBufferEnabled,
boolean depthBufferWriteEnabled,
org.jagatoo.opengl.enums.TestFunction depthTestFunction,
float alphaTestValue,
org.jagatoo.opengl.enums.TestFunction alphaTestFunction,
boolean ignoreVertexColors,
boolean stencilEnabled,
org.jagatoo.opengl.enums.StencilOperation stencilOpFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZPass,
org.jagatoo.opengl.enums.TestFunction stencilTestFunction,
int stencilRef,
int stencilMask)
public RenderingAttributes(boolean depthBufferEnabled,
boolean depthBufferWriteEnabled,
org.jagatoo.opengl.enums.TestFunction depthTestFunction,
float alphaTestValue,
org.jagatoo.opengl.enums.TestFunction alphaTestFunction,
boolean ignoreVertexColors,
boolean stencilEnabled,
org.jagatoo.opengl.enums.StencilOperation stencilOpFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZFail,
org.jagatoo.opengl.enums.StencilOperation stencilOpZPass,
org.jagatoo.opengl.enums.TestFunction stencilTestFunction,
int stencilRef,
int stencilMask,
boolean enableRedWrite,
boolean enableGreenWrite,
boolean enableBlueWrite,
boolean enableAlphaWrite)
| Method Detail |
|---|
public void setDepthTestFunction(org.jagatoo.opengl.enums.TestFunction depthTestFunction)
public org.jagatoo.opengl.enums.TestFunction getDepthTestFunction()
public final void setDepthBufferEnabled(boolean state)
public final boolean isDepthBufferEnabled()
public final void setDepthBufferWriteEnabled(boolean state)
public final boolean isDepthBufferWriteEnabled()
public final void setAlphaTestValue(float val)
public final float getAlphaTestValue()
public final void setAlphaTestFunction(org.jagatoo.opengl.enums.TestFunction func)
public final org.jagatoo.opengl.enums.TestFunction getAlphaTestFunction()
public void setIgnoreVertexColors(boolean ignoreVertexColors)
public final boolean getIgnoreVertexColors()
public void setStencilEnabled(boolean value)
public final boolean isStencilEnabled()
public void setStencilOpFail(org.jagatoo.opengl.enums.StencilOperation value)
public final org.jagatoo.opengl.enums.StencilOperation getStencilOpFail()
public void setStencilOpZFail(org.jagatoo.opengl.enums.StencilOperation value)
public final org.jagatoo.opengl.enums.StencilOperation getStencilOpZFail()
public void setStencilOpZPass(org.jagatoo.opengl.enums.StencilOperation value)
public final org.jagatoo.opengl.enums.StencilOperation getStencilOpZPass()
public void setStencilOp(org.jagatoo.opengl.enums.StencilOperation fail,
org.jagatoo.opengl.enums.StencilOperation zfail,
org.jagatoo.opengl.enums.StencilOperation zpass)
public void setStencilTestFunction(org.jagatoo.opengl.enums.TestFunction value)
public final org.jagatoo.opengl.enums.TestFunction getStencilTestFunction()
public void setStencilRef(int value)
public final int getStencilRef()
public void setStencilMask(int value)
public final int getStencilMask()
public void setStencilTestFunction(org.jagatoo.opengl.enums.TestFunction func,
int ref,
int mask)
public void setColorWriteMask(int mask)
public final boolean hasColorWriteMask()
public final int getColorWriteMask()
public void setRedWriteEnabled(boolean value)
public final boolean isRedWriteEnabled()
public void setGreenWriteEnabled(boolean value)
public final boolean isGreenWriteEnabled()
public void setBlueWriteEnabled(boolean value)
public final boolean isBlueWriteEnabled()
public void setAlphaWriteEnabled(boolean value)
public final boolean isAlphaWriteEnabled()
public void setColorWriteMask(boolean valueR,
boolean valueG,
boolean valueB,
boolean valueA)
public final void setStencilFuncSeparate(StencilFuncSeparate funcSep)
public final StencilFuncSeparate getStencilFuncSeparate()
public final void setStencilOpSeparate(StencilOpSeparate funcSep)
public final StencilOpSeparate getStencilOpSeparate()
public final void setStencilMaskSeparate(StencilMaskSeparate funcSep)
public final StencilMaskSeparate getStencilMaskSeparate()
public void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class NodeComponentpublic final void setStateNode(StateNode node)
StateTrackable
setStateNode in interface StateTrackable<RenderingAttributes>public final StateNode getStateNode()
getStateNode in interface StateTrackable<RenderingAttributes>public final long getStateId()
protected void duplicateNodeComponent(NodeComponent originalNodeComponent,
boolean forceDuplicate)
duplicateNodeComponent in class NodeComponentpublic RenderingAttributes cloneNodeComponent(boolean forceDuplicate)
cloneNodeComponent in class NodeComponentpublic RenderingAttributes getCopy()
getCopy in interface StateTrackable<RenderingAttributes>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(RenderingAttributes o)
compareTo in interface java.lang.Comparable<RenderingAttributes>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||