org.xith3d.render.jsr231
Class GLSLShaderProgramStateUnitPeer

java.lang.Object
  extended by org.xith3d.render.jsr231.GLSLShaderProgramStateUnitPeer

public class GLSLShaderProgramStateUnitPeer
extends java.lang.Object

Created on Jul 7, 2006 by florian for project 'xith3d_glsl_shader_support'


Constructor Summary
GLSLShaderProgramStateUnitPeer()
           
 
Method Summary
static void apply(java.lang.Object glObj, GLSLContext shaderProgram, CanvasPeer canvasPeer, OpenGLStatesCache statesCache, RenderPeer.RenderMode renderMode)
           
protected static boolean areARBShaderObjectsSupported(javax.media.opengl.GL gl)
           
protected static void disableGLSLShaders(javax.media.opengl.GL gl, OpenGLStatesCache statesCache)
           
protected static int getCurrentShaderProgram(javax.media.opengl.GL gl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GLSLShaderProgramStateUnitPeer

public GLSLShaderProgramStateUnitPeer()
Method Detail

areARBShaderObjectsSupported

protected static final boolean areARBShaderObjectsSupported(javax.media.opengl.GL gl)

getCurrentShaderProgram

protected static final int getCurrentShaderProgram(javax.media.opengl.GL gl)

disableGLSLShaders

protected static final void disableGLSLShaders(javax.media.opengl.GL gl,
                                               OpenGLStatesCache statesCache)

apply

public static final void apply(java.lang.Object glObj,
                               GLSLContext shaderProgram,
                               CanvasPeer canvasPeer,
                               OpenGLStatesCache statesCache,
                               RenderPeer.RenderMode renderMode)