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