My Project
|
a cached Terrain tile item More...
#include <TTerrain.h>
Public Member Functions | |
TerrainTileCacheItem (Terrain *pTerrain) | |
TerrainTileCacheItem (TTerrain *pHeightmap) | |
void | OnHit () |
on hit | |
void | FrameMove () |
this is called every rendering frame. More... | |
Public Attributes | |
union { | |
Terrain * pTerrain | |
TTerrain * pHeightmap | |
}; | |
the texture object | |
DWORD | nHitCount |
a bits mask of number of times that this tile is hit in the last 32 render frames. More... | |
a cached Terrain tile item
|
inline |
this is called every rendering frame.
the last 16 bits are count downs, while the first 16 bits are time relavent
DWORD ParaEngine::TerrainTileCacheItem::nHitCount |
a bits mask of number of times that this tile is hit in the last 32 render frames.
For each render frame nHitCount = nHitCount>>1; for each get texture call: nHitCount |= 1<<31;