hmi.graphics.opengl.state
Class GLStateComponentF4

java.lang.Object
  extended by hmi.graphics.opengl.state.GLStateComponentF4
All Implemented Interfaces:
GLRenderObject, GLStateComponent

public final class GLStateComponentF4
extends Object
implements GLStateComponent

A GLStateComponentF4 is a wrapper for GL attributes that are set by means of a call like glXYZ(glId, glValfv), Examples: GL_LIGHT_MODEL_AMBIENT, GL_COLOR_CLEAR_VALUE, GL_ACCUM_CLEAR_VALUE

Author:
Job Zwiers

Field Summary
private  float a
           
private  float b
           
private  float g
           
private  FloatBuffer glBufferfv
           
private  int glId
           
private  float r
           
private  int scId
           
 
Constructor Summary
GLStateComponentF4(int glId, float[] glValfv)
          Create a new GLStateComponentF4.
 
Method Summary
 int getSCId()
          Returns an integer that uniquely identifies the type of the GLStateComponent.
 void glInit(GLRenderContext glc)
          Called during OpenGL initialization.
 void glRender(GLRenderContext gl)
          Called during openGL rendering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

glId

private int glId

scId

private int scId

glBufferfv

private FloatBuffer glBufferfv

r

private float r

g

private float g

b

private float b

a

private float a
Constructor Detail

GLStateComponentF4

public GLStateComponentF4(int glId,
                          float[] glValfv)
Create a new GLStateComponentF4.

Method Detail

getSCId

public int getSCId()
Description copied from interface: GLStateComponent
Returns an integer that uniquely identifies the type of the GLStateComponent.

Specified by:
getSCId in interface GLStateComponent

glInit

public void glInit(GLRenderContext glc)
Description copied from interface: GLRenderObject
Called during OpenGL initialization.

Specified by:
glInit in interface GLRenderObject

glRender

public void glRender(GLRenderContext gl)
Description copied from interface: GLRenderObject
Called during openGL rendering.

Specified by:
glRender in interface GLRenderObject