net.java.joglutils.msg.elements
Class GLTextureCoordinateElement

java.lang.Object
  extended by net.java.joglutils.msg.elements.Element
      extended by net.java.joglutils.msg.elements.TextureCoordinateElement
          extended by net.java.joglutils.msg.elements.GLTextureCoordinateElement

public class GLTextureCoordinateElement
extends TextureCoordinateElement

Represents the current set of texture coordinates, which are applied on a per-vertex basis to any drawn geometry, and performs side-effects in OpenGL.


Field Summary
 
Fields inherited from class net.java.joglutils.msg.elements.TextureCoordinateElement
coords
 
Constructor Summary
GLTextureCoordinateElement()
           
 
Method Summary
static void enable(State defaultState)
           
static GLTextureCoordinateElement getInstance(State state)
           
 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.
 void setElt(FloatBuffer coords)
          Sets the texture coordinate data in this element.
 
Methods inherited from class net.java.joglutils.msg.elements.TextureCoordinateElement
get, getStateIndex, isEnabled, set
 
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

GLTextureCoordinateElement

public GLTextureCoordinateElement()
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 TextureCoordinateElement

getInstance

public static GLTextureCoordinateElement 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 TextureCoordinateElement

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: TextureCoordinateElement
Sets the texture coordinate data in this element.

Overrides:
setElt in class TextureCoordinateElement