#include <Md2.h>
Collaboration diagram for CLoadMD2:
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 |
tMd2Skin * | m_pSkins |
tMd2TexCoord * | m_pTexCoords |
tMd2Face * | m_pTriangles |
tMd2Frame * | m_pFrames |
Load the model into a temporary data structure
|
initialize the variables
|
|
clean up
|
|
convert the temporary structure into the minimesh structure
|
|
load the md2 model into the minimesh structure
|
|
reads all the model data
|
|
|
|
|
|
|
|
|
|
|
|
|