CIvfTexCoordList Class Reference

#include <ivf/IvfTexCoordList.h>

Inheritance diagram for CIvfTexCoordList:

CIvfBase CIvfRefCountBase CIvfRTTIBase List of all members.

Public Member Functions

 CIvfTexCoordList ()
virtual ~CIvfTexCoordList ()
 IvfClassInfo ("CIvfTexCoordList", CIvfBase)
void add (double s, double t)
void clear ()
void getVertex (int idx, double &s, double &t)
void setSize (int size)
int getSize ()
void setVertex (int idx, double s, double t)
void * getData ()
GLenum getDataType ()
GLsizei getStride ()
GLint getCompSize ()

Protected Member Functions

double getComp (int idx)
void setComp (int idx, double value)
void add (double comp)

Detailed Description

Normal list class

Maintains a list of texture coords 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 44 of file IvfTexCoordList.h.


Constructor & Destructor Documentation

CIvfTexCoordList::CIvfTexCoordList  ) 
 

CIvfTexCoordList constructor

virtual CIvfTexCoordList::~CIvfTexCoordList  )  [virtual]
 

CIvfTexCoordList destructor


Member Function Documentation

void CIvfTexCoordList::add double  s,
double  t
 

Add a texture coordinate

void CIvfTexCoordList::clear  ) 
 

Clear texture coordinate list

GLint CIvfTexCoordList::getCompSize  ) 
 

Return number of components in array, in this case 2

void* CIvfTexCoordList::getData  ) 
 

Returns a pointer to the array

GLenum CIvfTexCoordList::getDataType  ) 
 

Return array data type, in this case GL_FLOAT

int CIvfTexCoordList::getSize  ) 
 

Return size of coordinate list

GLsizei CIvfTexCoordList::getStride  ) 
 

Return array stride, in this case 2*sizeof(GLfloat)

void CIvfTexCoordList::getVertex int  idx,
double &  s,
double &  t
 

Get specified texture coordinate

param idx should be between 0 to getSize()-1

void CIvfTexCoordList::setSize int  size  ) 
 

Set size of coordinate list

void CIvfTexCoordList::setVertex int  idx,
double  s,
double  t
 

Set specified texture coordinate

param idx should be between 0 to getSize()-1


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