|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.graphics.opengl.state.GLCapability
public class GLCapability
A GLCapability is a wrapper for some OpenGL capability. The capability will be enabled or disabled when the glInit() or glRender() method is called, depending on the current state of the GLCapability object.
| Field Summary | |
|---|---|
private boolean |
enabled
|
private int |
glId
|
private int |
scId
|
| Constructor Summary | |
|---|---|
GLCapability(int glId,
boolean enabled)
Create a new capability (i.e. a boolean valued GLStateComponent) |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Equality test based upon GLStateComponent id and boolean value |
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. |
int |
hashCode()
hash code consistent with equals. |
boolean |
isEnabled()
Returns the state of this GLCapability. |
void |
setEnabled(boolean enabled)
Sets the state of this GLCapability to the specified boolean value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean enabled
private int glId
private int scId
| Constructor Detail |
|---|
public GLCapability(int glId,
boolean enabled)
| Method Detail |
|---|
public void setEnabled(boolean enabled)
public boolean isEnabled()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void glInit(GLRenderContext gl)
GLRenderObject
glInit in interface GLRenderObjectpublic final void glRender(GLRenderContext gl)
GLRenderObject
glRender in interface GLRenderObjectpublic final int getSCId()
GLStateComponent
getSCId in interface GLStateComponentpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||