|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.util.ShaderUniform
An utily class to store shader's uniform variables content. Used by the
ShaderObjectsState class.
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 |
public static final int SU_INT
public static final int SU_INT2
public static final int SU_INT3
public static final int SU_INT4
public static final int SU_FLOAT
public static final int SU_FLOAT2
public static final int SU_FLOAT3
public static final int SU_FLOAT4
public static final int SU_MATRIX2
public static final int SU_MATRIX3
public static final int SU_MATRIX4
public java.lang.String name
public int type
public int uniformID
public int[] vint
public float[] vfloat
public float[] matrix2f
public Matrix3f matrix3f
public Matrix4f matrix4f
public boolean transpose
public java.nio.FloatBuffer matrixBuffer
| Constructor Detail |
public ShaderUniform(java.lang.String name,
int type)
name - uniform's nametype - uniform's value type| Method Detail |
public boolean equals(java.lang.Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||