DataBuffer
JoGLElementsBuffer
, JoGLIndicesBuffer
public abstract class JoGLDataBuffer extends java.lang.Object implements DataBuffer
Modifier and Type | Method | Description |
---|---|---|
abstract void |
clear() |
|
void |
dispose(com.jogamp.opengl.GL gl) |
Called when it's time to kill this buffer.
|
int |
disposeWithoutDelete(com.jogamp.opengl.GL gl) |
Called when it's time to kill this buffer.
|
protected abstract java.nio.Buffer |
getByteBuffer() |
Return the data as byte buffer.
|
abstract int |
getByteSize() |
Return the size of this buffer in byte.
|
protected abstract int |
getGLBindDestination() |
Return the OpenGl bind destination.
|
protected java.lang.Integer |
getGlName(com.jogamp.opengl.GL gl) |
Return the OpenGl name of this buffer.
|
protected boolean |
isDataUploaded() |
Return the data uploaded status.
|
void |
reload() |
Called to reload a buffer.
|
protected void |
setDataUploaded(boolean dataUploaded) |
Set the data uploaded status.
|
protected void |
synchronize(com.jogamp.opengl.GL gl) |
Synchronize this buffer.
|
getData, getSize
public void reload()
public void dispose(com.jogamp.opengl.GL gl)
gl
- the OpenGl context.public int disposeWithoutDelete(com.jogamp.opengl.GL gl)
gl
- the OpenGl context.protected void synchronize(com.jogamp.opengl.GL gl)
gl
- the OpenGl context where synchronization is done.protected boolean isDataUploaded()
protected void setDataUploaded(boolean dataUploaded)
dataUploaded
- the new data uploaded status.protected java.lang.Integer getGlName(com.jogamp.opengl.GL gl)
gl
- the OpenGl context.protected abstract java.nio.Buffer getByteBuffer()
protected abstract int getGLBindDestination()
public abstract int getByteSize()
public abstract void clear()
clear
in interface DataBuffer