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

#include <Model_local.h>

Inheritance diagram for idRenderModelStatic:
idRenderModel idRenderModelBeam idRenderModelLightning idRenderModelLiquid idRenderModelMD3 idRenderModelMD5 idRenderModelPrt idRenderModelSprite idRenderModelTrail

Public Member Functions

 idRenderModelStatic ()
 
virtual ~idRenderModelStatic ()
 
virtual void InitFromFile (const char *fileName)
 
virtual void PartialInitFromFile (const char *fileName)
 
virtual void PurgeModel ()
 
virtual void Reset ()
 
virtual void LoadModel ()
 
virtual bool IsLoaded ()
 
virtual void SetLevelLoadReferenced (bool referenced)
 
virtual bool IsLevelLoadReferenced ()
 
virtual void TouchData ()
 
virtual void InitEmpty (const char *name)
 
virtual void AddSurface (modelSurface_t surface)
 
virtual void FinishSurfaces ()
 
virtual void FreeVertexCache ()
 
virtual const char * Name () const
 
virtual void Print () const
 
virtual void List () const
 
virtual int Memory () 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 dynamicModel_t IsDynamicModel () const
 
virtual bool IsDefaultModel () const
 
virtual bool IsReloadable () 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
 
virtual idBounds Bounds (const struct renderEntity_s *ent) 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 ()
 

Static Public Member Functions

static idRenderModelAlloc ()
 

Public Attributes

idList< modelSurface_tsurfaces
 
idBounds bounds
 
int overlaysAdded
 

Protected Attributes

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

static idCVar r_mergeModelSurfaces
 
static idCVar r_slopVertex
 
static idCVar r_slopTexCoord
 
static idCVar r_slopNormal
 

Detailed Description

Definition at line 40 of file Model_local.h.

Constructor & Destructor Documentation

idRenderModelStatic::idRenderModelStatic ( )

Definition at line 48 of file Model.cpp.

idRenderModelStatic::~idRenderModelStatic ( )
virtual

Definition at line 69 of file Model.cpp.

Member Function Documentation

void idRenderModelStatic::AddSurface ( modelSurface_t  surface)
virtual

Implements idRenderModel.

Definition at line 355 of file Model.cpp.

static idRenderModel* idRenderModelStatic::Alloc ( )
static
srfTriangles_t * idRenderModelStatic::AllocSurfaceTriangles ( int  numVerts,
int  numIndexes 
) const
virtual

Implements idRenderModel.

Definition at line 412 of file Model.cpp.

idBounds idRenderModelStatic::Bounds ( const struct renderEntity_s ent) const
virtual
bool idRenderModelStatic::ConvertASEToModelSurfaces ( const struct aseModel_s ase)

Definition at line 722 of file Model.cpp.

struct aseModel_s * idRenderModelStatic::ConvertLWOToASE ( const struct st_lwObject obj,
const char *  fileName 
)

Definition at line 1385 of file Model.cpp.

bool idRenderModelStatic::ConvertLWOToModelSurfaces ( const struct st_lwObject lwo)

Definition at line 1032 of file Model.cpp.

bool idRenderModelStatic::ConvertMAToModelSurfaces ( const struct maModel_s ma)

Definition at line 1552 of file Model.cpp.

void idRenderModelStatic::DeleteSurfacesWithNegativeId ( void  )

Definition at line 2301 of file Model.cpp.

bool idRenderModelStatic::DeleteSurfaceWithId ( int  id)

Definition at line 2283 of file Model.cpp.

float idRenderModelStatic::DepthHack ( ) const
virtual

Implements idRenderModel.

Reimplemented in idRenderModelPrt.

Definition at line 479 of file Model.cpp.

bool idRenderModelStatic::FindSurfaceWithId ( int  id,
int surfaceNum 
)

Definition at line 2318 of file Model.cpp.

void idRenderModelStatic::FinishSurfaces ( )
virtual

Implements idRenderModel.

Definition at line 580 of file Model.cpp.

void idRenderModelStatic::FreeSurfaceTriangles ( srfTriangles_t tris) const
virtual

Implements idRenderModel.

Definition at line 424 of file Model.cpp.

void idRenderModelStatic::FreeVertexCache ( void  )
virtual

Implements idRenderModel.

Definition at line 2130 of file Model.cpp.

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

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 538 of file Model.cpp.

jointHandle_t idRenderModelStatic::GetJointHandle ( const char *  name) const
virtual

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 520 of file Model.cpp.

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

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 529 of file Model.cpp.

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

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 511 of file Model.cpp.

void idRenderModelStatic::InitEmpty ( const char *  name)
virtual

Implements idRenderModel.

Definition at line 332 of file Model.cpp.

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

Implements idRenderModel.

Reimplemented in idRenderModelPrt, idRenderModelLiquid, idRenderModelMD3, and idRenderModelMD5.

Definition at line 277 of file Model.cpp.

idRenderModel * idRenderModelStatic::InstantiateDynamicModel ( const struct renderEntity_s ent,
const struct viewDef_s view,
idRenderModel cachedModel 
)
virtual
bool idRenderModelStatic::IsDefaultModel ( ) const
virtual

Implements idRenderModel.

Definition at line 183 of file Model.cpp.

dynamicModel_t idRenderModelStatic::IsDynamicModel ( ) const
virtual
bool idRenderModelStatic::IsLevelLoadReferenced ( void  )
virtual

Implements idRenderModel.

Definition at line 2259 of file Model.cpp.

bool idRenderModelStatic::IsLoaded ( void  )
virtual

Implements idRenderModel.

Definition at line 2241 of file Model.cpp.

bool idRenderModelStatic::IsReloadable ( ) const
virtual

Implements idRenderModel.

Definition at line 461 of file Model.cpp.

bool idRenderModelStatic::IsStaticWorldModel ( ) const
virtual

Implements idRenderModel.

Definition at line 442 of file Model.cpp.

void idRenderModelStatic::List ( void  ) const
virtual

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 138 of file Model.cpp.

bool idRenderModelStatic::LoadASE ( const char *  fileName)

Definition at line 1880 of file Model.cpp.

bool idRenderModelStatic::LoadFLT ( const char *  fileName)

Definition at line 1944 of file Model.cpp.

bool idRenderModelStatic::LoadLWO ( const char *  fileName)

Definition at line 1900 of file Model.cpp.

bool idRenderModelStatic::LoadMA ( const char *  filename)

Definition at line 1922 of file Model.cpp.

void idRenderModelStatic::LoadModel ( )
virtual

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 322 of file Model.cpp.

void idRenderModelStatic::MakeDefaultModel ( )

Definition at line 229 of file Model.cpp.

int idRenderModelStatic::Memory ( ) const
virtual

Implements idRenderModel.

Reimplemented in idRenderModelPrt, and idRenderModelMD5.

Definition at line 111 of file Model.cpp.

const char * idRenderModelStatic::Name ( void  ) const
virtual

Implements idRenderModel.

Definition at line 367 of file Model.cpp.

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

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 547 of file Model.cpp.

int idRenderModelStatic::NumBaseSurfaces ( ) const
virtual

Implements idRenderModel.

Definition at line 394 of file Model.cpp.

int idRenderModelStatic::NumJoints ( void  ) const
virtual

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 502 of file Model.cpp.

int idRenderModelStatic::NumSurfaces ( ) const
virtual

Implements idRenderModel.

Definition at line 385 of file Model.cpp.

void idRenderModelStatic::PartialInitFromFile ( const char *  fileName)
virtual

Implements idRenderModel.

Definition at line 267 of file Model.cpp.

void idRenderModelStatic::Print ( void  ) const
virtual

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 78 of file Model.cpp.

void idRenderModelStatic::PurgeModel ( )
virtual

Implements idRenderModel.

Reimplemented in idRenderModelMD5.

Definition at line 2107 of file Model.cpp.

void idRenderModelStatic::ReadFromDemoFile ( class idDemoFile f)
virtual

Implements idRenderModel.

Definition at line 2153 of file Model.cpp.

virtual void idRenderModelStatic::Reset ( void  )
inlinevirtual

Implements idRenderModel.

Reimplemented in idRenderModelLiquid.

Definition at line 51 of file Model_local.h.

void idRenderModelStatic::SetLevelLoadReferenced ( bool  referenced)
virtual

Implements idRenderModel.

Definition at line 2250 of file Model.cpp.

srfTriangles_t * idRenderModelStatic::ShadowHull ( ) const
virtual

Implements idRenderModel.

Definition at line 433 of file Model.cpp.

const modelSurface_t * idRenderModelStatic::Surface ( int  surfaceNum) const
virtual

Implements idRenderModel.

Definition at line 403 of file Model.cpp.

ID_TIME_T idRenderModelStatic::Timestamp ( void  ) const
virtual

Implements idRenderModel.

Definition at line 376 of file Model.cpp.

void idRenderModelStatic::TouchData ( void  )
virtual

Implements idRenderModel.

Reimplemented in idRenderModelPrt, and idRenderModelMD5.

Definition at line 2268 of file Model.cpp.

void idRenderModelStatic::WriteToDemoFile ( class idDemoFile f)
virtual

Implements idRenderModel.

Definition at line 2199 of file Model.cpp.

Member Data Documentation

idBounds idRenderModelStatic::bounds

Definition at line 107 of file Model_local.h.

bool idRenderModelStatic::defaulted
protected

Definition at line 117 of file Model_local.h.

bool idRenderModelStatic::fastLoad
protected

Definition at line 119 of file Model_local.h.

bool idRenderModelStatic::isStaticWorldModel
protected

Definition at line 116 of file Model_local.h.

int idRenderModelStatic::lastArchivedFrame
protected

Definition at line 112 of file Model_local.h.

int idRenderModelStatic::lastModifiedFrame
protected

Definition at line 111 of file Model_local.h.

bool idRenderModelStatic::levelLoadReferenced
protected

Definition at line 121 of file Model_local.h.

idStr idRenderModelStatic::name
protected

Definition at line 114 of file Model_local.h.

int idRenderModelStatic::overlaysAdded

Definition at line 108 of file Model_local.h.

bool idRenderModelStatic::purged
protected

Definition at line 118 of file Model_local.h.

idCVar idRenderModelStatic::r_mergeModelSurfaces
staticprotected

Definition at line 124 of file Model_local.h.

idCVar idRenderModelStatic::r_slopNormal
staticprotected

Definition at line 127 of file Model_local.h.

idCVar idRenderModelStatic::r_slopTexCoord
staticprotected

Definition at line 126 of file Model_local.h.

idCVar idRenderModelStatic::r_slopVertex
staticprotected

Definition at line 125 of file Model_local.h.

bool idRenderModelStatic::reloadable
protected

Definition at line 120 of file Model_local.h.

srfTriangles_t* idRenderModelStatic::shadowHull
protected

Definition at line 115 of file Model_local.h.

idList<modelSurface_t> idRenderModelStatic::surfaces

Definition at line 106 of file Model_local.h.

ID_TIME_T idRenderModelStatic::timeStamp
protected

Definition at line 122 of file Model_local.h.


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