GLBUFFERSUBDATA(3gl)GLBUFFERSUBDATA(3gl)NAME
glBufferSubData - modify some or all of the data contained in a buffer
object
C SPECIFICATION
void glBufferSubData( GLenum target,
GLintptr offset,
GLsizeiptr size,
const GLvoid * data )
PARAMETERS
target Specifies the target buffer. Must be GL_ARRAY_BUFFER or GL_ELE‐
MENT_ARRAY_BUFFER.
offset Specifies the offset in the buffer store of the data to be
replaced.
size Specifies the size of the buffer store data to be replaced.
data Specifies a pointer to the source data in client memory that
replace the specified buffer range.
DESCRIPTION
glBufferSubData modifies some or all of the data contained in a buffer
object. offset and size specify the range of data in the buffer object
that is to be replaced. data specifies a region of client memory that
replace the specified buffer range.
GL_INVALID_VALUE is generated if offset + size is greater than the
value of GL_BUFFER_SIZE of the buffer data store.
ASSOCIATED GETS
glGetBufferParameter with argument GL_BUFFER_SIZE
glGetBufferParameter with argument GL_BUFFER_USAGE
glGetBufferParameter with argument GL_BUFFER_ACCESS
glGetBufferParameter with argument GL_BUFFER_MAPPED
glGetBufferPointer with argument GL_BUFFER_MAP_POINTER
SEE ALSO
glBufferData, glGetBufferParameter.
13 Jan 04 GLBUFFERSUBDATA(3gl)