public class BufferObject extends java.lang.Object implements RenderResource
Constructor and Description |
---|
BufferObject(int target,
int size,
java.nio.Buffer buffer) |
Modifier and Type | Method and Description |
---|---|
boolean |
bindBuffer(DrawContext dc) |
int |
getBufferByteCount() |
int |
getBufferLength() |
int |
getBufferTarget() |
void |
release(DrawContext dc)
Frees any resources associated with this instance.
|
public int getBufferTarget()
public int getBufferLength()
public int getBufferByteCount()
public void release(DrawContext dc)
RenderResource
release
in interface RenderResource
dc
- the current draw contextpublic boolean bindBuffer(DrawContext dc)