glMapBuffer, glFlushMappedBufferRange, glBindBuffer
Copyright 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
Page generated by adrdox
glMapBufferRange: man3/glMapBufferRange.xml
glMapBufferRange maps all or part of the data store of a buffer object into the client's address space. target specifies the target to which the buffer is bound and must be one of GL_ARRAY_BUFFER, GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, GL_PIXEL_UNPACK_BUFFER, GL_TEXTURE_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER, or GL_UNIFORM_BUFFER. offset and length indicate the range of data in the buffer object htat is to be mapped, in terms of basic machine units. access is a bitfield containing flags which describe the requested mapping. These flags are described below. If no error occurs, a pointer to the beginning of the mapped range is returned once all pending operations on that buffer have completed, and may be used to modify and/or query the corresponding range of the buffer, according to the following flag bits set in access :
Furthermore, the following flag bits in access may be used to modify the mapping:
If an error occurs, glMapBufferRange returns a null pointer.