com.jme3.shader
Class ShaderVariable

java.lang.Object
  extended by com.jme3.shader.ShaderVariable
Direct Known Subclasses:
Attribute, Uniform

public class ShaderVariable
extends java.lang.Object


Field Summary
static int LOC_NOT_DEFINED
           
static int LOC_UNKNOWN
           
protected  int location
           
protected  java.lang.String name
          Name of the uniform as was declared in the shader.
protected  boolean updateNeeded
          True if the shader value was changed.
 
Constructor Summary
ShaderVariable()
           
 
Method Summary
 int getLocation()
           
 java.lang.String getName()
           
 void setLocation(int location)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOC_UNKNOWN

public static final int LOC_UNKNOWN
See Also:
Constant Field Values

LOC_NOT_DEFINED

public static final int LOC_NOT_DEFINED
See Also:
Constant Field Values

location

protected int location

name

protected java.lang.String name
Name of the uniform as was declared in the shader. E.g name = "g_WorldMatrix" if the decleration was "uniform mat4 g_WorldMatrix;".


updateNeeded

protected boolean updateNeeded
True if the shader value was changed.

Constructor Detail

ShaderVariable

public ShaderVariable()
Method Detail

setLocation

public void setLocation(int location)

getLocation

public int getLocation()

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()