hmi.graphics.opengl.state
Class GLState
java.lang.Object
hmi.graphics.opengl.state.GLState
public final class GLState
- extends Object
- Author:
- Job Zwiers
|
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 |
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
GLState
private GLState()
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.