Class ShaderVariablePointerFloatMatrix
java.lang.Object
com.ardor3d.util.shader.ShaderVariable
com.ardor3d.util.shader.uniformtypes.ShaderVariablePointerFloatMatrix
- All Implemented Interfaces:
Savable
ShaderVariablePointerFloatMatrix - data is stored by row... all matrices row 0, then all matrices row 1, etc.
-
Field Summary
Modifier and TypeFieldDescriptionThe data for the attribute valueboolean
Specifies whether fixed-point data values should be normalized (true) or converted directly as fixed-point values (false) when they are accessed.int
Specifies the number of rows and cols in the matrix.Fields inherited from class com.ardor3d.util.shader.ShaderVariable
errorLogged, name, needsRefresh, variableID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getSize()
boolean
hasData()
void
read
(InputCapsule capsule) void
write
(OutputCapsule capsule) Methods inherited from class com.ardor3d.util.shader.ShaderVariable
equals, getClassTag, hashCode
-
Field Details
-
size
public int sizeSpecifies the number of rows and cols in the matrix. Must be 2, 3, or 4. -
normalized
public boolean normalizedSpecifies whether fixed-point data values should be normalized (true) or converted directly as fixed-point values (false) when they are accessed. -
data
The data for the attribute value
-
-
Constructor Details
-
ShaderVariablePointerFloatMatrix
public ShaderVariablePointerFloatMatrix()
-
-
Method Details
-
hasData
public boolean hasData()- Overrides:
hasData
in classShaderVariable
-
getSize
public int getSize()- Overrides:
getSize
in classShaderVariable
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classShaderVariable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classShaderVariable
- Throws:
IOException
-