| Modifier and Type | Field and Description |
|---|---|
| public static final int | GL_BUFFER_ACCESS_OES
Accepted by the <value> parameter of GetBufferParameteriv: |
| public static final int | GL_BUFFER_MAP_POINTER_OES
Accepted by the <pname> parameter of GetBufferPointervOES: |
| public static final int | GL_BUFFER_MAPPED_OES
Accepted by the <value> parameter of GetBufferParameteriv: |
| public static final int | GL_WRITE_ONLY_OES
Accepted by the <access> parameter of MapBufferOES: |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ByteBuffer | |
| public static ByteBuffer | |
| public static ByteBuffer | Returns: A ByteBuffer representing the mapped buffer memory.A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
old_buffer)glMapBufferOES maps a GL buffer object to a ByteBuffer. |
| public static ByteBuffer | Returns: A ByteBuffer representing the mapped buffer memory.A ByteBuffer. If this argument points to the same address and has the same capacity as the new mapping, it will be returned and no new buffer will be created.
old_buffer)glMapBufferOES maps a GL buffer object to a ByteBuffer. |
| public static boolean | |
| pack-priv static native void | |
| pack-priv static native ByteBuffer | |
| pack-priv static native ByteBuffer | |
| pack-priv static native boolean |
| GL_BUFFER_ACCESS_OES | back to summary |
|---|---|
| public static final int GL_BUFFER_ACCESS_OES Accepted by the <value> parameter of GetBufferParameteriv: | |
| GL_BUFFER_MAP_POINTER_OES | back to summary |
|---|---|
| public static final int GL_BUFFER_MAP_POINTER_OES Accepted by the <pname> parameter of GetBufferPointervOES: | |
| GL_BUFFER_MAPPED_OES | back to summary |
|---|---|
| public static final int GL_BUFFER_MAPPED_OES Accepted by the <value> parameter of GetBufferParameteriv: | |
| GL_WRITE_ONLY_OES | back to summary |
|---|---|
| public static final int GL_WRITE_ONLY_OES Accepted by the <access> parameter of MapBufferOES: | |
| OESMapbuffer | back to summary |
|---|---|
| private OESMapbuffer() | |
| glGetBufferPointerOES | back to summary |
|---|---|
| public static ByteBuffer glGetBufferPointerOES(int target, int pname, ByteBuffer old_buffer) | |
| glGetBufferPointervOES | back to summary |
|---|---|
| public static ByteBuffer glGetBufferPointervOES(int target, int pname, long length, ByteBuffer old_buffer) | |
| glMapBufferOES | back to summary |
|---|---|
| public static ByteBuffer glMapBufferOES(int target, int access, ByteBuffer old_buffer) glMapBufferOES maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null, in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null, it will be returned if it points to the same mapped memory and has the same capacity as the buffer object, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like this: ByteBuffer mapped_buffer; mapped_buffer = glMapBufferOES(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferOES(..., ..., mapped_buffer); Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused. The version of this method without an explicit length argument calls glGetBufferParameter internally to retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.
The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
| |
| glMapBufferOES | back to summary |
|---|---|
| public static ByteBuffer glMapBufferOES(int target, int access, long length, ByteBuffer old_buffer) glMapBufferOES maps a GL buffer object to a ByteBuffer. The old_buffer argument can be null, in which case a new ByteBuffer will be created, pointing to the returned memory. If old_buffer is non-null, it will be returned if it points to the same mapped memory and has the same capacity as the buffer object, otherwise a new ByteBuffer is created. That way, an application will normally use glMapBuffer like this: ByteBuffer mapped_buffer; mapped_buffer = glMapBufferOES(..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferOES(..., ..., mapped_buffer); Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused. The version of this method without an explicit length argument calls glGetBufferParameter internally to retrieve the current buffer object size, which may cause a pipeline flush and reduce application performance.
The version of this method with an explicit length argument is a fast alternative to the one without. No GL call
is made to retrieve the buffer object size, so the user is responsible for tracking and using the appropriate length.
| |
| glUnmapBufferOES | back to summary |
|---|---|
| public static boolean glUnmapBufferOES(int target) | |
| initNativeStubs | back to summary |
|---|---|
| pack-priv static native void initNativeStubs() throws LWJGLException | |
| nglGetBufferPointervOES | back to summary |
|---|---|
| pack-priv static native ByteBuffer nglGetBufferPointervOES(int target, int pname, long result_size, ByteBuffer old_buffer) | |
| nglMapBufferOES | back to summary |
|---|---|
| pack-priv static native ByteBuffer nglMapBufferOES(int target, int access, long result_size, ByteBuffer old_buffer) | |
| nglUnmapBufferOES | back to summary |
|---|---|
| pack-priv static native boolean nglUnmapBufferOES(int target) | |