|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.opengl.state.GLStateComponentIF4
public final class GLStateComponentIF4
A GLStateComponentIF4 is a wrapper for GL attributes that are set by means of a call like glXYZ(glEnum, glId, glValfv), where glEnum and glId are ints, glValfv is a float[4] value. Examples: glLightfv with glEnum == light, glId == GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION (last one is float[3]) glMaterialfv with glEnumi == face, glId == GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION glTexParameterfv with glEnumi == target, glId == GL_TEXTURE_BORDER_COLOR
| Field Summary | |
|---|---|
private FloatBuffer |
glBufferfv
|
private int |
glEnumi
|
private int |
glId
|
private int |
scId
|
| Constructor Summary | |
|---|---|
GLStateComponentIF4(int glEnumi,
int glId,
float[] glValfv)
Create a new GLStateComponentIF4. |
|
| Method Summary | |
|---|---|
private void |
checkLegal(int scId)
|
private String |
fbts(FloatBuffer buf)
|
int |
getSCId()
Returns an integer that uniquely identifies the type of the GLStateComponent. |
void |
glInit(GLRenderContext gl)
Called during OpenGL initialization. |
void |
glRender(GLRenderContext gl)
Called during openGL rendering. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private int glId
private int scId
private int glEnumi
private FloatBuffer glBufferfv
| Constructor Detail |
|---|
public GLStateComponentIF4(int glEnumi,
int glId,
float[] glValfv)
| Method Detail |
|---|
private void checkLegal(int scId)
public int getSCId()
GLStateComponent
getSCId in interface GLStateComponentpublic void glInit(GLRenderContext gl)
GLRenderObject
glInit in interface GLRenderObjectpublic void glRender(GLRenderContext gl)
GLRenderObject
glRender in interface GLRenderObjectprivate String fbts(FloatBuffer buf)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||