#include <model.H>
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 |
| Mesh * | m_pMeshes |
| int | m_numMaterials |
| Material * | m_pMaterials |
| int | m_numTriangles |
| Triangle * | m_pTriangles |
| int | m_numVertices |
| Vertex * | m_pVertices |
| char const * | progname |
| Model::Model | ( | ) |
References m_numMaterials, m_numMeshes, m_numTriangles, m_numVertices, m_pMaterials, m_pMeshes, m_pTriangles, m_pVertices, and progname.
| Model::~Model | ( | ) | [virtual] |
References m_numMaterials, m_numMeshes, m_numTriangles, m_numVertices, m_pMaterials, m_pMeshes, m_pTriangles, and m_pVertices.
| void Model::draw | ( | ) |
References list_num.
Referenced by cajun::simulation_draw_t::BuildTerrain(), cajun::draw_robot_t::display(), and cajun::draw_obstacles_t::display().
| void Model::draw_mesh | ( | ) |
References list_num.
Referenced by cajun::draw_robot_t::display().
| void Model::Init | ( | ) |
References list_num, Model::Mesh::m_materialIndex, m_numMeshes, Model::Mesh::m_numTriangles, m_pMaterials, m_pMeshes, Model::Mesh::m_pTriangleIndices, m_pTriangles, m_pVertices, Model::Triangle::m_s, Model::Triangle::m_t, Model::Material::m_texture, Model::Triangle::m_vertexIndices, Model::Triangle::m_vertexNormals, and reloadTextures().
Referenced by cajun::draw_robot_t::init_data(), cajun::draw_obstacles_t::init_data(), and cajun::simulation_draw_t::load_context_data().
| 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 | ( | ) |
References Model::texture_t::height, LoadGLTexture(), m_numMaterials, m_pMaterials, Model::Material::m_texture, Model::Material::texture, and Model::texture_t::width.
Referenced by Init().
GLuint Model::list_num [protected] |
Referenced by draw(), draw_mesh(), and Init().
int Model::m_numMaterials [protected] |
Referenced by MilkshapeModel::loadModelData(), Model(), reloadTextures(), and ~Model().
int Model::m_numMeshes [protected] |
Referenced by Init(), MilkshapeModel::loadModelData(), Model(), and ~Model().
int Model::m_numTriangles [protected] |
Referenced by MilkshapeModel::loadModelData(), Model(), and ~Model().
int Model::m_numVertices [protected] |
Referenced by MilkshapeModel::loadModelData(), Model(), and ~Model().
Material* Model::m_pMaterials [protected] |
Referenced by Init(), MilkshapeModel::loadModelData(), Model(), reloadTextures(), and ~Model().
Mesh* Model::m_pMeshes [protected] |
Referenced by Init(), MilkshapeModel::loadModelData(), Model(), and ~Model().
Triangle* Model::m_pTriangles [protected] |
Referenced by Init(), MilkshapeModel::loadModelData(), Model(), and ~Model().
Vertex* Model::m_pVertices [protected] |
Referenced by Init(), MilkshapeModel::loadModelData(), Model(), and ~Model().
char const* Model::progname [protected] |
Referenced by load_ppm_p3(), load_ppm_p6(), and Model().
1.6.1