public interface IVertexBufferObject extends IDisposable
IDisposable.AlreadyDisposedException| Modifier and Type | Field and Description |
|---|---|
static int |
HARDWARE_BUFFER_ID_INVALID |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(GLState pGLState) |
void |
bind(GLState pGLState,
ShaderProgram pShaderProgram) |
void |
draw(int pPrimitiveType,
int pCount) |
void |
draw(int pPrimitiveType,
int pOffset,
int pCount) |
int |
getByteCapacity() |
int |
getCapacity() |
int |
getGPUMemoryByteSize() |
int |
getHardwareBufferID() |
int |
getHeapMemoryByteSize() |
int |
getNativeHeapMemoryByteSize() |
VertexBufferObjectManager |
getVertexBufferObjectManager() |
boolean |
isAutoDispose() |
boolean |
isDirtyOnHardware() |
boolean |
isLoadedToHardware() |
void |
setDirtyOnHardware()
Mark this
VertexBufferObject dirty so it gets updated on the hardware. |
void |
setNotLoadedToHardware()
Mark this
VertexBufferObject as not not loaded to hardware. |
void |
unbind(GLState pGLState,
ShaderProgram pShaderProgram) |
void |
unloadFromHardware(GLState pGLState) |
dispose, isDisposedstatic final int HARDWARE_BUFFER_ID_INVALID
boolean isAutoDispose()
int getHardwareBufferID()
boolean isLoadedToHardware()
void setNotLoadedToHardware()
VertexBufferObject as not not loaded to hardware.
It will reload itself to hardware when it gets used again.void unloadFromHardware(GLState pGLState)
boolean isDirtyOnHardware()
void setDirtyOnHardware()
VertexBufferObject dirty so it gets updated on the hardware.int getCapacity()
floats that fit into this IVertexBufferObject.int getByteCapacity()
bytes that fit into this IVertexBufferObject.int getHeapMemoryByteSize()
bytes that are allocated on the heap.int getNativeHeapMemoryByteSize()
bytes that are allocated on the native heap (through direct ByteBuffers).int getGPUMemoryByteSize()
bytes that are allocated on the GPU.void bind(GLState pGLState)
void bind(GLState pGLState, ShaderProgram pShaderProgram)
void unbind(GLState pGLState, ShaderProgram pShaderProgram)
VertexBufferObjectManager getVertexBufferObjectManager()
void draw(int pPrimitiveType,
int pCount)
void draw(int pPrimitiveType,
int pOffset,
int pCount)