public class JoGLIndicesBuffer extends JoGLDataBuffer implements IndicesBuffer
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
protected java.nio.Buffer |
getByteBuffer()
Return the data as byte buffer.
|
int |
getByteSize()
Return the size of this buffer in byte.
|
java.nio.IntBuffer |
getData()
Return the data.
|
protected int |
getGLBindDestination()
Return the OpenGl bind destination.
|
int |
getSize()
Return the number of elements.
|
void |
setData(java.util.Collection<java.lang.Integer> indices)
Set the data
|
void |
setData(int[] indices)
Set the data
|
void |
setData(java.nio.IntBuffer indexBuffer)
Set the data.
|
dispose, disposeWithoutDelete, getGlName, isDataUploaded, reload, setDataUploaded, synchronizepublic void setData(int[] indices)
IndicesBuffersetData in interface IndicesBufferindices - the new data.public void setData(java.util.Collection<java.lang.Integer> indices)
IndicesBuffersetData in interface IndicesBufferindices - the new data.public void setData(java.nio.IntBuffer indexBuffer)
IndicesBuffersetData in interface IndicesBufferindexBuffer - the new data.public int getSize()
DataBuffergetSize in interface DataBufferpublic java.nio.IntBuffer getData()
DataBuffergetData in interface DataBuffergetData in interface IndicesBufferpublic int getByteSize()
JoGLDataBuffergetByteSize in class JoGLDataBufferprotected java.nio.Buffer getByteBuffer()
JoGLDataBuffergetByteBuffer in class JoGLDataBufferprotected int getGLBindDestination()
JoGLDataBuffergetGLBindDestination in class JoGLDataBufferpublic void clear()
clear in interface DataBufferclear in interface IndicesBufferclear in class JoGLDataBuffer