net.java.joglutils.msg.elements
Class GLProjectionMatrixElement

java.lang.Object
  extended by net.java.joglutils.msg.elements.Element
      extended by net.java.joglutils.msg.elements.ProjectionMatrixElement
          extended by net.java.joglutils.msg.elements.GLProjectionMatrixElement

public class GLProjectionMatrixElement
extends ProjectionMatrixElement

Represents the projection matrix, which transforms view-space coordinates into screen-space coordinates, and performs side-effects in OpenGL.


Field Summary
 
Fields inherited from class net.java.joglutils.msg.elements.ProjectionMatrixElement
matrix
 
Constructor Summary
GLProjectionMatrixElement()
           
 
Method Summary
static void enable(State defaultState)
           
static GLProjectionMatrixElement 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 projection matrix in this element to the given one.
 
Methods inherited from class net.java.joglutils.msg.elements.ProjectionMatrixElement
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
 

Constructor Detail

GLProjectionMatrixElement

public GLProjectionMatrixElement()
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 ProjectionMatrixElement

getInstance

public static GLProjectionMatrixElement 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 ProjectionMatrixElement

setElt

public void setElt(Mat4f matrix)
Description copied from class: ProjectionMatrixElement
Sets the projection matrix in this element to the given one.

Overrides:
setElt in class ProjectionMatrixElement