net.java.joglutils.msg.elements
Class TextureCoordinateElement

java.lang.Object
  extended by net.java.joglutils.msg.elements.Element
      extended by net.java.joglutils.msg.elements.TextureCoordinateElement
Direct Known Subclasses:
GLTextureCoordinateElement

public class TextureCoordinateElement
extends Element

Represents the current set of texture coordinates, which are applied on a per-vertex basis to any drawn geometry.


Field Summary
protected  FloatBuffer coords
           
 
Constructor Summary
TextureCoordinateElement()
           
 
Method Summary
static void enable(State defaultState)
          Enables this element in the passed state, which should be the default for a given action.
static FloatBuffer get(State state)
          Returns the texture coordinate data in the passed state.
static TextureCoordinateElement getInstance(State state)
          Returns the instance of this element in the passed State.
 StateIndex getStateIndex()
          All concrete element subclasses must register themselves with the State in order to reserve a slot, or index, in the state.
static boolean isEnabled(State state)
          Indicates whether this element is enabled in the given default state for a particular action.
 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.
static void set(State state, FloatBuffer coords)
          Sets the texture coordinate data in the passed state.
 void setElt(FloatBuffer coords)
          Sets the texture coordinate data in this element.
 
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

coords

protected FloatBuffer coords
Constructor Detail

TextureCoordinateElement

public TextureCoordinateElement()
Method Detail

getStateIndex

public StateIndex getStateIndex()
Description copied from class: Element
All concrete element subclasses must register themselves with the State in order to reserve a slot, or index, in the state. This method must be overridden to return this slot.

Specified by:
getStateIndex in class Element

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.

Specified by:
newInstance in class Element

getInstance

public static TextureCoordinateElement getInstance(State state)
Returns the instance of this element in the passed State.


enable

public static void enable(State defaultState)
Enables this element in the passed state, which should be the default for a given action.


isEnabled

public static boolean isEnabled(State state)
Indicates whether this element is enabled in the given default state for a particular action.


set

public static void set(State state,
                       FloatBuffer coords)
Sets the texture coordinate data in the passed state.


get

public static FloatBuffer get(State state)
Returns the texture coordinate data in the passed state.


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 Element

setElt

public void setElt(FloatBuffer coords)
Sets the texture coordinate data in this element.