Keeps an billboard cache entry for each cell that had its billboards and material instances generated. More...
#include <CellData.h>
Public Member Functions | |
| BillboardCellCache * | getBillboards (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< CellId > | garbage |
| 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. | |
Keeps an billboard cache entry for each cell that had its billboards and material instances generated.
Definition at line 75 of file CellData.h.