|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.mesh.IndexBuffer
public abstract class IndexBuffer
IndexBuffer
is an abstraction for integer index buffers,
it is used to retrieve indices without knowing in which format they
are stored (ushort or uint).
Constructor Summary | |
---|---|
IndexBuffer()
|
Method Summary | |
---|---|
static IndexBuffer |
createIndexBuffer(int vertexCount,
int indexCount)
Creates an index buffer that can contain the given amount of vertices. |
abstract int |
get(int i)
Returns the vertex index for the given index in the index buffer. |
abstract java.nio.Buffer |
getBuffer()
Returns the underlying data-type specific Buffer . |
abstract void |
put(int i,
int value)
Puts the vertex index at the index buffer's index. |
abstract int |
size()
Returns the size of the index buffer. |
static IndexBuffer |
wrapIndexBuffer(java.nio.Buffer buf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexBuffer()
Method Detail |
---|
public static IndexBuffer wrapIndexBuffer(java.nio.Buffer buf)
public static IndexBuffer createIndexBuffer(int vertexCount, int indexCount)
IndexShortBuffer
vertexCount
- The amount of vertices to containindexCount
- The amount of indices
to contain.
public abstract int get(int i)
i
- The index inside the index buffer
public abstract void put(int i, int value)
UnsupportedOperationException
if modifying the IndexBuffer is not supported (e.g. virtual index
buffers).
public abstract int size()
public abstract java.nio.Buffer getBuffer()
Buffer
.
Implementations may return null if there's no underlying
buffer.
Buffer
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |