hmi.graphics.opengl.state
Class GLState

java.lang.Object
  extended by hmi.graphics.opengl.state.GLState

public final class GLState
extends Object

Author:
Job Zwiers

Field Summary
private static HashMap<Integer,String> GLIDTOGLNAME
           
private static HashMap<Integer,Integer> GLIDTOSCID
           
private static HashMap<String,Integer> GLNAMETOGLID
           
private static int lastSCId
           
static int LIGHT_GROUP
           
static int LIGHT_GROUP_SIZE
           
static int MATERIAL_GROUP
           
static int MATERIAL_GROUP_SIZE
           
static int POLYGON_GROUP
           
static int POLYGON_GROUP_SIZE
           
private static HashMap<Integer,Integer> SCIDTOGLID
           
static int TEXTURE_GROUP
           
static int TEXTURE_GROUP_SIZE
           
 
Constructor Summary
private GLState()
           
 
Method Summary
protected static void addGLName(String glName, int glId)
           
protected static void addStateVariable(String glName, int glId, int scId)
           
static int createSCId()
           
static int createSCId(int stateGroup)
           
static int getGLId(String glName)
          Returns the int valued OpenGL token for an OpenGL name.
static String getGLName(int glId)
          Returns the String valued OpenGL name for an OpenGL token.
static int getSCId(int glId)
          Returns scId for a given GL state variable, or -1 if no scId has been assigned to this state variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLNAMETOGLID

private static final HashMap<String,Integer> GLNAMETOGLID

GLIDTOGLNAME

private static final HashMap<Integer,String> GLIDTOGLNAME

GLIDTOSCID

private static final HashMap<Integer,Integer> GLIDTOSCID

SCIDTOGLID

private static final HashMap<Integer,Integer> SCIDTOGLID

lastSCId

private static int lastSCId

LIGHT_GROUP

public static final int LIGHT_GROUP
See Also:
Constant Field Values

LIGHT_GROUP_SIZE

public static final int LIGHT_GROUP_SIZE
See Also:
Constant Field Values

MATERIAL_GROUP

public static final int MATERIAL_GROUP
See Also:
Constant Field Values

MATERIAL_GROUP_SIZE

public static final int MATERIAL_GROUP_SIZE
See Also:
Constant Field Values

TEXTURE_GROUP

public static final int TEXTURE_GROUP
See Also:
Constant Field Values

TEXTURE_GROUP_SIZE

public static final int TEXTURE_GROUP_SIZE
See Also:
Constant Field Values

POLYGON_GROUP

public static final int POLYGON_GROUP
See Also:
Constant Field Values

POLYGON_GROUP_SIZE

public static final int POLYGON_GROUP_SIZE
See Also:
Constant Field Values
Constructor Detail

GLState

private GLState()
Method Detail

createSCId

public static int createSCId()

createSCId

public static int createSCId(int stateGroup)

addStateVariable

protected static void addStateVariable(String glName,
                                       int glId,
                                       int scId)

addGLName

protected static void addGLName(String glName,
                                int glId)

getSCId

public static int getSCId(int glId)
Returns scId for a given GL state variable, or -1 if no scId has been assigned to this state variable.


getGLName

public static String getGLName(int glId)
Returns the String valued OpenGL name for an OpenGL token.


getGLId

public static int getGLId(String glName)
Returns the int valued OpenGL token for an OpenGL name.