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
GL#mapBuffer(int, int)GL#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, direct| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private ByteBuffer | |
| private static final String | |
| private int | |
| private final int | |
| private long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| public final ByteBuffer | |
| public final int | |
| public final int | |
| public final long | |
| public final boolean | isMutableStorage()
Returns |
| protected void | |
| protected void | |
| public final String | |
| public final String |
| immutableFlags | back to summary |
|---|---|
| private int immutableFlags | |
| mappedBuffer | back to summary |
|---|---|
| private ByteBuffer mappedBuffer | |
| msgClazzName | back to summary |
|---|---|
| private static final String msgClazzName | |
| mutableUsage | back to summary |
|---|---|
| private int mutableUsage | |
| name | back to summary |
|---|---|
| private final int name | |
| size | back to summary |
|---|---|
| private long size | |
| GLBufferStorage | back to summary |
|---|---|
| protected GLBufferStorage(final int name, final long size, final int mutableUsage, final int immutableFlags) | |
| getImmutableFlags | back to summary |
|---|---|
| public final int getImmutableFlags() Returns the immutable storage flags, invalid if storage is | |
| getMappedBuffer | back to summary |
|---|---|
| public final ByteBuffer getMappedBuffer() Returns the mapped ByteBuffer, or null if not mapped. Mapping may occur via: | |
| getMutableUsage | back to summary |
|---|---|
| public final int getMutableUsage() Returns the mutable storage usage or 0 if storage is not | |
| getName | back to summary |
|---|---|
| public final int getName() Return the buffer name | |
| getSize | back to summary |
|---|---|
| public final long getSize() Return the buffer's storage size. | |
| isMutableStorage | back to summary |
|---|---|
| public final boolean isMutableStorage() Returns
Returns | |
| reset | back to summary |
|---|---|
| protected void reset(final long size, final int mutableUsage, final int immutableFlags) | |
| setMappedBuffer | back to summary |
|---|---|
| protected void setMappedBuffer(final ByteBuffer buffer) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| toString | back to summary |
|---|---|
| public final String toString(final boolean skipMappedBuffer) | |