|
| ElementArrayVector () |
| Constructs a null instance.
|
|
| ElementArrayVector (GraphicContext &gc, const std::vector< Type > &data, BufferUsage usage=BufferUsage::static_draw) |
|
| ElementArrayVector (GraphicContext &gc, int size, BufferUsage usage=BufferUsage::static_draw) |
| Constructs a ElementArrayBuffer.
|
|
| ElementArrayVector (GraphicContext &gc, Type *data, int size, BufferUsage usage=BufferUsage::static_draw) |
| Constructs a ElementArrayBuffer.
|
|
void | copy_from (GraphicContext &gc, TransferVector< Type > &buffer, int dest_pos=0, int src_pos=0, int size=-1) |
| Copies data from transfer buffer.
|
|
void | copy_to (GraphicContext &gc, TransferVector< Type > &buffer, int dest_pos=0, int src_pos=0, int size=-1) |
| Copies data to transfer buffer.
|
|
void | upload_data (GraphicContext &gc, const std::vector< Type > &data) |
| Uploads data to element array buffer.
|
|
void | upload_data (GraphicContext &gc, const Type *data, int size) |
| Uploads data to element array buffer.
|
|
| ElementArrayBuffer () |
| Constructs a null instance.
|
|
| ElementArrayBuffer (GraphicContext &gc, const void *data, int size, BufferUsage usage=BufferUsage::static_draw) |
| Constructs a ElementArrayBuffer.
|
|
| ElementArrayBuffer (GraphicContext &gc, int size, BufferUsage usage=BufferUsage::static_draw) |
| Constructs a ElementArrayBuffer.
|
|
virtual | ~ElementArrayBuffer () |
|
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.
|
|
ElementArrayBufferProvider * | get_provider () const |
| Get Provider.
|
|
bool | is_null () const |
| Returns true if this object is invalid.
|
|
| operator bool () const |
|
bool | operator== (const ElementArrayBuffer &other) const |
| Handle comparison operator.
|
|
void | throw_if_null () const |
| Throw an exception if this object is invalid.
|
|
void | upload_data (GraphicContext &gc, const void *data, int size) |
| Uploads data to element array buffer.
|
|
template<typename Type>
class clan::ElementArrayVector< Type >
Element Array Vector.