Vertex Array Buffer. More...
#include <vertex_array_buffer.h>
Public Member Functions | |
| VertexArrayBuffer () | |
| Constructs a null instance. | |
| VertexArrayBuffer (GraphicContext &gc, const void *data, int size, BufferUsage usage=BufferUsage::static_draw) | |
| Constructs a VertexArrayBuffer. | |
| VertexArrayBuffer (GraphicContext &gc, int size, BufferUsage usage=BufferUsage::static_draw) | |
| Constructs a VertexArrayBuffer. | |
| virtual | ~VertexArrayBuffer () |
| void | copy_from (GraphicContext &gc, TransferBuffer &buffer, int dest_pos=0, int src_pos=0, int size=-1) |
| Copies data from transfer buffer. | |
| void | copy_to (GraphicContext &gc, TransferBuffer &buffer, int dest_pos=0, int src_pos=0, int size=-1) |
| Copies data to transfer buffer. | |
| VertexArrayBufferProvider * | get_provider () const |
| Get Provider. | |
| bool | is_null () const |
| Returns true if this object is invalid. | |
| operator bool () const | |
| bool | operator== (const VertexArrayBuffer &other) const |
| Handle comparison operator. | |
| void | throw_if_null () const |
| Throw an exception if this object is invalid. | |
| void | upload_data (GraphicContext &gc, int offset, const void *data, int size) |
| Uploads data to vertex array buffer. | |
Vertex Array Buffer.
| clan::VertexArrayBuffer::VertexArrayBuffer | ( | ) |
Constructs a null instance.
Referenced by clan::VertexArrayVector< Type >::VertexArrayVector(), clan::VertexArrayVector< Type >::VertexArrayVector(), clan::VertexArrayVector< Type >::VertexArrayVector(), clan::VertexArrayVector< Type >::VertexArrayVector(), and operator==().
| clan::VertexArrayBuffer::VertexArrayBuffer | ( | GraphicContext & | gc, |
| int | size, | ||
| BufferUsage | usage = BufferUsage::static_draw ) |
Constructs a VertexArrayBuffer.
| gc | = Graphic Context |
| size | = value |
| usage | = Buffer Usage |
References clan::static_draw.
| clan::VertexArrayBuffer::VertexArrayBuffer | ( | GraphicContext & | gc, |
| const void * | data, | ||
| int | size, | ||
| BufferUsage | usage = BufferUsage::static_draw ) |
Constructs a VertexArrayBuffer.
| gc | = Graphic Context |
| data | = void |
| size | = value |
| usage | = Buffer Usage |
References clan::static_draw.
|
virtual |
| void clan::VertexArrayBuffer::copy_from | ( | GraphicContext & | gc, |
| TransferBuffer & | buffer, | ||
| int | dest_pos = 0, | ||
| int | src_pos = 0, | ||
| int | size = -1 ) |
Copies data from transfer buffer.
Referenced by clan::VertexArrayVector< Type >::copy_from().
| void clan::VertexArrayBuffer::copy_to | ( | GraphicContext & | gc, |
| TransferBuffer & | buffer, | ||
| int | dest_pos = 0, | ||
| int | src_pos = 0, | ||
| int | size = -1 ) |
Copies data to transfer buffer.
Referenced by clan::VertexArrayVector< Type >::copy_to().
| VertexArrayBufferProvider * clan::VertexArrayBuffer::get_provider | ( | ) | const |
Get Provider.
|
inline |
Returns true if this object is invalid.
|
inlineexplicit |
| bool clan::VertexArrayBuffer::operator== | ( | const VertexArrayBuffer & | other | ) | const |
Handle comparison operator.
References VertexArrayBuffer().
| void clan::VertexArrayBuffer::throw_if_null | ( | ) | const |
Throw an exception if this object is invalid.
| void clan::VertexArrayBuffer::upload_data | ( | GraphicContext & | gc, |
| int | offset, | ||
| const void * | data, | ||
| int | size ) |
Uploads data to vertex array buffer.
Referenced by clan::VertexArrayVector< Type >::upload_data(), and clan::VertexArrayVector< Type >::upload_data().