|
| | Buffer (GLenum target=GL_ARRAY_BUFFER) |
| void | bind () |
| | Binds the buffer object to the target it was previously bound to or GL_ARRAY_BUFFER if the buffer has not been bound to a target before.
|
| void | bind (GLenum target) |
| | Binds the buffer object to a target.
|
| void | bind (GLenum target, unsigned int index) |
| | Binds the buffer object to an indexed buffer target.
|
| void | unbind () |
| | Unbinds the buffer object from the target it was bound to.
|
| template<typename T> |
| void | create_empty (unsigned int num_elements, GLenum usage) |
| | Creates an empty buffer.
|
| template<typename T> |
| void | load (const std::vector< T > &data, GLenum usage) |
| | Loads data into the buffer.
|
| template<typename T> |
| void | load (unsigned int num_elements, const T *data, GLenum usage) |
| | Loads data into the buffer.
|
| bool | store (unsigned int offset, unsigned int size, void *storage) |
| | Writes the contents of the buffer object into the storage.
|
| bool | copy (Buffer &source, unsigned int read_offset, unsigned int write_offset, unsigned int size) |
| | Copies data from another buffer object.
|
| bool | copy (Buffer *source, unsigned int read_offset, unsigned int write_offset, unsigned int size) |
| | Copies data from another buffer object.
|
| void * | map (GLenum access) |
| | Maps all of a buffer object's data into the client's address space.
|
| void | unmap () |
| | Releases the mapping of a buffer object's data store into the client's address space.
|
| template<typename T> |
| void | replace_data (const std::vector< T > &data) |
| | Overwrites all data in a vertex buffer.
|
| template<typename T> |
| void | replace_data (const T *data, unsigned int number_elements) |
| | Overwrites all data in the buffer.
|
| template<typename T> |
| bool | replace_partial_data (unsigned int offset, const std::vector< T > &data) |
| | Overwrites data in the buffer starting at the specified offset.
|
| template<typename T> |
| bool | replace_partial_data (unsigned int offset, const T *data, unsigned int number_elements) |
| | Overwrites data in the buffer starting at the specified offset.
|
Manages buffer objects.
Definition at line 12 of file buffer.h.