public abstract class GLBufferStorage extends Object
Buffer storage is created via:
GL.glBufferData(int, long, java.nio.Buffer, int)
- storage creation via targetGL2.glNamedBufferDataEXT(int, long, java.nio.Buffer, int)
- storage creation, directGL4.glNamedBufferData(int, long, java.nio.Buffer, int)
- storage creation, directGL4.glBufferStorage(int, long, Buffer, int)
- storage creation via targetGL4.glNamedBufferStorage(int, long, Buffer, int)
- storage creation, 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, directGL4.glNamedBufferData(int, long, java.nio.Buffer, int)
- storage recreation, directGL4.glBufferStorage(int, long, Buffer, int)
- storage recreation via targetGL4.glNamedBufferStorage(int, long, Buffer, int)
- storage recreation, directGL buffer storage is mapped via
GLBase.mapBuffer(int, int)
GLBase.mapBufferRange(int, long, long, int)
GL2.mapNamedBufferEXT(int, int)
GL2.mapNamedBufferRangeEXT(int, long, long, int)
GL4.mapNamedBuffer(int, int)
GL4.mapNamedBufferRange(int, long, long, int)
GL buffer storage is unmapped via
GL.glDeleteBuffers(int, IntBuffer)
- buffer deletionGL.glUnmapBuffer(int)
- explicit via targetGL2.glUnmapNamedBufferEXT(int)
- explicit directGL4.glUnmapNamedBuffer(int)
- explicit directGL.glBufferData(int, long, java.nio.Buffer, int)
- storage recreation via targetGL2.glNamedBufferDataEXT(int, long, java.nio.Buffer, int)
- storage recreation, directGL4.glNamedBufferData(int, long, java.nio.Buffer, int)
- storage recreation, directGL4.glBufferStorage(int, long, Buffer, int)
- storage creation via targetGL4.glNamedBufferStorage(int, long, Buffer, int)
- storage creation, directModifier 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 GL4.glBufferStorage(int, long, Buffer, int)
.
public final int getMutableUsage()
mutable
.public final int getImmutableFlags()
mutable
.public final ByteBuffer getMappedBuffer()
public final String toString(boolean skipMappedBuffer)
Copyright 2010 JogAmp Community.