com.jme.util.shader
Class ShaderVariable
java.lang.Object
com.jme.util.shader.ShaderVariable
- All Implemented Interfaces:
- Savable
- Direct Known Subclasses:
- ShaderVariableFloat, ShaderVariableFloat2, ShaderVariableFloat3, ShaderVariableFloat4, ShaderVariableInt, ShaderVariableInt2, ShaderVariableInt3, ShaderVariableInt4, ShaderVariableMatrix2, ShaderVariableMatrix3, ShaderVariableMatrix4, ShaderVariableMatrix4Array, ShaderVariablePointerByte, ShaderVariablePointerFloat, ShaderVariablePointerInt, ShaderVariablePointerShort
public class ShaderVariable
- extends java.lang.Object
- implements Savable
An utily class to store shader's uniform variables content.
Field Summary |
java.lang.String |
name
Name of the uniform variable. |
boolean |
needsRefresh
Needs to be refreshed |
int |
variableID
ID of uniform. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
name
public java.lang.String name
- Name of the uniform variable. *
variableID
public int variableID
- ID of uniform. *
needsRefresh
public boolean needsRefresh
- Needs to be refreshed
ShaderVariable
public ShaderVariable()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
write
public void write(JMEExporter e)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Throws:
java.io.IOException
read
public void read(JMEImporter e)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Throws:
java.io.IOException
getClassTag
public java.lang.Class getClassTag()
- Specified by:
getClassTag
in interface Savable
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object