|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.PassNodeState
public class PassNodeState
PassNodeState Creator: rikard.herlitz, 2007-maj-10
| Field Summary | |
|---|---|
protected boolean |
enabled
if false, pass will not be updated or rendered. |
protected RenderState[] |
passStates
RenderStates registered with this pass - if a given state is not null it overrides the corresponding state set during rendering. |
protected RenderState[] |
savedStates
a place to internally save previous states setup before rendering this pass |
protected float |
zFactor
offset params to use to differentiate multiple passes of the same scene in the zbuffer. |
protected float |
zOffset
|
| Constructor Summary | |
|---|---|
PassNodeState()
|
|
| Method Summary | |
|---|---|
void |
applyPassNodeState(Renderer r,
RenderContext<?> context)
Applies all currently set renderstates and z offset parameters to the supplied context |
protected void |
applyPassStates(RenderContext<?> context)
Applies all currently set renderstates to the supplied context |
void |
clearPassState(int renderStateType)
Deprecated. As of 2.0, use clearPassState(com.jme.scene.state.RenderState.StateType) instead. |
void |
clearPassState(RenderState.StateType type)
Clears an enforced render state by setting it to null. |
void |
clearPassStates()
sets all enforced states to null. |
java.lang.Class<?> |
getClassTag()
The peristed type for the object. |
RenderState |
getPassState(int renderStateType)
Deprecated. As of 2.0, use getPassState(com.jme.scene.state.RenderState.StateType) instead. |
RenderState |
getPassState(RenderState.StateType type)
Returns the RenderState of the given type. |
float |
getZFactor()
|
float |
getZOffset()
|
boolean |
isEnabled()
|
void |
read(JMEImporter e)
|
protected void |
resetOldStates(RenderContext<?> context)
Resets all renderstates on the supplied context |
void |
resetPassNodeStates(Renderer r,
RenderContext<?> context)
Resets currently set renderstates and z offset parameters on the supplied context |
void |
setEnabled(boolean enabled)
|
void |
setPassState(RenderState state)
Enforce a particular state. |
void |
setZFactor(float factor)
Sets the polygon offset param - factor - for this Pass. |
void |
setZOffset(float offset)
Sets the polygon offset param - offset - for this Pass. |
void |
write(JMEExporter e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean enabled
protected float zFactor
protected float zOffset
protected RenderState[] passStates
protected RenderState[] savedStates
| Constructor Detail |
|---|
public PassNodeState()
| Method Detail |
|---|
public void applyPassNodeState(Renderer r,
RenderContext<?> context)
r - context -
public void resetPassNodeStates(Renderer r,
RenderContext<?> context)
r - context - public void setPassState(RenderState state)
state - state to enforcepublic RenderState getPassState(int renderStateType)
getPassState(com.jme.scene.state.RenderState.StateType) instead.
renderStateType - the type to query
public RenderState getPassState(RenderState.StateType type)
RenderState of the given type.
type - the type to query
RenderState enforced for a given state type, or null if none.public void clearPassState(int renderStateType)
clearPassState(com.jme.scene.state.RenderState.StateType) instead.
renderStateType - The type of RenderState to clear enforcement on.public void clearPassState(RenderState.StateType type)
type - The type of RenderState to clear enforcement on.public void clearPassStates()
RenderContext.clearEnforcedState(int)protected void applyPassStates(RenderContext<?> context)
context - protected void resetOldStates(RenderContext<?> context)
context - public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - The enabled to set.public float getZFactor()
public void setZFactor(float factor)
factor - The zFactor to set.public float getZOffset()
public void setZOffset(float offset)
offset - The zOffset to set.public java.lang.Class<?> getClassTag()
Savable
getClassTag in interface Savable
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablejava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savablejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||