My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::TerrainTileCacheItem Struct Reference

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...
 

Detailed Description

a cached Terrain tile item

Member Function Documentation

§ FrameMove()

void ParaEngine::TerrainTileCacheItem::FrameMove ( )
inline

this is called every rendering frame.

the last 16 bits are count downs, while the first 16 bits are time relavent

Member Data Documentation

§ nHitCount

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;


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