net.java.joglutils.msg.elements
Class GLViewingMatrixElement
java.lang.Object
net.java.joglutils.msg.elements.Element
net.java.joglutils.msg.elements.ViewingMatrixElement
net.java.joglutils.msg.elements.GLViewingMatrixElement
public class GLViewingMatrixElement
- extends ViewingMatrixElement
Represents the viewing matrix, which contains the transformation
between the camera and the model, and performs side-effects in
OpenGL.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
temp
protected Mat4f temp
GLViewingMatrixElement
public GLViewingMatrixElement()
newInstance
public Element newInstance()
- Description copied from class:
Element
- Creates a new instance initialized to the default values for the
state element. All concrete Element subclasses must implement
this operation.
- Overrides:
newInstance
in class ViewingMatrixElement
getInstance
public static GLViewingMatrixElement getInstance(State state)
enable
public static void enable(State defaultState)
push
public void push(State state)
- Description copied from class:
Element
- Pushes the element, allowing for side effects to occur. Default method does nothing.
- Overrides:
push
in class ViewingMatrixElement
setElt
public void setElt(Mat4f matrix)
- Description copied from class:
ViewingMatrixElement
- Sets the viewing matrix in this element to the given one.
- Overrides:
setElt
in class ViewingMatrixElement