com.jme.util.shader.uniformtypes
Class ShaderVariablePointerInt

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

public class ShaderVariablePointerInt
extends ShaderVariable

ShaderVariablePointerInt


Field Summary
 java.nio.IntBuffer 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.
 boolean unsigned
          Specifies if the data is in signed or unsigned format
 
Fields inherited from class com.jme.util.shader.ShaderVariable
name, needsRefresh, variableID
 
Constructor Summary
ShaderVariablePointerInt()
           
 
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.


unsigned

public boolean unsigned
Specifies if the data is in signed or unsigned format


data

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

Constructor Detail

ShaderVariablePointerInt

public ShaderVariablePointerInt()
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