Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DShadowTextureManager Class Reference

Public Member Functions

 W3DShadowTextureManager (void)
 
 ~W3DShadowTextureManager (void)
 
int createTexture (RenderObjClass *robj, const char *name)
 
W3DShadowTexturegetTexture (const char *name)
 
W3DShadowTexturepeekTexture (const char *name)
 
Bool addTexture (W3DShadowTexture *new_texture)
 
void freeAllTextures (void)
 
void invalidateCachedLightPositions (void)
 
void registerMissing (const char *name)
 
Bool isMissing (const char *name)
 
void resetMissing (void)
 

Friends

class W3DShadowTextureManagerIterator
 

Detailed Description

This class will manage shadow textures for each render object. Shadow textures may be based on render geometry but don't need to be. This allows lower detail 'blob' textures to be substituted to improve performance.

Definition at line 132 of file W3DProjectedShadow.cpp.

Constructor & Destructor Documentation

◆ W3DShadowTextureManager()

W3DShadowTextureManager::W3DShadowTextureManager ( void )

Definition at line 2345 of file W3DProjectedShadow.cpp.

◆ ~W3DShadowTextureManager()

W3DShadowTextureManager::~W3DShadowTextureManager ( void )

Definition at line 2352 of file W3DProjectedShadow.cpp.

Member Function Documentation

◆ addTexture()

Bool W3DShadowTextureManager::addTexture ( W3DShadowTexture * newTexture)

Add texture to cache

Definition at line 2394 of file W3DProjectedShadow.cpp.

◆ createTexture()

int W3DShadowTextureManager::createTexture ( RenderObjClass * robj,
const char * name )

Create shadow geometry from a reference W3D RenderObject

Definition at line 2451 of file W3DProjectedShadow.cpp.

◆ freeAllTextures()

void W3DShadowTextureManager::freeAllTextures ( void )

Release all loaded textures

Definition at line 2364 of file W3DProjectedShadow.cpp.

◆ getTexture()

W3DShadowTexture * W3DShadowTextureManager::getTexture ( const char * name)

Get texture from cache and increment its reference count

Definition at line 2384 of file W3DProjectedShadow.cpp.

◆ invalidateCachedLightPositions()

void W3DShadowTextureManager::invalidateCachedLightPositions ( void )

Definition at line 2405 of file W3DProjectedShadow.cpp.

◆ isMissing()

Bool W3DShadowTextureManager::isMissing ( const char * name)

Definition at line 2445 of file W3DProjectedShadow.cpp.

◆ peekTexture()

W3DShadowTexture * W3DShadowTextureManager::peekTexture ( const char * name)

Find texture in cache

Definition at line 2378 of file W3DProjectedShadow.cpp.

◆ registerMissing()

void W3DShadowTextureManager::registerMissing ( const char * name)

Definition at line 2440 of file W3DProjectedShadow.cpp.

◆ resetMissing()

void W3DShadowTextureManager::resetMissing ( void )

Friends And Related Symbol Documentation

◆ W3DShadowTextureManagerIterator

friend class W3DShadowTextureManagerIterator
friend

Definition at line 154 of file W3DProjectedShadow.cpp.


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