|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.mesh.IndexBuffer
com.jme3.scene.mesh.IndexByteBuffer
public class IndexByteBuffer
IndexBuffer implementation for ByteBuffer
s.
Constructor Summary | |
---|---|
IndexByteBuffer(java.nio.ByteBuffer buffer)
|
Method Summary | |
---|---|
int |
get(int i)
Returns the vertex index for the given index in the index buffer. |
java.nio.Buffer |
getBuffer()
Returns the underlying data-type specific Buffer . |
void |
put(int i,
int value)
Puts the vertex index at the index buffer's index. |
int |
size()
Returns the size of the index buffer. |
Methods inherited from class com.jme3.scene.mesh.IndexBuffer |
---|
createIndexBuffer, wrapIndexBuffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexByteBuffer(java.nio.ByteBuffer buffer)
Method Detail |
---|
public int get(int i)
IndexBuffer
get
in class IndexBuffer
i
- The index inside the index buffer
public void put(int i, int value)
IndexBuffer
UnsupportedOperationException
if modifying the IndexBuffer is not supported (e.g. virtual index
buffers).
put
in class IndexBuffer
public int size()
IndexBuffer
size
in class IndexBuffer
public java.nio.Buffer getBuffer()
IndexBuffer
Buffer
.
Implementations may return null if there's no underlying
buffer.
getBuffer
in class IndexBuffer
Buffer
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |