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 | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
idRenderModelDecal Class Reference

#include <ModelDecal.h>

Public Member Functions

 idRenderModelDecal (void)
 
 ~idRenderModelDecal (void)
 
void CreateDecal (const idRenderModel *model, const decalProjectionInfo_t &localInfo)
 
void AddDecalDrawSurf (struct viewEntity_s *space)
 
idRenderModelDecalNext (void) const
 
void ReadFromDemoFile (class idDemoFile *f)
 
void WriteToDemoFile (class idDemoFile *f) const
 

Static Public Member Functions

static idRenderModelDecalAlloc (void)
 
static void Free (idRenderModelDecal *decal)
 
static bool CreateProjectionInfo (decalProjectionInfo_t &info, const idFixedWinding &winding, const idVec3 &projectionOrigin, const bool parallel, const float fadeDepth, const idMaterial *material, const int startTime)
 
static void GlobalProjectionInfoToLocal (decalProjectionInfo_t &localInfo, const decalProjectionInfo_t &info, const idVec3 &origin, const idMat3 &axis)
 
static idRenderModelDecalRemoveFadedDecals (idRenderModelDecal *decals, int time)
 

Private Member Functions

void AddWinding (const idWinding &w, const idMaterial *decalMaterial, const idPlane fadePlanes[2], float fadeDepth, int startTime)
 
void AddDepthFadedWinding (const idWinding &w, const idMaterial *decalMaterial, const idPlane fadePlanes[2], float fadeDepth, int startTime)
 

Private Attributes

const idMaterialmaterial
 
srfTriangles_t tri
 
idDrawVert verts [MAX_DECAL_VERTS]
 
float vertDepthFade [MAX_DECAL_VERTS]
 
glIndex_t indexes [MAX_DECAL_INDEXES]
 
int indexStartTime [MAX_DECAL_INDEXES]
 
idRenderModelDecalnextDecal
 

Static Private Attributes

static const int MAX_DECAL_VERTS = 40
 
static const int MAX_DECAL_INDEXES = 60
 

Detailed Description

Definition at line 63 of file ModelDecal.h.

Constructor & Destructor Documentation

idRenderModelDecal::idRenderModelDecal ( void  )

Definition at line 49 of file ModelDecal.cpp.

idRenderModelDecal::~idRenderModelDecal ( void  )

Definition at line 62 of file ModelDecal.cpp.

Member Function Documentation

void idRenderModelDecal::AddDecalDrawSurf ( struct viewEntity_s space)

Definition at line 464 of file ModelDecal.cpp.

void idRenderModelDecal::AddDepthFadedWinding ( const idWinding w,
const idMaterial decalMaterial,
const idPlane  fadePlanes[2],
float  fadeDepth,
int  startTime 
)
private

Definition at line 275 of file ModelDecal.cpp.

void idRenderModelDecal::AddWinding ( const idWinding w,
const idMaterial decalMaterial,
const idPlane  fadePlanes[2],
float  fadeDepth,
int  startTime 
)
private

Definition at line 209 of file ModelDecal.cpp.

idRenderModelDecal * idRenderModelDecal::Alloc ( void  )
static

Definition at line 70 of file ModelDecal.cpp.

void idRenderModelDecal::CreateDecal ( const idRenderModel model,
const decalProjectionInfo_t localInfo 
)

Definition at line 295 of file ModelDecal.cpp.

bool idRenderModelDecal::CreateProjectionInfo ( decalProjectionInfo_t info,
const idFixedWinding winding,
const idVec3 projectionOrigin,
const bool  parallel,
const float  fadeDepth,
const idMaterial material,
const int  startTime 
)
static

Definition at line 88 of file ModelDecal.cpp.

void idRenderModelDecal::Free ( idRenderModelDecal decal)
static

Definition at line 79 of file ModelDecal.cpp.

void idRenderModelDecal::GlobalProjectionInfoToLocal ( decalProjectionInfo_t localInfo,
const decalProjectionInfo_t info,
const idVec3 origin,
const idMat3 axis 
)
static

Definition at line 181 of file ModelDecal.cpp.

idRenderModelDecal* idRenderModelDecal::Next ( void  ) const
inline

Definition at line 88 of file ModelDecal.h.

void idRenderModelDecal::ReadFromDemoFile ( class idDemoFile f)

Definition at line 526 of file ModelDecal.cpp.

idRenderModelDecal * idRenderModelDecal::RemoveFadedDecals ( idRenderModelDecal decals,
int  time 
)
static

Definition at line 389 of file ModelDecal.cpp.

void idRenderModelDecal::WriteToDemoFile ( class idDemoFile f) const

Definition at line 535 of file ModelDecal.cpp.

Member Data Documentation

glIndex_t idRenderModelDecal::indexes[MAX_DECAL_INDEXES]
private

Definition at line 101 of file ModelDecal.h.

int idRenderModelDecal::indexStartTime[MAX_DECAL_INDEXES]
private

Definition at line 102 of file ModelDecal.h.

const idMaterial* idRenderModelDecal::material
private

Definition at line 97 of file ModelDecal.h.

const int idRenderModelDecal::MAX_DECAL_INDEXES = 60
staticprivate

Definition at line 95 of file ModelDecal.h.

const int idRenderModelDecal::MAX_DECAL_VERTS = 40
staticprivate

Definition at line 94 of file ModelDecal.h.

idRenderModelDecal* idRenderModelDecal::nextDecal
private

Definition at line 103 of file ModelDecal.h.

srfTriangles_t idRenderModelDecal::tri
private

Definition at line 98 of file ModelDecal.h.

float idRenderModelDecal::vertDepthFade[MAX_DECAL_VERTS]
private

Definition at line 100 of file ModelDecal.h.

idDrawVert idRenderModelDecal::verts[MAX_DECAL_VERTS]
private

Definition at line 99 of file ModelDecal.h.


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