doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions
Model_ma.cpp File Reference
#include "../idlib/precompiled.h"
#include "Model_ma.h"

Go to the source code of this file.

Classes

struct  ma_t
 

Macros

#define MA_VERBOSE(x)   { if ( maGlobal.verbose ) { common->Printf x ; } }
 

Functions

void MA_ParseNodeHeader (idParser &parser, maNodeHeader_t *header)
 
bool MA_ParseHeaderIndex (maAttribHeader_t *header, int &minIndex, int &maxIndex, const char *headerType, const char *skipString)
 
bool MA_ParseAttribHeader (idParser &parser, maAttribHeader_t *header)
 
bool MA_ReadVec3 (idParser &parser, idVec3 &vec)
 
bool IsNodeComplete (idToken &token)
 
bool MA_ParseTransform (idParser &parser)
 
bool MA_ParseVertex (idParser &parser, maAttribHeader_t *header)
 
bool MA_ParseVertexTransforms (idParser &parser, maAttribHeader_t *header)
 
bool MA_ParseEdge (idParser &parser, maAttribHeader_t *header)
 
bool MA_ParseNormal (idParser &parser, maAttribHeader_t *header)
 
bool MA_ParseFace (idParser &parser, maAttribHeader_t *header)
 
bool MA_ParseColor (idParser &parser, maAttribHeader_t *header)
 
bool MA_ParseTVert (idParser &parser, maAttribHeader_t *header)
 
bool MA_QuickIsVertShared (int faceIndex, int vertIndex)
 
void MA_GetSharedFace (int faceIndex, int vertIndex, int &sharedFace, int &sharedVert)
 
void MA_ParseMesh (idParser &parser)
 
void MA_ParseFileNode (idParser &parser)
 
void MA_ParseMaterialNode (idParser &parser)
 
void MA_ParseCreateNode (idParser &parser)
 
int MA_AddMaterial (const char *materialName)
 
bool MA_ParseConnectAttr (idParser &parser)
 
void MA_BuildScale (idMat4 &mat, float x, float y, float z)
 
void MA_BuildAxisRotation (idMat4 &mat, float ang, int axis)
 
void MA_ApplyTransformation (maModel_t *model)
 
maModel_tMA_Parse (const char *buffer, const char *filename, bool verbose)
 
maModel_tMA_Load (const char *fileName)
 
void MA_Free (maModel_t *ma)
 

Macro Definition Documentation

#define MA_VERBOSE (   x)    { if ( maGlobal.verbose ) { common->Printf x ; } }

Definition at line 43 of file Model_ma.cpp.

Function Documentation

bool IsNodeComplete ( idToken token)

Definition at line 134 of file Model_ma.cpp.

int MA_AddMaterial ( const char *  materialName)

Definition at line 774 of file Model_ma.cpp.

void MA_ApplyTransformation ( maModel_t model)

Definition at line 910 of file Model_ma.cpp.

void MA_BuildAxisRotation ( idMat4 mat,
float  ang,
int  axis 
)

Definition at line 882 of file Model_ma.cpp.

void MA_BuildScale ( idMat4 mat,
float  x,
float  y,
float  z 
)

Definition at line 875 of file Model_ma.cpp.

void MA_Free ( maModel_t ma)

Definition at line 1039 of file Model_ma.cpp.

void MA_GetSharedFace ( int  faceIndex,
int  vertIndex,
int sharedFace,
int sharedVert 
)

Definition at line 538 of file Model_ma.cpp.

maModel_t* MA_Load ( const char *  fileName)

Definition at line 1008 of file Model_ma.cpp.

maModel_t* MA_Parse ( const char *  buffer,
const char *  filename,
bool  verbose 
)

Definition at line 960 of file Model_ma.cpp.

bool MA_ParseAttribHeader ( idParser parser,
maAttribHeader_t header 
)

Definition at line 100 of file Model_ma.cpp.

bool MA_ParseColor ( idParser parser,
maAttribHeader_t header 
)

Definition at line 441 of file Model_ma.cpp.

bool MA_ParseConnectAttr ( idParser parser)

Definition at line 806 of file Model_ma.cpp.

void MA_ParseCreateNode ( idParser parser)

Definition at line 757 of file Model_ma.cpp.

bool MA_ParseEdge ( idParser parser,
maAttribHeader_t header 
)

Definition at line 277 of file Model_ma.cpp.

bool MA_ParseFace ( idParser parser,
maAttribHeader_t header 
)

Definition at line 359 of file Model_ma.cpp.

void MA_ParseFileNode ( idParser parser)

Definition at line 705 of file Model_ma.cpp.

bool MA_ParseHeaderIndex ( maAttribHeader_t header,
int minIndex,
int maxIndex,
const char *  headerType,
const char *  skipString 
)

Definition at line 76 of file Model_ma.cpp.

void MA_ParseMaterialNode ( idParser parser)

Definition at line 742 of file Model_ma.cpp.

void MA_ParseMesh ( idParser parser)

Definition at line 573 of file Model_ma.cpp.

void MA_ParseNodeHeader ( idParser parser,
maNodeHeader_t header 
)

Definition at line 55 of file Model_ma.cpp.

bool MA_ParseNormal ( idParser parser,
maAttribHeader_t header 
)

Definition at line 305 of file Model_ma.cpp.

bool MA_ParseTransform ( idParser parser)

Definition at line 141 of file Model_ma.cpp.

bool MA_ParseTVert ( idParser parser,
maAttribHeader_t header 
)

Definition at line 470 of file Model_ma.cpp.

bool MA_ParseVertex ( idParser parser,
maAttribHeader_t header 
)

Definition at line 197 of file Model_ma.cpp.

bool MA_ParseVertexTransforms ( idParser parser,
maAttribHeader_t header 
)

Definition at line 225 of file Model_ma.cpp.

bool MA_QuickIsVertShared ( int  faceIndex,
int  vertIndex 
)

Definition at line 521 of file Model_ma.cpp.

bool MA_ReadVec3 ( idParser parser,
idVec3 vec 
)

Definition at line 118 of file Model_ma.cpp.