hmi.graphics.opengl.state
Class GLTextureStateComponent

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

public final class GLTextureStateComponent
extends Object
implements GLStateComponent

A GLStateComponentII is a wrapper for GL texture state attributes Examples: glTexParameteri with glEnumi == target, glId == GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL

Author:
Job Zwiers

Field Summary
private  int glEnumi
           
private  int glId
           
private  int scId
           
private  int target
           
 
Constructor Summary
GLTextureStateComponent(int target, int glId, int glEnumi)
          Create a new GLTextureStateComponent.
 
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

glId

private int glId

scId

private int scId

target

private int target

glEnumi

private int glEnumi
Constructor Detail

GLTextureStateComponent

public GLTextureStateComponent(int target,
                               int glId,
                               int glEnumi)
Create a new GLTextureStateComponent.

Method Detail

checkLegal

private void checkLegal(int scId)

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 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

toString

public String toString()
Overrides:
toString in class Object