|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.renderer.RenderContext<ContextHolder>
public class RenderContext<ContextHolder>
Represents the state of an individual context in OpenGL.
| Field Summary | |
|---|---|
RenderState[] |
currentStates
RenderStates a Spatial contains during rendering. |
RenderState[] |
enforcedStateList
List of states that override any set states on a spatial if not null. |
| Constructor Summary | |
|---|---|
RenderContext(ContextHolder key)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public RenderState[] enforcedStateList
public RenderState[] currentStates
| Constructor Detail |
|---|
public RenderContext(ContextHolder key)
| Method Detail |
|---|
public void setupRecords(Renderer r)
public void invalidateStates()
public StateRecord getStateRecord(int state)
getStateRecord(com.jme.scene.state.RenderState.StateType) instead.
public StateRecord getStateRecord(RenderState.StateType type)
StateRecord of the given RenderState.StateType.
type - RenderState.StateType
StateRecordpublic StateRecord getLineRecord()
public StateRecord getRendererRecord()
public void enforceState(RenderState state)
state - state to enforcepublic void clearEnforcedState(int renderStateType)
clearEnforcedState(com.jme.scene.state.RenderState.StateType) instead.
renderStateType - The type of RenderState to clear enforcement on.public void clearEnforcedState(RenderState.StateType type)
type - The type of RenderState to clear enforcement on.public void clearEnforcedStates()
com.jme.scene.Spatial#clearEnforcedState(int)public void clearCurrentStates()
public void clearCurrentState(int state)
clearCurrentState(com.jme.scene.state.RenderState.StateType) instead.
state - the state to clear.public void clearCurrentState(RenderState.StateType type)
RenderState.StateType value.
state - the state to clear.public RenderState getCurrentState(int state)
getCurrentState(com.jme.scene.state.RenderState.StateType) instead.
public RenderState getCurrentState(RenderState.StateType type)
RenderState.
type - RenderState.StateType
RenderStatepublic ContextHolder getContextHolder()
public void setContextHolder(ContextHolder contextHolder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||