|
Nebula
|
#include <texturetilecache.h>
Classes | |
| struct | CacheResult |
| struct | Node |
Public Member Functions | |
| TextureTileCache () | |
| constructor | |
| ~TextureTileCache () | |
| destructor | |
| void | Setup (uint tileSize, uint textureSize) |
| setup cache | |
| CacheResult | Cache (TileCacheEntry entry) |
| get tile, if invalid coord, gets the last used, otherwise, bumps the use of it | |
| void | Clear () |
| clear cache | |
| void | Reset () |
| Reset the cache without freeing memory. | |
Private Member Functions | |
| void | InsertBeginning (Node *node) |
| insert at beginning of list | |
| void | InsertBefore (Node *node, Node *newNode) |
| insert before another node | |
| void | Remove (Node *node) |
| detach node and fix tail & head | |
Private Attributes | |
| Util::FixedArray< Node > | nodes |
| Node * | head |
| Node * | tail |
| Util::Dictionary< TileCacheEntry, Node * > | lookup |
| uint | tiles |
| uint | tileSize |
|
inline |
constructor
|
inline |
destructor
|
inline |
get tile, if invalid coord, gets the last used, otherwise, bumps the use of it
|
inline |
clear cache
insert before another node
|
inlineprivate |
insert at beginning of list
|
inlineprivate |
detach node and fix tail & head
|
inline |
Reset the cache without freeing memory.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |