hmi.graphics.util.basicobjects
Class GLCheckerBoardGround

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

public class GLCheckerBoardGround
extends Object
implements GLRenderObject

Renders a basic checkerboard ground of specified dimensions.

Author:
Herwin van Welbergen

Field Summary
private  GLFill fillState
           
private  float[] greyAmbient
           
private  float[] greyDiffuse
           
private  float[] greyEmission
           
private  float[] greySpecular
           
private  GLMaterial greyState
           
(package private)  float height
           
private  NoTexture2DState noTextureState
           
(package private)  float tileWidth
           
private  float[] whiteAmbient
           
private  float[] whiteDiffuse
           
private  float[] whiteEmission
           
private  float[] whiteSpecular
           
private  GLMaterial whiteState
           
 
Constructor Summary
GLCheckerBoardGround(float h, float w)
           
 
Method Summary
 void glInit(GLRenderContext glc)
          Called during OpenGL initialization.
 void glRender(GLRenderContext glc)
          Called during openGL rendering.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

greyState

private GLMaterial greyState

whiteState

private GLMaterial whiteState

noTextureState

private NoTexture2DState noTextureState

fillState

private GLFill fillState

whiteDiffuse

private final float[] whiteDiffuse

whiteSpecular

private final float[] whiteSpecular

whiteAmbient

private final float[] whiteAmbient

whiteEmission

private final float[] whiteEmission

greyDiffuse

private final float[] greyDiffuse

greyAmbient

private final float[] greyAmbient

greyEmission

private final float[] greyEmission

greySpecular

private final float[] greySpecular

height

float height

tileWidth

float tileWidth
Constructor Detail

GLCheckerBoardGround

public GLCheckerBoardGround(float h,
                            float w)
Method Detail

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 glc)
Description copied from interface: GLRenderObject
Called during openGL rendering.

Specified by:
glRender in interface GLRenderObject