net.java.joglutils.msg.elements
Class GLCoordinateElement
java.lang.Object
net.java.joglutils.msg.elements.Element
net.java.joglutils.msg.elements.CoordinateElement
net.java.joglutils.msg.elements.GLCoordinateElement
public class GLCoordinateElement
- extends CoordinateElement
Represents the current set of coordinates, which are assembled to
draw geometry, and causes side-effects in OpenGL.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLCoordinateElement
public GLCoordinateElement()
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 CoordinateElement
getInstance
public static GLCoordinateElement 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 CoordinateElement
pop
public void pop(State state,
Element previousTopElement)
- Description copied from class:
Element
- Pops the element, allowing for side effects to occur. Default
method does nothing. NOTE that it is not legal to call
State.getElement() in the implementation of this method, which
is why the previous top element is provided as an argument.
- Overrides:
pop
in class Element
setElt
public void setElt(FloatBuffer coords)
- Description copied from class:
CoordinateElement
- Sets the coordinate data in this element.
- Overrides:
setElt
in class CoordinateElement