Model Class Reference

#include <model.H>

Inheritance diagram for Model:
MilkshapeModel

List of all members.

Classes

struct  Material
struct  Mesh
struct  texture_t
struct  Triangle
struct  Vertex

Public Member Functions

 Model ()
virtual ~Model ()
virtual bool loadModelData (const char *filename)=0
void draw ()
void draw_mesh ()
void reloadTextures ()
void Init ()
void load_ppm_p6 (char *fname, unsigned int *w, unsigned int *h, unsigned char **data, int mallocflag)
void load_ppm_p3 (char *fname, unsigned int *w, unsigned int *h, unsigned char **data, int mallocflag)
GLuint LoadGLTexture (const unsigned char *image_data_, unsigned int tex_width_, unsigned int tex_height_)

Protected Attributes

GLuint list_num
int m_numMeshes
Meshm_pMeshes
int m_numMaterials
Materialm_pMaterials
int m_numTriangles
Trianglem_pTriangles
int m_numVertices
Vertexm_pVertices
char const * progname

Constructor & Destructor Documentation

Model::Model (  ) 
Model::~Model (  )  [virtual]

Member Function Documentation

void Model::draw (  ) 
void Model::draw_mesh (  ) 

References list_num.

Referenced by cajun::draw_robot_t::display().

void Model::Init (  ) 
void Model::load_ppm_p3 ( char *  fname,
unsigned int *  w,
unsigned int *  h,
unsigned char **  data,
int  mallocflag 
)

References progname.

void Model::load_ppm_p6 ( char *  fname,
unsigned int *  w,
unsigned int *  h,
unsigned char **  data,
int  mallocflag 
)

References progname.

Referenced by MilkshapeModel::loadModelData().

GLuint Model::LoadGLTexture ( const unsigned char *  image_data_,
unsigned int  tex_width_,
unsigned int  tex_height_ 
)

Referenced by reloadTextures().

virtual bool Model::loadModelData ( const char *  filename  )  [pure virtual]

Implemented in MilkshapeModel.

Referenced by cajun::loadMilkshapeModelData().

void Model::reloadTextures (  ) 

Member Data Documentation

GLuint Model::list_num [protected]

Referenced by draw(), draw_mesh(), and Init().

int Model::m_numMaterials [protected]
int Model::m_numMeshes [protected]
int Model::m_numTriangles [protected]
int Model::m_numVertices [protected]
Mesh* Model::m_pMeshes [protected]
Vertex* Model::m_pVertices [protected]
char const* Model::progname [protected]

Referenced by load_ppm_p3(), load_ppm_p6(), and Model().


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

Generated on Fri Apr 9 10:45:17 2010 for Visualizer by  doxygen 1.6.1