glGetBufferSubData

returns a subset of a buffer object's data store

Signature

glGetBufferSubData( GLenum ( target ) , GLintptr ( offset ) , GLsizeiptr ( size ) , GLvoid * ( data ) )-> void
glGetBufferSubData( target , offset , size , data )

Parameters

VariablesDescription
target
Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER , GL_ATOMIC_COUNTER_BUFFER , GL_COPY_READ_BUFFER , GL_COPY_WRITE_BUFFER , GL_DRAW_INDIRECT_BUFFER , GL_DISPATCH_INDIRECT_BUFFER , GL_ELEMENT_ARRAY_BUFFER , GL_PIXEL_PACK_BUFFER , GL_PIXEL_UNPACK_BUFFER , GL_QUERY_RESULT_BUFFER , GL_TEXTURE_BUFFER , GL_TRANSFORM_FEEDBACK_BUFFER , or GL_UNIFORM_BUFFER .
offset
Specifies the offset into the buffer object's data store from which data will be returned, measured in bytes.
size
Specifies the size in bytes of the data store region being returned.
data
Specifies a pointer to the location where buffer object data is returned.