ClanLib  2.3.7
List of all members
CL_PrimitivesArray Class Reference

Primitives array description. More...

#include <primitives_array.h>

Public Member Functions

Construction
 CL_PrimitivesArray ()
 Construct a null instance. More...
 
 CL_PrimitivesArray (CL_GraphicContext &gc)
 Constructs a PrimitivesArray. More...
 
 ~CL_PrimitivesArray ()
 
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...
 
Operations
void set_attribute (int index, const CL_Vec1ub &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec1b &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec1us &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec1s &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec1ui &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec1i &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec1f &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2ub &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2b &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2us &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2s &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2ui &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2i &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec2f &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3ub &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3b &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3us &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3s &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3ui &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3i &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec3f &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4ub &value, bool normalize=false)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4b &value, bool normalize=false)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4us &value, bool normalize=false)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4s &value, bool normalize=false)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4ui &value, bool normalize=false)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4i &value, bool normalize=false)
 Set attribute. More...
 
void set_attribute (int index, const CL_Vec4f &value)
 Set attribute. More...
 
void set_attribute (int index, const CL_Colorf &value)
 Set attribute. More...
 
void set_attributes (int index, CL_VertexArrayBuffer &buffer, int size, CL_VertexAttributeDataType type, void *offset=0, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1ub *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1b *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1us *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1s *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1ui *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1i *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec1f *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2ub *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2b *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2us *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2s *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2ui *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2i *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec2f *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3ub *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3b *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3us *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3s *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3ui *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3i *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec3f *const values, int stride=0)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4ub *const values, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4b *const values, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4us *const values, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4s *const values, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4ui *const values, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4i *const values, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, const CL_Vec4f *const values, int stride=0)
 Set attributes. More...
 

Implementation

class CL_GraphicContext
 
class CL_PrimitivesArrayBuilder
 

Detailed Description

Primitives array description.

See "CL_StandardAttributeIndex" for the index values if using CL_StandardProgram with CL_PrimitivesArray

Constructor & Destructor Documentation

CL_PrimitivesArray::CL_PrimitivesArray ( )

Construct a null instance.

CL_PrimitivesArray::CL_PrimitivesArray ( CL_GraphicContext gc)

Constructs a PrimitivesArray.

Parameters
gc= Graphic Context
CL_PrimitivesArray::~CL_PrimitivesArray ( )

Member Function Documentation

bool CL_PrimitivesArray::is_null ( ) const
inline

Returns true if this object is invalid.

void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1ub value 
)

Set attribute.

Parameters
index= value
value= Vec1ub
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1b value 
)

Set attribute.

Parameters
index= value
value= Vec1b
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1us value 
)

Set attribute.

Parameters
index= value
value= Vec1us
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1s value 
)

Set attribute.

Parameters
index= value
value= Vec1s
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1ui value 
)

Set attribute.

Parameters
index= value
value= Vec1ui
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1i value 
)

Set attribute.

Parameters
index= value
value= Vec1i
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec1f value 
)

Set attribute.

Parameters
index= value
value= Vec1f
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2ub value 
)

Set attribute.

Parameters
index= value
value= Vec2ub
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2b value 
)

Set attribute.

Parameters
index= value
value= Vec2b
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2us value 
)

Set attribute.

Parameters
index= value
value= Vec2us
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2s value 
)

Set attribute.

Parameters
index= value
value= Vec2s
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2ui value 
)

Set attribute.

Parameters
index= value
value= Vec2ui
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2i value 
)

Set attribute.

Parameters
index= value
value= Vec2i
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec2f value 
)

Set attribute.

Parameters
index= value
value= Vec2f
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3ub value 
)

Set attribute.

Parameters
index= value
value= Vec3ub
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3b value 
)

Set attribute.

Parameters
index= value
value= Vec3b
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3us value 
)

Set attribute.

Parameters
index= value
value= Vec3us
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3s value 
)

Set attribute.

Parameters
index= value
value= Vec3s
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3ui value 
)

Set attribute.

Parameters
index= value
value= Vec3ui
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3i value 
)

Set attribute.

Parameters
index= value
value= Vec3i
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec3f value 
)

Set attribute.

Parameters
index= value
value= Vec3f
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4ub value,
bool  normalize = false 
)

Set attribute.

Parameters
index= value
value= Vec4ub
normalize= bool
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4b value,
bool  normalize = false 
)

Set attribute.

Parameters
index= value
value= Vec4b
normalize= bool
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4us value,
bool  normalize = false 
)

Set attribute.

Parameters
index= value
value= Vec4us
normalize= bool
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4s value,
bool  normalize = false 
)

Set attribute.

Parameters
index= value
value= Vec4s
normalize= bool
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4ui value,
bool  normalize = false 
)

Set attribute.

Parameters
index= value
value= Vec4ui
normalize= bool
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4i value,
bool  normalize = false 
)

Set attribute.

Parameters
index= value
value= Vec4i
normalize= bool
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Vec4f value 
)

Set attribute.

Parameters
index= value
value= Vec4f
void CL_PrimitivesArray::set_attribute ( int  index,
const CL_Colorf value 
)

Set attribute.

Parameters
index= value
value= Colorf
void CL_PrimitivesArray::set_attributes ( int  index,
CL_VertexArrayBuffer buffer,
int  size,
CL_VertexAttributeDataType  type,
void *  offset = 0,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
buffer= Vertex Array Buffer
size= value
type= Vertex Attribute Data Type
offset= void
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1ub *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1ub
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1b *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1b
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1us *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1us
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1s *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1s
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1ui *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1ui
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1i *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1i
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec1f *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec1f
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2ub *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2ub
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2b *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2b
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2us *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2us
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2s *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2s
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2ui *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2ui
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2i *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2i
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec2f *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec2f
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3ub *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3ub
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3b *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3b
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3us *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3us
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3s *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3s
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3ui *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3ui
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3i *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3i
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec3f *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec3f
stride= value
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4ub *const  values,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
values= Vec4ub
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4b *const  values,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
values= Vec4b
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4us *const  values,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
values= Vec4us
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4s *const  values,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
values= Vec4s
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4ui *const  values,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
values= Vec4ui
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4i *const  values,
int  stride = 0,
bool  normalize = false 
)

Set attributes.

Parameters
index= value
values= Vec4i
stride= value
normalize= bool
void CL_PrimitivesArray::set_attributes ( int  index,
const CL_Vec4f *const  values,
int  stride = 0 
)

Set attributes.

Parameters
index= value
values= Vec4f
stride= value
void CL_PrimitivesArray::throw_if_null ( ) const

Throw an exception if this object is invalid.

Friends And Related Function Documentation

friend class CL_GraphicContext
friend
friend class CL_PrimitivesArrayBuilder
friend

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