flModel.h File Reference

#include "flGlobal.h"
#include "flTexture.h"

Go to the source code of this file.

Classes

struct  Model3dStaticFace
struct  Model3dStatic
struct  Model3dAnimated

Defines

#define MODEL_ANIM_TYPE_NONE   0
#define MODEL_ANIM_TYPE_MD2   1
#define MODEL_ANIM_TYPE_MD3   2

Typedefs

typedef Model3dStaticFace Mdl3dStatFace
typedef Model3dStatic Mdl3dStat
typedef Model3dAnimated Mdl3dAnim

Functions

void mdlInit ()
Model3dStaticmdl3dStatLoad (char *inPath)
bool mdl3dStatSave (char *inPath, Model3dStatic *inModel)
void mdl3dStatDraw (Model3dStatic *inModel)
void mdl3dStatOptimize (Model3dStatic *inModel)
void mdl3dStatFree (Model3dStatic *inModel)
Model3dAnimatedmdl3dAnimLoad (char *inPath)
bool mdl3dAnimSave (char *inPath, Model3dAnimated *inModel)
void mdl3dAnimDraw (Model3dAnimated *inModel)
void mdl3dAnimFree (Model3dAnimated *inModel)


Define Documentation

#define MODEL_ANIM_TYPE_MD2   1

Definition at line 25 of file flModel.h.

Referenced by mdl3dAnimDraw(), and mdl3dAnimLoadMD2().

#define MODEL_ANIM_TYPE_MD3   2

Definition at line 26 of file flModel.h.

#define MODEL_ANIM_TYPE_NONE   0

Definition at line 24 of file flModel.h.


Typedef Documentation

typedef Model3dAnimated Mdl3dAnim

Definition at line 56 of file flModel.h.

typedef Model3dStatic Mdl3dStat

Definition at line 50 of file flModel.h.

typedef Model3dStaticFace Mdl3dStatFace

Definition at line 35 of file flModel.h.


Function Documentation

void mdl3dAnimDraw ( Model3dAnimated inModel  ) 

Definition at line 529 of file flModel.c.

References mdl3dAnimDrawMD2(), Model3dAnimated::mdlData, Model3dAnimated::mdlType, and MODEL_ANIM_TYPE_MD2.

void mdl3dAnimFree ( Model3dAnimated inModel  ) 

Definition at line 536 of file flModel.c.

Referenced by mdl3dAnimLoadMD2().

Model3dAnimated* mdl3dAnimLoad ( char *  inPath  ) 

Definition at line 491 of file flModel.c.

References debugDevWarning, debugWarning, fileExtension(), mdl3dAnimLoadMD2(), memFree, and NULL.

bool mdl3dAnimSave ( char *  inPath,
Model3dAnimated inModel 
)

Definition at line 525 of file flModel.c.

void mdl3dStatDraw ( Model3dStatic inModel  ) 

Definition at line 215 of file flModel.c.

References debugWarning, graphicsWireframe, mdl3dStatDrawTextured(), Model3dStatic::mdlFaceCount, Model3dStatic::mdlFaces, Model3dStaticFace::mdlfVertCount, Model3dStaticFace::mdlfVerts, Model3dStatic::mdlTextureCount, Model3dStatic::mdlVerts, vertVf::vertX, vertVf::vertY, and vertVf::vertZ.

void mdl3dStatFree ( Model3dStatic inModel  ) 

Definition at line 462 of file flModel.c.

References debugWarning, Model3dStatic::mdlFaceCount, Model3dStatic::mdlFaces, Model3dStaticFace::mdlfVerts, Model3dStatic::mdlTextureCount, Model3dStatic::mdlTextures, Model3dStatic::mdlVerts, memFree, and texFree().

Referenced by mdl3dStatLoadOBJ().

Model3dStatic* mdl3dStatLoad ( char *  inPath  ) 

Definition at line 38 of file flModel.c.

References debugDevWarning, debugWarning, fileExtension(), mdl3dStatLoadOBJ(), mdl3dStatOptimize(), memFree, and NULL.

void mdl3dStatOptimize ( Model3dStatic inModel  ) 

Definition at line 294 of file flModel.c.

References debugWarning, Model3dStatic::mdlNormalCount, Model3dStatic::mdlOptimized, Model3dStatic::mdlTextureCount, Model3dStatic::mdlTexVertCount, Model3dStatic::mdlVertCount, Model3dStatic::mdlVerts, and vect3f_Cmp.

Referenced by mdl3dStatLoad(), and mdl3dStatSave().

bool mdl3dStatSave ( char *  inPath,
Model3dStatic inModel 
)

Definition at line 78 of file flModel.c.

References debugDevWarning, debugWarning, fileExtension(), mdl3dStatOptimize(), mdl3dStatSaveOBJ(), and memFree.

void mdlInit (  ) 

Definition at line 34 of file flModel.c.

Referenced by flInitialize().


Generated on Wed Sep 5 19:04:03 2007 for funcLib by  doxygen 1.5.1