ClanLib  2.3.7
Public Member Functions | List of all members
CL_PrimitivesArrayBuilder Class Reference

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...
 

Detailed Description

Primitives array builder class.

Constructor & Destructor Documentation

CL_PrimitivesArrayBuilder::CL_PrimitivesArrayBuilder ( )

Member Function Documentation

void CL_PrimitivesArrayBuilder::append ( int  num_vertices,
const CL_PrimitivesArray prim_array 
)

Append.

Parameters
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.

Parameters
gc= Graphic Context
usage= Buffer Usage
Returns
Vertex Array Buffer
void CL_PrimitivesArrayBuilder::draw ( CL_GraphicContext gc,
CL_PrimitivesType  type 
)

Draw.

Parameters
gc= Graphic Context
type= Primitives Type

The documentation for this class was generated from the following file: