com.jme.util
Class ShaderAttribute

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

public class ShaderAttribute
extends java.lang.Object

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

Author:
Joshua Slack
See Also:
com.jme.scene.state.ShaderObjectsState

Field Summary
 int attributeID
          ID of attribute.
 byte b1
          For byte content.
 byte b2
          For byte content.
 byte b3
          For byte content.
 byte b4
          For byte content.
 java.nio.Buffer data
          For nio content.
 float f1
          For float content.
 float f2
          For float content.
 float f3
          For float content.
 float f4
          For float content.
 java.lang.String name
          Name of the attribute variable.
 boolean normalized
           
 short s1
          For short content.
 short s2
          For short content.
 short s3
          For short content.
 short s4
          For short content.
 int size
           
 int stride
           
static int SU_FLOAT
           
static int SU_FLOAT2
           
static int SU_FLOAT3
           
static int SU_FLOAT4
           
static int SU_NORMALIZED_UBYTE4
           
static int SU_POINTER_BYTE
           
static int SU_POINTER_FLOAT
           
static int SU_POINTER_INT
           
static int SU_POINTER_SHORT
           
static int SU_SHORT
           
static int SU_SHORT2
           
static int SU_SHORT3
           
static int SU_SHORT4
           
 int type
          Type of attribute value.
 boolean unsigned
           
 
Constructor Summary
ShaderAttribute(java.lang.String name, int type)
          Create a new attribute 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_SHORT

public static final int SU_SHORT
See Also:
Constant Field Values

SU_SHORT2

public static final int SU_SHORT2
See Also:
Constant Field Values

SU_SHORT3

public static final int SU_SHORT3
See Also:
Constant Field Values

SU_SHORT4

public static final int SU_SHORT4
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_NORMALIZED_UBYTE4

public static final int SU_NORMALIZED_UBYTE4
See Also:
Constant Field Values

SU_POINTER_BYTE

public static final int SU_POINTER_BYTE
See Also:
Constant Field Values

SU_POINTER_FLOAT

public static final int SU_POINTER_FLOAT
See Also:
Constant Field Values

SU_POINTER_SHORT

public static final int SU_POINTER_SHORT
See Also:
Constant Field Values

SU_POINTER_INT

public static final int SU_POINTER_INT
See Also:
Constant Field Values

name

public java.lang.String name
Name of the attribute variable.


type

public int type
Type of attribute value.


attributeID

public int attributeID
ID of attribute.


s1

public short s1
For short content.


s2

public short s2
For short content.


s3

public short s3
For short content.


s4

public short s4
For short content.


f1

public float f1
For float content.


f2

public float f2
For float content.


f3

public float f3
For float content.


f4

public float f4
For float content.


b1

public byte b1
For byte content.


b2

public byte b2
For byte content.


b3

public byte b3
For byte content.


b4

public byte b4
For byte content.


data

public java.nio.Buffer data
For nio content.


normalized

public boolean normalized

unsigned

public boolean unsigned

stride

public int stride

size

public int size
Constructor Detail

ShaderAttribute

public ShaderAttribute(java.lang.String name,
                       int type)
Create a new attribute object.

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

equals

public boolean equals(java.lang.Object obj)