com.jme.scene.state.jogl.shader
Class JOGLShaderUtil

java.lang.Object
  extended by com.jme.scene.state.jogl.shader.JOGLShaderUtil

public class JOGLShaderUtil
extends java.lang.Object

Utility class for updating shadervariables(uniforms and attributes)


Constructor Summary
JOGLShaderUtil()
           
 
Method Summary
static void updateAttributeLocation(ShaderVariable variable, int programID)
          Update variableID for attribute shadervariable if needed.
static void updateShaderAttribute(ShaderVariable shaderVariable)
          Updates an attribute shadervariable.
static void updateShaderUniform(ShaderVariable shaderVariable)
          Updates a uniform shadervariable.
static void updateUniformLocation(ShaderVariable variable, int programID)
          Update variableID for uniform shadervariable if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOGLShaderUtil

public JOGLShaderUtil()
Method Detail

updateShaderUniform

public static void updateShaderUniform(ShaderVariable shaderVariable)
Updates a uniform shadervariable.

Parameters:
shaderVariable - variable to update

updateUniformLocation

public static void updateUniformLocation(ShaderVariable variable,
                                         int programID)
Update variableID for uniform shadervariable if needed.

Parameters:
variable - shadervaribale to update ID on
programID - shader program context ID

updateAttributeLocation

public static void updateAttributeLocation(ShaderVariable variable,
                                           int programID)
Update variableID for attribute shadervariable if needed.

Parameters:
variable - shadervaribale to update ID on
programID - shader program context ID

updateShaderAttribute

public static void updateShaderAttribute(ShaderVariable shaderVariable)
Updates an attribute shadervariable.

Parameters:
shaderVariable - variable to update