My Project
|
a cached texture item More...
#include <DetailTextureFactory.h>
Public Member Functions | |
TextureCacheItem (int nIndex, TextureEntity *pTexture) | |
void | OnHit () |
on hit | |
void | FrameMove () |
this is called every rendering frame. More... | |
Public Attributes | |
int | nIndex |
index of the item, into the m_listTextures | |
asset_ptr< TextureEntity > | pTexture |
the texture object | |
DWORD | nHitCount |
a bits mask of number of times that this texture is hit in the last 32 render frames. More... | |
a cached texture item
|
inline |
this is called every rendering frame.
the last 16 bits are count downs, while the first 16 bits are time relavent
DWORD ParaTerrain::CDetailTextureFactory::TextureCacheItem::nHitCount |
a bits mask of number of times that this texture is hit in the last 32 render frames.
For each render frame nHitCount = nHitCount>>1; for each get texture call: nHitCount |= 1<<31;