|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.ClientArray
public class ClientArray
Represents the state of a single client array.
| Field Summary | |
|---|---|
BufferObject |
arrayBuffer
The buffer object, if using one. |
boolean |
dirty
Set when the array parameters have changed and must be reapplied. |
FloatBuffer |
floatArray
The float array, if using one. |
boolean |
normalized
Whether or not to normalize the components. |
long |
offset
The offset into the buffer. |
int |
size
The number of components in each element. |
int |
stride
The stride between adjacent elements. |
int |
type
The type of the components. |
| Constructor Summary | |
|---|---|
ClientArray()
Creates an uninitialized array. |
|
ClientArray(int size,
FloatBuffer floatArray)
Creates a simple array that draws from a float buffer. |
|
ClientArray(int size,
int type,
boolean normalized,
int stride,
long offset,
BufferObject arrayBuffer,
FloatBuffer floatArray)
Creates an array. |
|
ClientArray(int size,
int type,
BufferObject arrayBuffer)
Creates a simple array that draws from a buffer object. |
|
ClientArray(int size,
int type,
int stride,
long offset,
BufferObject arrayBuffer)
Creates an array that draws from part of a buffer object. |
|
ClientArray(int size,
int stride,
long offset,
FloatBuffer floatArray)
Creates an array that draws from part of a float buffer. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
int |
getComponentBytes()
Returns the number of bytes in each component. |
int |
getElementBytes()
Returns the number of bytes in each element. |
ClientArray |
set(ClientArray array)
Copies the values in the supplied object into this one. |
ClientArray |
set(int size,
int type,
boolean normalized,
int stride,
long offset,
BufferObject arrayBuffer,
FloatBuffer floatArray)
Sets all fields at once. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int size
public int type
public boolean normalized
public int stride
public long offset
public BufferObject arrayBuffer
public FloatBuffer floatArray
public boolean dirty
| Constructor Detail |
|---|
public ClientArray(int size,
int type,
BufferObject arrayBuffer)
public ClientArray(int size,
int type,
int stride,
long offset,
BufferObject arrayBuffer)
public ClientArray(int size,
FloatBuffer floatArray)
public ClientArray(int size,
int stride,
long offset,
FloatBuffer floatArray)
public ClientArray(int size,
int type,
boolean normalized,
int stride,
long offset,
BufferObject arrayBuffer,
FloatBuffer floatArray)
public ClientArray()
| Method Detail |
|---|
public ClientArray set(ClientArray array)
public ClientArray set(int size,
int type,
boolean normalized,
int stride,
long offset,
BufferObject arrayBuffer,
FloatBuffer floatArray)
public int getElementBytes()
public int getComponentBytes()
public boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||