Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

CLoadMD2 Class Reference

load the model into the data structure More...

#include <Md2.h>

Collaboration diagram for CLoadMD2:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CLoadMD2 ()
 initialize the variables
bool ImportMD2 (MiniMesh *m, char *strFileName, char *strTexture)
 load the md2 model into the minimesh structure

Private Member Functions

void ReadMD2Data ()
 reads all the model data
void ConvertDataStructures (MiniMesh *pModel)
 convert the temporary structure into the minimesh structure
void CleanUp ()
 clean up

Private Attributes

FILE * m_FilePointer
tMd2Header m_Header
tMd2Skinm_pSkins
tMd2TexCoordm_pTexCoords
tMd2Facem_pTriangles
tMd2Framem_pFrames

Detailed Description

load the model into the data structure

Load the model into a temporary data structure


Constructor & Destructor Documentation

CLoadMD2::CLoadMD2  ) 
 

initialize the variables


Member Function Documentation

void CLoadMD2::CleanUp  )  [private]
 

clean up

void CLoadMD2::ConvertDataStructures MiniMesh pModel  )  [private]
 

convert the temporary structure into the minimesh structure

Parameters:
pointer to the minimesh structure in which to store the data

bool CLoadMD2::ImportMD2 MiniMesh pModel,
char strFileName,
char strTexture
 

load the md2 model into the minimesh structure

Parameters:
minimesh in which to put the md2 model
path to md2 model
path to texture (not loaded in this version)

void CLoadMD2::ReadMD2Data  )  [private]
 

reads all the model data


Member Data Documentation

FILE* CLoadMD2::m_FilePointer [private]
 

tMd2Header CLoadMD2::m_Header [private]
 

tMd2Frame* CLoadMD2::m_pFrames [private]
 

tMd2Skin* CLoadMD2::m_pSkins [private]
 

tMd2TexCoord* CLoadMD2::m_pTexCoords [private]
 

tMd2Face* CLoadMD2::m_pTriangles [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 17:42:32 2005 for Loud and Proud by doxygen 1.3.8