#include <OBJModel.h>
Public Member Functions | |
OBJModel () | |
~OBJModel () | |
bool | LoadOBJ (const char *sFileToLoad) |
Load the OBJ File from the hard drive. | |
void | Unload () |
Unload the OBJ Model. | |
void | Render () |
Call the GL List to render this object. | |
Public Attributes | |
int * | iIndices |
Triplets of index data, expected to be triangles. | |
float * | fVertices |
Triplets (xyz xyz xyz...). | |
int | iIndexCount |
Total count of Indices. | |
int | iVertexCount |
Total count of Verticies. | |
Private Attributes | |
GLuint | iList |
You can use this class to load and draw Wavefront OBJ Models from a file. You use this object to load a file on start, and whenever you want the model drawn, you call Render().
Definition at line 15 of file OBJModel.h.
OBJModel::OBJModel | ( | ) |
Definition at line 6 of file OBJModel.cpp.
OBJModel::~OBJModel | ( | ) |
Definition at line 15 of file OBJModel.cpp.
bool OBJModel::LoadOBJ | ( | const char * | sFileToLoad | ) |
void OBJModel::Unload | ( | ) |
void OBJModel::Render | ( | ) | [inline] |
int* OBJModel::iIndices |
float* OBJModel::fVertices |
GLuint OBJModel::iList [private] |
Definition at line 42 of file OBJModel.h.