org.jagatoo.loaders.models.cal3d.buffer
Class IndexBuffer
java.lang.Object
org.jagatoo.loaders.models.cal3d.buffer.IndexBuffer
public class IndexBuffer
- extends java.lang.Object
IndexBuffer provides a wrapper to IntBuffer for geometry index data.
TODO: Provide ShortBuffer or ByteBuffer as more compact alternatives depending on geometry size.
|
Method Summary |
int |
get(int n)
|
int[] |
getBuffer()
|
void |
put(int[] x)
|
void |
put(int n,
int x)
|
void |
put(int n,
int[] x)
|
void |
putQuad(int n,
int a,
int b,
int c,
int d)
|
void |
putTri(int n,
int a,
int b,
int c)
|
int |
size()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexBuffer
public IndexBuffer(int length)
put
public void put(int n,
int x)
get
public int get(int n)
put
public void put(int[] x)
put
public void put(int n,
int[] x)
putTri
public void putTri(int n,
int a,
int b,
int c)
putQuad
public void putQuad(int n,
int a,
int b,
int c,
int d)
size
public final int size()
getBuffer
public final int[] getBuffer()