VoxelFarm::CBillboardCache Class Reference

Keeps an billboard cache entry for each cell that had its billboards and material instances generated. More...

#include <CellData.h>

Public Member Functions

BillboardCellCachegetBillboards (CellId cell)
 Retrieves the list of billboards for teh specified cell.
 
void setBillboards (CellId cell, BillboardCellCache *list)
 Sets the list of billboards for the specified cell.
 
void deleteCache (CellId cell)
 Deletes the cached billboards for the specified cell.
 
void moveToGarbage (CellId cell)
 Declares the cell billboards can be disposed in any time.
 
void updateTimeStamp ()
 Moves forward the time vector used to compue cache TTLs.
 
void collectGarbage ()
 Disposes information for cells that are not any longer needed.
 

Public Attributes

ExternalMutex::Mutex lock
 A critical section to protect the cache.
 
TMap< CellId, BillboardCellCache * > cache
 This map links each cell to its cache.
 
TSet< CellIdgarbage
 Set of cells to be soon disposed.
 
TList< BillboardCellCache * > deadCells
 List of cells to be disposed.
 
int timeStamp
 Current time vector for the cache system.
 

Detailed Description

Keeps an billboard cache entry for each cell that had its billboards and material instances generated.

Definition at line 75 of file CellData.h.


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