hmi.graphics.util.basicobjects
Class MaterialState

java.lang.Object
  extended by hmi.graphics.util.basicobjects.MaterialState
All Implemented Interfaces:
GLRenderObject

public class MaterialState
extends Object
implements GLRenderObject

A GLRenderObject for seeting material parameters.


Field Summary
 float[] mat_ambient
           
 float[] mat_diffuse
           
 float[] mat_emission
           
 float[] mat_specular
           
 
Constructor Summary
MaterialState()
          Create a new MaterialState
 
Method Summary
 void glInit(GLRenderContext gl)
          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

mat_emission

public float[] mat_emission

mat_ambient

public float[] mat_ambient

mat_diffuse

public float[] mat_diffuse

mat_specular

public float[] mat_specular
Constructor Detail

MaterialState

public MaterialState()
Create a new MaterialState

Method Detail

glInit

public void glInit(GLRenderContext gl)
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