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, getGlName, isDataUploaded, reload, setDataUploaded, synchronize
public void setData(int[] indices)
IndicesBuffer
setData
in interface IndicesBuffer
indices
- the new data.public void setData(java.util.Collection<java.lang.Integer> indices)
IndicesBuffer
setData
in interface IndicesBuffer
indices
- the new data.public void setData(java.nio.IntBuffer indexBuffer)
IndicesBuffer
setData
in interface IndicesBuffer
indexBuffer
- the new data.public int getSize()
DataBuffer
getSize
in interface DataBuffer
public java.nio.IntBuffer getData()
DataBuffer
getData
in interface DataBuffer
getData
in interface IndicesBuffer
public int getByteSize()
JoGLDataBuffer
getByteSize
in class JoGLDataBuffer
protected java.nio.Buffer getByteBuffer()
JoGLDataBuffer
getByteBuffer
in class JoGLDataBuffer
protected int getGLBindDestination()
JoGLDataBuffer
getGLBindDestination
in class JoGLDataBuffer
public void clear()
clear
in interface DataBuffer
clear
in interface IndicesBuffer
clear
in class JoGLDataBuffer