|
ClanLib
2.3.7
|
Primitives array builder class. More...
#include <primitives_array_builder.h>
Public Member Functions | |
| CL_PrimitivesArrayBuilder () | |
| void | append (int num_vertices, const CL_PrimitivesArray &prim_array) |
| Append. More... | |
| CL_VertexArrayBuffer | create_buffer (CL_GraphicContext &gc, CL_BufferUsage usage=cl_usage_static_draw) |
| Create buffer. More... | |
| void | draw (CL_GraphicContext &gc, CL_PrimitivesType type) |
| Draw. More... | |
Primitives array builder class.
| CL_PrimitivesArrayBuilder::CL_PrimitivesArrayBuilder | ( | ) |
| void CL_PrimitivesArrayBuilder::append | ( | int | num_vertices, |
| const CL_PrimitivesArray & | prim_array | ||
| ) |
Append.
| num_vertices | = value |
| prim_array | = Primitives Array |
| CL_VertexArrayBuffer CL_PrimitivesArrayBuilder::create_buffer | ( | CL_GraphicContext & | gc, |
| CL_BufferUsage | usage = cl_usage_static_draw |
||
| ) |
Create buffer.
| gc | = Graphic Context |
| usage | = Buffer Usage |
| void CL_PrimitivesArrayBuilder::draw | ( | CL_GraphicContext & | gc, |
| CL_PrimitivesType | type | ||
| ) |
Draw.
| gc | = Graphic Context |
| type | = Primitives Type |
1.8.4