net.java.joglutils.msg.elements
Class GLViewingMatrixElement

java.lang.Object
  extended by net.java.joglutils.msg.elements.Element
      extended by net.java.joglutils.msg.elements.ViewingMatrixElement
          extended by 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.


Field Summary
protected  Mat4f temp
           
 
Fields inherited from class net.java.joglutils.msg.elements.ViewingMatrixElement
matrix
 
Constructor Summary
GLViewingMatrixElement()
           
 
Method Summary
static void enable(State defaultState)
           
static GLViewingMatrixElement getInstance(State state)
           
 Element newInstance()
          Creates a new instance initialized to the default values for the state element.
 void push(State state)
          Pushes the element, allowing for side effects to occur.
 void setElt(Mat4f matrix)
          Sets the viewing matrix in this element to the given one.
 
Methods inherited from class net.java.joglutils.msg.elements.ViewingMatrixElement
getMatrix, getStateIndex, isEnabled, set
 
Methods inherited from class net.java.joglutils.msg.elements.Element
getDepth, getNext, getNextInStack, pop, setDepth, setNext, setNextInStack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

temp

protected Mat4f temp
Constructor Detail

GLViewingMatrixElement

public GLViewingMatrixElement()
Method Detail

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