com.jme.util
Class ShaderUniform

java.lang.Object
  extended bycom.jme.util.ShaderUniform

public class ShaderUniform
extends java.lang.Object

An utily class to store shader's uniform variables content. Used by the ShaderObjectsState class.

Author:
Thomas Hourdel
See Also:
com.jme.scene.state.ShaderObjectsState

Field Summary
 float[] matrix2f
          Matrix2f storage.
 Matrix3f matrix3f
          Matrix3f storage.
 Matrix4f matrix4f
          Matrix4f storage.
 java.nio.FloatBuffer matrixBuffer
           
 java.lang.String name
          Name of the uniform variable.
static int SU_FLOAT
           
static int SU_FLOAT2
           
static int SU_FLOAT3
           
static int SU_FLOAT4
           
static int SU_INT
           
static int SU_INT2
           
static int SU_INT3
           
static int SU_INT4
           
static int SU_MATRIX2
           
static int SU_MATRIX3
           
static int SU_MATRIX4
           
 boolean transpose
          Used to transpose the matrix if wanted.
 int type
          Type of uniform value.
 int uniformID
          ID of uniform.
 float[] vfloat
          For float content.
 int[] vint
          For int content.
 
Constructor Summary
ShaderUniform(java.lang.String name, int type)
          Create a new uniform object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SU_INT

public static final int SU_INT
See Also:
Constant Field Values

SU_INT2

public static final int SU_INT2
See Also:
Constant Field Values

SU_INT3

public static final int SU_INT3
See Also:
Constant Field Values

SU_INT4

public static final int SU_INT4
See Also:
Constant Field Values

SU_FLOAT

public static final int SU_FLOAT
See Also:
Constant Field Values

SU_FLOAT2

public static final int SU_FLOAT2
See Also:
Constant Field Values

SU_FLOAT3

public static final int SU_FLOAT3
See Also:
Constant Field Values

SU_FLOAT4

public static final int SU_FLOAT4
See Also:
Constant Field Values

SU_MATRIX2

public static final int SU_MATRIX2
See Also:
Constant Field Values

SU_MATRIX3

public static final int SU_MATRIX3
See Also:
Constant Field Values

SU_MATRIX4

public static final int SU_MATRIX4
See Also:
Constant Field Values

name

public java.lang.String name
Name of the uniform variable. *


type

public int type
Type of uniform value. *


uniformID

public int uniformID
ID of uniform. *


vint

public int[] vint
For int content. *


vfloat

public float[] vfloat
For float content. *


matrix2f

public float[] matrix2f
Matrix2f storage. *


matrix3f

public Matrix3f matrix3f
Matrix3f storage. *


matrix4f

public Matrix4f matrix4f
Matrix4f storage. *


transpose

public boolean transpose
Used to transpose the matrix if wanted. *


matrixBuffer

public java.nio.FloatBuffer matrixBuffer
Constructor Detail

ShaderUniform

public ShaderUniform(java.lang.String name,
                     int type)
Create a new uniform object.

Parameters:
name - uniform's name
type - uniform's value type
Method Detail

equals

public boolean equals(java.lang.Object obj)