|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.elements.Element
net.java.joglutils.msg.elements.ModelMatrixElement
net.java.joglutils.msg.elements.GLModelMatrixElement
public class GLModelMatrixElement
Represents the model matrix, which is the transformation applied to objects in the scene, and causes side-effects in OpenGL.
Field Summary |
---|
Fields inherited from class net.java.joglutils.msg.elements.ModelMatrixElement |
---|
matrix, temp |
Constructor Summary | |
---|---|
GLModelMatrixElement()
|
Method Summary | |
---|---|
static void |
enable(State defaultState)
|
static GLModelMatrixElement |
getInstance(State state)
|
void |
makeEltIdent()
Sets this element to the identity matrix. |
void |
multElt(Mat4f matrix)
Multiplies this element by the given matrix. |
Element |
newInstance()
Creates a new instance initialized to the default values for the state element. |
void |
pop(State state,
Element previousTopElement)
Pops the element, allowing for side effects to occur. |
void |
push(State state)
Pushes the element, allowing for side effects to occur. |
Methods inherited from class net.java.joglutils.msg.elements.ModelMatrixElement |
---|
getMatrix, getStateIndex, isEnabled, makeIdent, mult |
Methods inherited from class net.java.joglutils.msg.elements.Element |
---|
getDepth, getNext, getNextInStack, setDepth, setNext, setNextInStack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLModelMatrixElement()
Method Detail |
---|
public Element newInstance()
Element
newInstance
in class ModelMatrixElement
public static GLModelMatrixElement getInstance(State state)
public static void enable(State defaultState)
public void push(State state)
Element
push
in class ModelMatrixElement
public void pop(State state, Element previousTopElement)
Element
pop
in class Element
public void makeEltIdent()
ModelMatrixElement
makeEltIdent
in class ModelMatrixElement
public void multElt(Mat4f matrix)
ModelMatrixElement
multElt
in class ModelMatrixElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |