public abstract class JoGLDataBuffer extends java.lang.Object implements DataBuffer
| Modifier and Type | Method and Description |
|---|---|
abstract void |
clear() |
void |
dispose(GL gl)
Called when it's time to kill this buffer.
|
int |
disposeWithoutDelete(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(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(GL gl)
Synchronize this buffer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getSizepublic void reload()
public void dispose(GL gl)
gl - the OpenGl context.public int disposeWithoutDelete(GL gl)
gl - the OpenGl context.protected void synchronize(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(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