CPPGPGPU Library - Reference (Doxygen)

Main Page | General Use | Reference | Examples Info | Get/Download CPPGPGPU | SF.net Page

OBJModel Class Reference

Wavefront OBJ Model. More...

#include <OBJModel.h>

List of all members.

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


Detailed Description

Wavefront OBJ Model.

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.


Constructor & Destructor Documentation

OBJModel::OBJModel (  ) 

Definition at line 6 of file OBJModel.cpp.

OBJModel::~OBJModel (  ) 

Definition at line 15 of file OBJModel.cpp.


Member Function Documentation

bool OBJModel::LoadOBJ ( const char *  sFileToLoad  ) 

Load the OBJ File from the hard drive.

Definition at line 33 of file OBJModel.cpp.

void OBJModel::Unload (  ) 

Unload the OBJ Model.

Definition at line 20 of file OBJModel.cpp.

void OBJModel::Render (  )  [inline]

Call the GL List to render this object.

Definition at line 28 of file OBJModel.h.


Member Data Documentation

int* OBJModel::iIndices

Triplets of index data, expected to be triangles.

Definition at line 31 of file OBJModel.h.

float* OBJModel::fVertices

Triplets (xyz xyz xyz...).

Definition at line 34 of file OBJModel.h.

int OBJModel::iIndexCount

Total count of Indices.

Definition at line 37 of file OBJModel.h.

int OBJModel::iVertexCount

Total count of Verticies.

Definition at line 40 of file OBJModel.h.

GLuint OBJModel::iList [private]

Definition at line 42 of file OBJModel.h.


The documentation for this class was generated from the following files:
© 2005-2007 Charles Lohr, Joshua Allen, David Chapman, Andrew Lohr. All material including documentation under the MIT/X11 license.