|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.actions.Action
net.java.joglutils.msg.actions.GLResetAction
public class GLResetAction
An action which resets the OpenGL state of notes holding on to server-side OpenGL objects. This is needed to clear out for example Texture2 nodes if the OpenGL context being used to render them was destroyed and re-created.
Constructor Summary | |
---|---|
GLResetAction()
|
Method Summary | |
---|---|
static void |
addActionMethod(Class<? extends Node> nodeType,
Method m)
Adds an action method for the given node type to this action. |
void |
apply(Node node)
Applies this Action to a particular node. |
static State |
getDefaultState()
Returns the default state all instances of this class are initialized with. |
State |
getState()
Returns the global state this action encompasses, which is altered by the nodes the action traverses. |
static void |
resetGL(GLResetAction action,
Texture2 node)
Action method which dispatches to per-node rendering functionality. |
Methods inherited from class net.java.joglutils.msg.actions.Action |
---|
apply, getPath |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLResetAction()
Method Detail |
---|
public static State getDefaultState()
public static void addActionMethod(Class<? extends Node> nodeType, Method m)
public State getState()
Action
getState
in class Action
public void apply(Node node)
Action
apply
in class Action
public static void resetGL(GLResetAction action, Texture2 node)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |