com.rugl.gl.facets
Class TextureState

java.lang.Object
  extended by com.rugl.gl.facets.TextureState
All Implemented Interfaces:
Facet<TextureState>, java.lang.Comparable<TextureState>

public class TextureState
extends java.lang.Object
implements Facet<TextureState>

Controls the bound texture and parameters

Author:
ryanm

Nested Class Summary
 class TextureState.Filters
           
 class TextureState.WrapParameters
           
 
Field Summary
 TextureState.Filters filter
          Texture filter modes
 int id
          The openGL texture name.
 TextureState.WrapParameters wrap
          Texture wrapping parameters
 
Constructor Summary
TextureState()
           
 
Method Summary
 int compareTo(TextureState t)
           
 void set(TextureState t)
          Copy the values
 java.lang.String toString()
           
 void transitionFrom(TextureState t)
          Alter the state if necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public int id
The openGL texture name. Set to -1 to disable texturing


filter

public TextureState.Filters filter
Texture filter modes


wrap

public TextureState.WrapParameters wrap
Texture wrapping parameters

Constructor Detail

TextureState

public TextureState()
Method Detail

set

public void set(TextureState t)
Description copied from interface: Facet
Copy the values

Specified by:
set in interface Facet<TextureState>

transitionFrom

public void transitionFrom(TextureState t)
Description copied from interface: Facet
Alter the state if necessary

Specified by:
transitionFrom in interface Facet<TextureState>
Parameters:
t - The current state.

compareTo

public int compareTo(TextureState t)
Specified by:
compareTo in interface java.lang.Comparable<TextureState>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object