Public Member Functions

CL_PrimitivesArrayBuilder Class Reference
[clanDisplay Display]

Primitives array builder class. More...

#include <primitives_array_builder.h>

List of all members.

Public Member Functions

 CL_PrimitivesArrayBuilder ()
void append (int num_vertices, const CL_PrimitivesArray &prim_array)
 Append.
CL_VertexArrayBuffer create_buffer (CL_GraphicContext &gc, CL_BufferUsage usage=cl_usage_static_draw)
 Create buffer.
void draw (CL_GraphicContext &gc, CL_PrimitivesType type)
 Draw.

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: