Vertex Array Buffer. More...
#include <vertex_array_buffer.h>
Public Member Functions | |
Construction | |
| CL_VertexArrayBuffer () | |
| Constructs a null instance. | |
| CL_VertexArrayBuffer (CL_GraphicContext &gc, int size, CL_BufferUsage usage=cl_usage_static_draw) | |
| Constructs a VertexArrayBuffer. | |
| CL_VertexArrayBuffer (CL_GraphicContext &gc, void *data, int size, CL_BufferUsage usage=cl_usage_static_draw) | |
| Constructs a VertexArrayBuffer. | |
| virtual | ~CL_VertexArrayBuffer () |
Attributes | |
| bool | is_null () const |
| Returns true if this object is invalid. | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. | |
| void * | get_data () |
| Retrieves a pointer to the mapped buffer. | |
| CL_VertexArrayBufferProvider * | get_provider () const |
| Get Provider. | |
Operations | |
| bool | operator== (const CL_VertexArrayBuffer &other) const |
| Handle comparison operator. | |
| void | lock (CL_BufferAccess access) |
| Maps vertex buffer into system memory. | |
| void | unlock () |
| Unmaps vertex buffer. | |
| void | upload_data (int offset, void *data, int size) |
| Uploads data to vertex array buffer. | |
Vertex Array Buffer.
| CL_VertexArrayBuffer::CL_VertexArrayBuffer | ( | ) |
Constructs a null instance.
| CL_VertexArrayBuffer::CL_VertexArrayBuffer | ( | CL_GraphicContext & | gc, | |
| int | size, | |||
| CL_BufferUsage | usage = cl_usage_static_draw | |||
| ) |
Constructs a VertexArrayBuffer.
| gc | = Graphic Context | |
| size | = value | |
| usage | = Buffer Usage |
| CL_VertexArrayBuffer::CL_VertexArrayBuffer | ( | CL_GraphicContext & | gc, | |
| void * | data, | |||
| int | size, | |||
| CL_BufferUsage | usage = cl_usage_static_draw | |||
| ) |
Constructs a VertexArrayBuffer.
| gc | = Graphic Context | |
| data | = void | |
| size | = value | |
| usage | = Buffer Usage |
| virtual CL_VertexArrayBuffer::~CL_VertexArrayBuffer | ( | ) | [virtual] |
| void* CL_VertexArrayBuffer::get_data | ( | ) |
Retrieves a pointer to the mapped buffer.
| CL_VertexArrayBufferProvider* CL_VertexArrayBuffer::get_provider | ( | ) | const |
Get Provider.
| bool CL_VertexArrayBuffer::is_null | ( | ) | const [inline] |
Returns true if this object is invalid.
| void CL_VertexArrayBuffer::lock | ( | CL_BufferAccess | access | ) |
Maps vertex buffer into system memory.
| bool CL_VertexArrayBuffer::operator== | ( | const CL_VertexArrayBuffer & | other | ) | const |
Handle comparison operator.
| void CL_VertexArrayBuffer::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
| void CL_VertexArrayBuffer::unlock | ( | ) |
Unmaps vertex buffer.
| void CL_VertexArrayBuffer::upload_data | ( | int | offset, | |
| void * | data, | |||
| int | size | |||
| ) |
Uploads data to vertex array buffer.
1.7.1