|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.renderer.config.ClientArrayConfig
public class ClientArrayConfig
Contains the configuration of a single client array.
| Nested Class Summary | |
|---|---|
static class |
ClientArrayConfig.Type
Type constants. |
| Field Summary | |
|---|---|
FloatBuffer |
floatArray
The float array, if using one. |
boolean |
normalized
Whether or not to normalize the components. |
int |
offset
The offset of the first component. |
int |
size
The number of components in each element. |
int |
stride
The stride between adjacent elements. |
ClientArrayConfig.Type |
type
The type of the components. |
| Constructor Summary | |
|---|---|
ClientArrayConfig()
|
|
ClientArrayConfig(int size)
|
|
ClientArrayConfig(int size,
FloatBuffer floatArray)
|
|
ClientArrayConfig(int size,
int stride,
int offset,
FloatBuffer floatArray)
|
|
| Method Summary | |
|---|---|
boolean |
canMerge(ClientArrayConfig oarray)
Checks whether, all other things being equal, we can merge this array with the specified other. |
ClientArray |
createClientArray()
Creates a client array from this config. |
int |
getElementBytes()
Returns the number of bytes in each element. |
void |
populateClientArray(ClientArray array)
Populates the supplied client array with the data in this config. |
void |
populateFloatArray(float[] array,
int doffset,
int dstride)
Extracts the contents of this array into the specified float array. |
void |
populateIntArray(int[] array,
int doffset,
int dstride)
Extracts the contents of this array into the specified int array. |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int size
public ClientArrayConfig.Type type
public boolean normalized
public int stride
public int offset
public FloatBuffer floatArray
| Constructor Detail |
|---|
public ClientArrayConfig(int size)
public ClientArrayConfig(int size,
FloatBuffer floatArray)
public ClientArrayConfig(int size,
int stride,
int offset,
FloatBuffer floatArray)
public ClientArrayConfig()
| Method Detail |
|---|
public int getElementBytes()
public boolean canMerge(ClientArrayConfig oarray)
public ClientArray createClientArray()
public void populateClientArray(ClientArray array)
public void populateFloatArray(float[] array,
int doffset,
int dstride)
doffset - the offset within the array at which to place the first element.dstride - the stride between adjacent elements within the array.
public void populateIntArray(int[] array,
int doffset,
int dstride)
doffset - the offset within the array at which to place the first element.dstride - the stride between adjacent elements within the array.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||