Package com.ardor3d.util.shader
Class ShaderVariable
java.lang.Object
com.ardor3d.util.shader.ShaderVariable
- All Implemented Interfaces:
Savable
- Direct Known Subclasses:
ShaderVariableFloat
,ShaderVariableFloat2
,ShaderVariableFloat3
,ShaderVariableFloat4
,ShaderVariableFloatArray
,ShaderVariableInt
,ShaderVariableInt2
,ShaderVariableInt3
,ShaderVariableInt4
,ShaderVariableIntArray
,ShaderVariableMatrix2
,ShaderVariableMatrix3
,ShaderVariableMatrix4
,ShaderVariableMatrix4Array
,ShaderVariablePointerByte
,ShaderVariablePointerFloat
,ShaderVariablePointerFloatMatrix
,ShaderVariablePointerInt
,ShaderVariablePointerShort
An utily class to store shader's uniform variables content.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Name of the uniform variableboolean
Needs to be refreshedint
ID of uniform -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Class
<? extends ShaderVariable> int
getSize()
boolean
hasData()
int
hashCode()
void
read
(InputCapsule capsule) void
write
(OutputCapsule capsule)
-
Field Details
-
name
Name of the uniform variable. * -
variableID
public int variableIDID of uniform. * -
needsRefresh
public boolean needsRefreshNeeds to be refreshed -
errorLogged
public boolean errorLogged
-
-
Constructor Details
-
ShaderVariable
public ShaderVariable()
-
-
Method Details
-
hasData
public boolean hasData() -
getSize
public int getSize() -
hashCode
public int hashCode() -
equals
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
getClassTag
- Specified by:
getClassTag
in interfaceSavable
-