com.jme3.shader
Class ShaderVariable
java.lang.Object
com.jme3.shader.ShaderVariable
- Direct Known Subclasses:
- Attribute, Uniform
public class ShaderVariable
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ShaderVariable
public ShaderVariable()
setLocation
public void setLocation(int location)
getLocation
public int getLocation()
setName
public void setName(java.lang.String name)
getName
public java.lang.String getName()