Top Fields Constructors Methods
org.lwjgl.opengles

public final Class EXTMapBufferRange

extends Object
Class Inheritance
Imports
org.lwjgl.*, java.nio.*

Field Summary

Modifier and TypeField and Description
public static final int
GL_MAP_FLUSH_EXPLICIT_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

public static final int
GL_MAP_INVALIDATE_BUFFER_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

public static final int
GL_MAP_INVALIDATE_RANGE_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

public static final int
GL_MAP_READ_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

public static final int
GL_MAP_UNSYNCHRONIZED_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

public static final int
GL_MAP_WRITE_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
glFlushMappedBufferRangeEXT(int target, long offset, long length)

public static ByteBuffer

Returns:

A ByteBuffer representing the mapped buffer memory.
glMapBufferRangeEXT
(int target, long offset, long length, int access, ByteBuffer
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
)

glMapBufferRange maps a GL buffer object range to a ByteBuffer.

pack-priv static native void
pack-priv static native void
nglFlushMappedBufferRangeEXT(int target, long offset, long length)

pack-priv static native ByteBuffer
nglMapBufferRangeEXT(int target, long offset, long length, int access, ByteBuffer old_buffer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_MAP_FLUSH_EXPLICIT_BIT_EXTback to summary
public static final int GL_MAP_FLUSH_EXPLICIT_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

GL_MAP_INVALIDATE_BUFFER_BIT_EXTback to summary
public static final int GL_MAP_INVALIDATE_BUFFER_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

GL_MAP_INVALIDATE_RANGE_BIT_EXTback to summary
public static final int GL_MAP_INVALIDATE_RANGE_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

GL_MAP_READ_BIT_EXTback to summary
public static final int GL_MAP_READ_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

GL_MAP_UNSYNCHRONIZED_BIT_EXTback to summary
public static final int GL_MAP_UNSYNCHRONIZED_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

GL_MAP_WRITE_BIT_EXTback to summary
public static final int GL_MAP_WRITE_BIT_EXT

Accepted by the <access> parameter of MapBufferRangeEXT:

Constructor Detail

EXTMapBufferRangeback to summary
private EXTMapBufferRange()

Method Detail

glFlushMappedBufferRangeEXTback to summary
public static void glFlushMappedBufferRangeEXT(int target, long offset, long length)
glMapBufferRangeEXTback to summary
public static ByteBuffer glMapBufferRangeEXT(int target, long offset, long length, int access, ByteBuffer old_buffer)

glMapBufferRange maps a GL buffer object range 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 glMapBufferRange like this:

ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);

Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.

Parameters
old_buffer:ByteBuffer

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.

Returns:ByteBuffer

A ByteBuffer representing the mapped buffer memory.

initNativeStubsback to summary
pack-priv static native void initNativeStubs() throws LWJGLException
nglFlushMappedBufferRangeEXTback to summary
pack-priv static native void nglFlushMappedBufferRangeEXT(int target, long offset, long length)
nglMapBufferRangeEXTback to summary
pack-priv static native ByteBuffer nglMapBufferRangeEXT(int target, long offset, long length, int access, ByteBuffer old_buffer)