com.jme.util.shader.uniformtypes
Class ShaderVariablePointerFloat

java.lang.Object
  extended by com.jme.util.shader.ShaderVariable
      extended by com.jme.util.shader.uniformtypes.ShaderVariablePointerFloat
All Implemented Interfaces:
Savable

public class ShaderVariablePointerFloat
extends ShaderVariable

ShaderVariablePointerFloat


Field Summary
 java.nio.FloatBuffer data
          The data for the attribute value
 boolean normalized
          Specifies whether fixed-point data values should be normalized (true) or converted directly as fixed-point values (false) when they are accessed.
 int size
          Specifies the number of values for each element of the generic vertex attribute array.
 int stride
          Specifies the byte offset between consecutive attribute values.
 
Fields inherited from class com.jme.util.shader.ShaderVariable
name, needsRefresh, variableID
 
Constructor Summary
ShaderVariablePointerFloat()
           
 
Method Summary
 void read(JMEImporter e)
           
 void write(JMEExporter e)
           
 
Methods inherited from class com.jme.util.shader.ShaderVariable
equals, getClassTag, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

public int size
Specifies the number of values for each element of the generic vertex attribute array. Must be 1, 2, 3, or 4.


stride

public int stride
Specifies the byte offset between consecutive attribute values. If stride is 0 (the initial value), the attribute values are understood to be tightly packed in the array.


normalized

public boolean normalized
Specifies whether fixed-point data values should be normalized (true) or converted directly as fixed-point values (false) when they are accessed.


data

public java.nio.FloatBuffer data
The data for the attribute value

Constructor Detail

ShaderVariablePointerFloat

public ShaderVariablePointerFloat()
Method Detail

write

public void write(JMEExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class ShaderVariable
Throws:
java.io.IOException

read

public void read(JMEImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class ShaderVariable
Throws:
java.io.IOException