CIvfColorList Class Reference

#include <ivf/IvfColorList.h>

Inheritance diagram for CIvfColorList:

CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfColorList ()
virtual ~CIvfColorList ()
 IvfClassInfo ("CIvfColorList", CIvfBase)
void clear ()
void getColor (int idx, float &red, float &green, float &blue)
int getSize ()
void add (float red, float green, float blue)
GLint getCompSize ()
GLsizei getStride ()
GLenum getDataType ()
void * getData ()

Protected Member Functions

float getComp (int idx)
void add (float comp)

Detailed Description

Color list class

Maintains a list of colors for use with the CIvfVertexElements class. The list is initially 1024 elements and the size is doubled if exceeding 1024.

Author:
Jonas Lindemann

Definition at line 43 of file IvfColorList.h.


Constructor & Destructor Documentation

CIvfColorList::CIvfColorList  ) 
 

CIvfColorList constructor

virtual CIvfColorList::~CIvfColorList  )  [virtual]
 

CIvfColorList destructor


Member Function Documentation

void CIvfColorList::add float  red,
float  green,
float  blue
 

Adds a color to the list

void CIvfColorList::clear  ) 
 

Clear the color list

void CIvfColorList::getColor int  idx,
float &  red,
float &  green,
float &  blue
 

Return the color at idx

GLint CIvfColorList::getCompSize  ) 
 

Returns the number of color components for each color (3)

void* CIvfColorList::getData  ) 
 

Return the pointer to the array

GLenum CIvfColorList::getDataType  ) 
 

Returns array datatype, in this case GL_FLOAT

int CIvfColorList::getSize  ) 
 

Returns the number of colors in the list

GLsizei CIvfColorList::getStride  ) 
 

Returns the array stride, in this case 3*sizeof(GLfloat)


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 15:36:49 2006 for Interactive Visualisation Framework - Ivf++ by  doxygen 1.4.6-NO