doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
idRenderModelMD5 Class Reference

#include <Model_local.h>

Inheritance diagram for idRenderModelMD5:
idRenderModelStatic idRenderModel

Public Member Functions

virtual void InitFromFile (const char *fileName)
 
virtual dynamicModel_t IsDynamicModel () const
 
virtual idBounds Bounds (const struct renderEntity_s *ent) const
 
virtual void Print () const
 
virtual void List () const
 
virtual void TouchData ()
 
virtual void PurgeModel ()
 
virtual void LoadModel ()
 
virtual int Memory () const
 
virtual idRenderModelInstantiateDynamicModel (const struct renderEntity_s *ent, const struct viewDef_s *view, idRenderModel *cachedModel)
 
virtual int NumJoints (void) const
 
virtual const idMD5JointGetJoints (void) const
 
virtual jointHandle_t GetJointHandle (const char *name) const
 
virtual const char * GetJointName (jointHandle_t handle) const
 
virtual const idJointQuatGetDefaultPose (void) const
 
virtual int NearestJoint (int surfaceNum, int a, int b, int c) const
 
- Public Member Functions inherited from idRenderModelStatic
 idRenderModelStatic ()
 
virtual ~idRenderModelStatic ()
 
virtual void PartialInitFromFile (const char *fileName)
 
virtual void Reset ()
 
virtual bool IsLoaded ()
 
virtual void SetLevelLoadReferenced (bool referenced)
 
virtual bool IsLevelLoadReferenced ()
 
virtual void InitEmpty (const char *name)
 
virtual void AddSurface (modelSurface_t surface)
 
virtual void FinishSurfaces ()
 
virtual void FreeVertexCache ()
 
virtual const char * Name () const
 
virtual ID_TIME_T Timestamp () const
 
virtual int NumSurfaces () const
 
virtual int NumBaseSurfaces () const
 
virtual const modelSurface_tSurface (int surfaceNum) const
 
virtual srfTriangles_tAllocSurfaceTriangles (int numVerts, int numIndexes) const
 
virtual void FreeSurfaceTriangles (srfTriangles_t *tris) const
 
virtual srfTriangles_tShadowHull () const
 
virtual bool IsStaticWorldModel () const
 
virtual bool IsDefaultModel () const
 
virtual bool IsReloadable () const
 
virtual void ReadFromDemoFile (class idDemoFile *f)
 
virtual void WriteToDemoFile (class idDemoFile *f)
 
virtual float DepthHack () const
 
void MakeDefaultModel ()
 
bool LoadASE (const char *fileName)
 
bool LoadLWO (const char *fileName)
 
bool LoadFLT (const char *fileName)
 
bool LoadMA (const char *filename)
 
bool ConvertASEToModelSurfaces (const struct aseModel_s *ase)
 
bool ConvertLWOToModelSurfaces (const struct st_lwObject *lwo)
 
bool ConvertMAToModelSurfaces (const struct maModel_s *ma)
 
struct aseModel_sConvertLWOToASE (const struct st_lwObject *obj, const char *fileName)
 
bool DeleteSurfaceWithId (int id)
 
void DeleteSurfacesWithNegativeId (void)
 
bool FindSurfaceWithId (int id, int &surfaceNum)
 
- Public Member Functions inherited from idRenderModel
virtual ~idRenderModel ()
 

Private Member Functions

void CalculateBounds (const idJointMat *joints)
 
void GetFrameBounds (const renderEntity_t *ent, idBounds &bounds) const
 
void DrawJoints (const renderEntity_t *ent, const struct viewDef_s *view) const
 
void ParseJoint (idLexer &parser, idMD5Joint *joint, idJointQuat *defaultPose)
 

Private Attributes

idList< idMD5Jointjoints
 
idList< idJointQuatdefaultPose
 
idList< idMD5Meshmeshes
 

Additional Inherited Members

- Static Public Member Functions inherited from idRenderModelStatic
static idRenderModelAlloc ()
 
- Public Attributes inherited from idRenderModelStatic
idList< modelSurface_tsurfaces
 
idBounds bounds
 
int overlaysAdded
 
- Protected Attributes inherited from idRenderModelStatic
int lastModifiedFrame
 
int lastArchivedFrame
 
idStr name
 
srfTriangles_tshadowHull
 
bool isStaticWorldModel
 
bool defaulted
 
bool purged
 
bool fastLoad
 
bool reloadable
 
bool levelLoadReferenced
 
ID_TIME_T timeStamp
 
- Static Protected Attributes inherited from idRenderModelStatic
static idCVar r_mergeModelSurfaces
 
static idCVar r_slopVertex
 
static idCVar r_slopTexCoord
 
static idCVar r_slopNormal
 

Detailed Description

Definition at line 167 of file Model_local.h.

Member Function Documentation

idBounds idRenderModelMD5::Bounds ( const struct renderEntity_s ent) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 652 of file Model_md5.cpp.

void idRenderModelMD5::CalculateBounds ( const idJointMat joints)
private

Definition at line 634 of file Model_md5.cpp.

void idRenderModelMD5::DrawJoints ( const renderEntity_t ent,
const struct viewDef_s view 
) const
private

Definition at line 675 of file Model_md5.cpp.

const idJointQuat * idRenderModelMD5::GetDefaultPose ( void  ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 845 of file Model_md5.cpp.

void idRenderModelMD5::GetFrameBounds ( const renderEntity_t ent,
idBounds bounds 
) const
private
jointHandle_t idRenderModelMD5::GetJointHandle ( const char *  name) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 854 of file Model_md5.cpp.

const char * idRenderModelMD5::GetJointName ( jointHandle_t  handle) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 873 of file Model_md5.cpp.

const idMD5Joint * idRenderModelMD5::GetJoints ( void  ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 836 of file Model_md5.cpp.

void idRenderModelMD5::InitFromFile ( const char *  fileName)
virtual

Reimplemented from idRenderModelStatic.

Definition at line 478 of file Model_md5.cpp.

idRenderModel * idRenderModelMD5::InstantiateDynamicModel ( const struct renderEntity_s ent,
const struct viewDef_s view,
idRenderModel cachedModel 
)
virtual

Reimplemented from idRenderModelStatic.

Definition at line 722 of file Model_md5.cpp.

dynamicModel_t idRenderModelMD5::IsDynamicModel ( ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 818 of file Model_md5.cpp.

void idRenderModelMD5::List ( void  ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 610 of file Model_md5.cpp.

void idRenderModelMD5::LoadModel ( )
virtual

Reimplemented from idRenderModelStatic.

Definition at line 491 of file Model_md5.cpp.

int idRenderModelMD5::Memory ( ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 940 of file Model_md5.cpp.

int idRenderModelMD5::NearestJoint ( int  surfaceNum,
int  a,
int  b,
int  c 
) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 886 of file Model_md5.cpp.

int idRenderModelMD5::NumJoints ( void  ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 827 of file Model_md5.cpp.

void idRenderModelMD5::ParseJoint ( idLexer parser,
idMD5Joint joint,
idJointQuat defaultPose 
)
private

Definition at line 442 of file Model_md5.cpp.

void idRenderModelMD5::Print ( void  ) const
virtual

Reimplemented from idRenderModelStatic.

Definition at line 581 of file Model_md5.cpp.

void idRenderModelMD5::PurgeModel ( )
virtual

Reimplemented from idRenderModelStatic.

Definition at line 928 of file Model_md5.cpp.

void idRenderModelMD5::TouchData ( void  )
virtual

Reimplemented from idRenderModelStatic.

Definition at line 911 of file Model_md5.cpp.

Member Data Documentation

idList<idJointQuat> idRenderModelMD5::defaultPose
private

Definition at line 188 of file Model_local.h.

idList<idMD5Joint> idRenderModelMD5::joints
private

Definition at line 187 of file Model_local.h.

idList<idMD5Mesh> idRenderModelMD5::meshes
private

Definition at line 189 of file Model_local.h.


The documentation for this class was generated from the following files: