|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.opengl.state.GLStateComponentIF
public class GLStateComponentIF
A GLStateComponentIF is a wrapper for GL attributes that are set by means of a call like glXYZ(glEnum, glId, glValf), where glEnum and glId are ints, glValf is a float value. Examples: glLightf with glEnum == light, glId == GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, GL_QUADRATIC_ATTENUATION. glMaterialfv with glEnumi == face, glId == GL_SHININESS glTexParameterfv with glEnumi == target, glId == GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD
| Field Summary | |
|---|---|
private int |
glEnumi
|
private int |
glId
|
private float |
glVal
|
private int |
scId
|
| Constructor Summary | |
|---|---|
GLStateComponentIF(int glEnumi,
int glId,
float glVal)
Create a new GLStateComponentIF. |
|
| Method Summary | |
|---|---|
private void |
checkLegal(int scId)
|
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 float glVal
| Constructor Detail |
|---|
public GLStateComponentIF(int glEnumi,
int glId,
float glVal)
| Method Detail |
|---|
private void checkLegal(int scId)
public final int getSCId()
GLStateComponent
getSCId in interface GLStateComponentpublic void glInit(GLRenderContext gl)
GLRenderObject
glInit in interface GLRenderObjectpublic void glRender(GLRenderContext gl)
GLRenderObject
glRender in interface GLRenderObjectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||