public abstract class GLBufferStorage extends Object
Buffer storage is created via:
glBufferStorage - storage creation with targetGL.glBufferData(int, long, java.nio.Buffer, int) - storage recreation with targetGL2.glNamedBufferDataEXT(int, long, java.nio.Buffer, int) - storage recreation, directBuffer storage is disposed via:
GL.glDeleteBuffers(int, IntBuffer) - explicit, direct, via #notifyBuffersDeleted(int, IntBuffer) or #notifyBuffersDeleted(int, int[], int)GL.glBufferData(int, long, java.nio.Buffer, int) - storage recreation via targetGL2.glNamedBufferDataEXT(int, long, java.nio.Buffer, int) - storage recreation, directGL buffer storage is mapped via
GLBase.mapBuffer(int, int)GLBase.mapBufferRange(int, long, long, int)GL2.mapNamedBuffer(int, int)GL2.mapNamedBufferRange(int, long, long, int)GL buffer storage is unmapped via
GL.glUnmapBuffer(int) - explicit via targetGL2.glUnmapNamedBufferEXT(int) - explicit directGL.glBufferData(int, long, java.nio.Buffer, int) - storage recreation via targetGL2.glNamedBufferDataEXT(int, long, java.nio.Buffer, int) - storage recreation, directGL.glDeleteBuffers(int, IntBuffer) - buffer deletion| Modifier and Type | Method and Description |
|---|---|
int |
getImmutableFlags()
Returns the immutable storage flags, invalid if storage is
mutable. |
ByteBuffer |
getMappedBuffer()
Returns the mapped ByteBuffer, or null if not mapped.
|
int |
getMutableUsage()
Returns the mutable storage usage or 0 if storage is not
mutable. |
int |
getName()
Return the buffer name
|
long |
getSize()
Return the buffer's storage size.
|
boolean |
isMutableStorage()
Returns
true if buffer's storage is mutable, i.e. |
String |
toString() |
String |
toString(boolean skipMappedBuffer) |
public final int getName()
public final long getSize()
public final boolean isMutableStorage()
true if buffer's storage is mutable, i.e.
created via GL.glBufferData(int, long, java.nio.Buffer, int).
Returns false if buffer's storage is immutable, i.e.
created via glBufferStorage. FIXME: Add GL 4.4 support!
public final int getMutableUsage()
mutable.public final int getImmutableFlags()
mutable.public final ByteBuffer getMappedBuffer()
public final String toString(boolean skipMappedBuffer)
Copyright 2010 JogAmp Community.