clan::PrimitivesArray Class Reference

Primitives array description. More...

#include <primitives_array.h>

Public Member Functions

 PrimitivesArray ()
 Construct a null instance. More...
 
 PrimitivesArray (GraphicContext &gc)
 Constructs a PrimitivesArray. More...
 
 ~PrimitivesArray ()
 
PrimitivesArrayProviderget_provider () const
 Returns the target provider for the primitives array. More...
 
bool is_null () const
 Returns true if this object is invalid. More...
 
 operator bool () const
 
void set_attributes (int index, VertexArrayBuffer &buffer, int size, VertexAttributeDataType type, size_t offset=0, int stride=0, bool normalize=false)
 Set attributes. More...
 
void set_attributes (int index, VertexArrayVector< unsigned char > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< char > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< unsigned short > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< short > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< unsigned int > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< int > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< float > &buffer, int size, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< unsigned char > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< signed char > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< unsigned short > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< signed short > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< unsigned int > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< signed int > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< float > &buffer)
 
void set_attributes (int index, VertexArrayVector< Vec2ub > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec2b > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec2us > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec2s > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec2ui > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec2i > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec2f > &buffer)
 
void set_attributes (int index, VertexArrayVector< Vec3ub > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec3b > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec3us > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec3s > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec3ui > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec3i > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec3f > &buffer)
 
void set_attributes (int index, VertexArrayVector< Vec4ub > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec4b > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec4us > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec4s > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec4ui > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec4i > &buffer, bool normalize=false)
 
void set_attributes (int index, VertexArrayVector< Vec4f > &buffer)
 
void set_attributes (int index, VertexArrayVector< Colorf > &buffer)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, unsigned char *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, signed char *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, unsigned short *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, signed short *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, unsigned int *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, signed int *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, float *member_offset)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2ub *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2b *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2us *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2s *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2ui *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2i *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec2f *member_offset)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3ub *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3b *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3us *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3s *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3ui *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3i *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec3f *member_offset)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4ub *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4b *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4us *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4s *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4ui *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4i *member_offset, bool normalize=false)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Vec4f *member_offset)
 
template<typename Type >
void set_attributes (int index, VertexArrayVector< Type > &buffer, Colorf *member_offset)
 
void throw_if_null () const
 Throw an exception if this object is invalid. More...
 

Detailed Description

Primitives array description.

Constructor & Destructor Documentation

clan::PrimitivesArray::PrimitivesArray ( )

Construct a null instance.

clan::PrimitivesArray::PrimitivesArray ( GraphicContext gc)

Constructs a PrimitivesArray.

Parameters
gc= Graphic Context
clan::PrimitivesArray::~PrimitivesArray ( )

Member Function Documentation

PrimitivesArrayProvider* clan::PrimitivesArray::get_provider ( ) const

Returns the target provider for the primitives array.

bool clan::PrimitivesArray::is_null ( ) const
inline

Returns true if this object is invalid.

clan::PrimitivesArray::operator bool ( ) const
inlineexplicit
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayBuffer buffer,
int  size,
VertexAttributeDataType  type,
size_t  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

Referenced by set_attributes().

void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< unsigned char > &  buffer,
int  size,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< char > &  buffer,
int  size,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< unsigned short > &  buffer,
int  size,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< short > &  buffer,
int  size,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< unsigned int > &  buffer,
int  size,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< int > &  buffer,
int  size,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< float > &  buffer,
int  size,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< unsigned char > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< signed char > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< unsigned short > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< signed short > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< unsigned int > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< signed int > &  buffer,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< float > &  buffer 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2ub > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2b > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2us > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2s > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2ui > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2i > &  buffer,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec2f > &  buffer 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3ub > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3b > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3us > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3s > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3ui > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3i > &  buffer,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec3f > &  buffer 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4ub > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4b > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4us > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4s > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4ui > &  buffer,
bool  normalize = false 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4i > &  buffer,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Vec4f > &  buffer 
)
inline
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Colorf > &  buffer 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
unsigned char *  member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
signed char *  member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
unsigned short *  member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
signed short *  member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
unsigned int *  member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
signed int *  member_offset,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
float *  member_offset 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2ub member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2b member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2us member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2s member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2ui member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2i member_offset,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec2f member_offset 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3ub member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3b member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3us member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3s member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3ui member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3i member_offset,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec3f member_offset 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4ub member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4b member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4us member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4s member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4ui member_offset,
bool  normalize = false 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4i member_offset,
bool  normalize = false 
)
inline

References set_attributes(), and clan::type_int.

template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Vec4f member_offset 
)
inline
template<typename Type >
void clan::PrimitivesArray::set_attributes ( int  index,
VertexArrayVector< Type > &  buffer,
Colorf member_offset 
)
inline
void clan::PrimitivesArray::throw_if_null ( ) const

Throw an exception if this object is invalid.


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