|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
OpenGL buffer storage object reflecting it's. More...
Public Member Functions | |
| final int | getName () |
| Return the buffer name. More... | |
| final long | getSize () |
| Return the buffer's storage size. More... | |
| final boolean | isMutableStorage () |
Returns true if buffer's storage is mutable, i.e. More... | |
| final int | getMutableUsage () |
Returns the mutable storage usage or 0 if storage is not mutable. More... | |
| final int | getImmutableFlags () |
Returns the immutable storage flags, invalid if storage is mutable. More... | |
| final ByteBuffer | getMappedBuffer () |
| Returns the mapped ByteBuffer, or null if not mapped. More... | |
| final String | toString () |
| final String | toString (final boolean skipMappedBuffer) |
Protected Member Functions | |
| GLBufferStorage (final int name, final long size, final int mutableUsage, final int immutableFlags) | |
| void | reset (final long size, final int mutableUsage, final int immutableFlags) |
| void | setMappedBuffer (final ByteBuffer buffer) |
OpenGL buffer storage object reflecting it's.
Buffer storage is created via:
GL#glBufferData(int, long, java.nio.Buffer, int) - storage creation via target GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int) - storage creation, direct GL4#glNamedBufferData(int, long, java.nio.Buffer, int) - storage creation, direct GL4#glBufferStorage(int, long, Buffer, int) - storage creation via target GL4#glNamedBufferStorage(int, long, Buffer, int) - storage creation, direct Note that storage recreation as mentioned above also invalidate a previous storage instance, i.e. disposed the buffer's current storage if exist and attaches a new storage instance.
Buffer 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 target GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int) - storage recreation, direct GL4#glNamedBufferData(int, long, java.nio.Buffer, int) - storage recreation, direct GL4#glBufferStorage(int, long, Buffer, int) - storage recreation via target GL4#glNamedBufferStorage(int, long, Buffer, int) - storage recreation, direct GL 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 deletion GL#glUnmapBuffer(int) - explicit via target GL2#glUnmapNamedBufferEXT(int) - explicit direct GL4#glUnmapNamedBuffer(int) - explicit direct GL#glBufferData(int, long, java.nio.Buffer, int) - storage recreation via target GL2#glNamedBufferDataEXT(int, long, java.nio.Buffer, int) - storage recreation, direct GL4#glNamedBufferData(int, long, java.nio.Buffer, int) - storage recreation, direct GL4#glBufferStorage(int, long, Buffer, int) - storage creation via target GL4#glNamedBufferStorage(int, long, Buffer, int) - storage creation, direct Definition at line 90 of file GLBufferStorage.java.
|
protected |
Definition at line 97 of file GLBufferStorage.java.
| final int com.jogamp.opengl.GLBufferStorage.getImmutableFlags | ( | ) |
Returns the immutable storage flags, invalid if storage is mutable.
Definition at line 140 of file GLBufferStorage.java.
| final ByteBuffer com.jogamp.opengl.GLBufferStorage.getMappedBuffer | ( | ) |
Returns the mapped ByteBuffer, or null if not mapped.
Mapping may occur via:
GL#glMapBuffer(int, int) GL#glMapBufferRange(int, long, long, int) GL2#glMapNamedBufferEXT(int, int) GL2#glMapNamedBufferRangeEXT(int, long, long, int) Definition at line 152 of file GLBufferStorage.java.
| final int com.jogamp.opengl.GLBufferStorage.getMutableUsage | ( | ) |
Returns the mutable storage usage or 0 if storage is not mutable.
Definition at line 135 of file GLBufferStorage.java.
| final int com.jogamp.opengl.GLBufferStorage.getName | ( | ) |
Return the buffer name.
Definition at line 116 of file GLBufferStorage.java.
| final long com.jogamp.opengl.GLBufferStorage.getSize | ( | ) |
Return the buffer's storage size.
Definition at line 119 of file GLBufferStorage.java.
| final boolean com.jogamp.opengl.GLBufferStorage.isMutableStorage | ( | ) |
Returns 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).
Definition at line 130 of file GLBufferStorage.java.
|
protected |
Definition at line 105 of file GLBufferStorage.java.
|
protected |
Definition at line 111 of file GLBufferStorage.java.
| final String com.jogamp.opengl.GLBufferStorage.toString | ( | ) |
Definition at line 154 of file GLBufferStorage.java.
| final String com.jogamp.opengl.GLBufferStorage.toString | ( | final boolean | skipMappedBuffer | ) |