|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.opengl.GLBufferStorage
public abstract class GLBufferStorage
OpenGL buffer storage object reflecting it's
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
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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()
GL.glMapBuffer(int, int)GL.glMapBufferRange(int, long, long, int)GL2.glMapNamedBufferEXT(int, int)GL2.glMapNamedBufferRangeEXT(int, long, long, int)
public final String toString()
toString in class Objectpublic final String toString(boolean skipMappedBuffer)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||