Java 类org.lwjgl.util.generator.CachedResult 实例源码

项目:Wolf_game    文件:EXT_map_buffer_range.java   
/**
 * 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:
 * <p/>
 * ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
 * <p/>
 * Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
 *
 * @param old_buffer 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.
 *
 * @return A ByteBuffer representing the mapped buffer memory.
 */
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRangeEXT(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
项目:GPVM    文件:EXT_map_buffer_range.java   
/**
 * 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:
 * <p/>
 * ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
 * <p/>
 * Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
 *
 * @param old_buffer 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.
 *
 * @return A ByteBuffer representing the mapped buffer memory.
 */
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRangeEXT(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
项目:TeacherSmash    文件:EXT_map_buffer_range.java   
/**
 * 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:
 * <p/>
 * ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
 * <p/>
 * Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
 *
 * @param old_buffer 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.
 *
 * @return A ByteBuffer representing the mapped buffer memory.
 */
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRangeEXT(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);
项目:3d-Demo    文件:EXT_map_buffer_range.java   
/**
 * 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:
 * <p/>
 * ByteBuffer mapped_buffer; mapped_buffer = glMapBufferRange(..., ..., ..., ..., null); ... // Another map on the same buffer mapped_buffer = glMapBufferRange(..., ..., ..., ..., mapped_buffer);
 * <p/>
 * Only ByteBuffers returned from this method are to be passed as the old_buffer argument. User-created ByteBuffers cannot be reused.
 *
 * @param old_buffer 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.
 *
 * @return A ByteBuffer representing the mapped buffer memory.
 */
@CachedResult(isRange = true)
@GLvoid
@AutoSize("length")
ByteBuffer glMapBufferRangeEXT(@GLenum int target, @GLintptr long offset, @GLsizeiptr long length, @GLbitfield int access);