My Project
Public Member Functions | Public Attributes | List of all members
ParaTerrain::CDetailTextureFactory::TextureCacheItem Struct Reference

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< TextureEntitypTexture
 the texture object
 
DWORD nHitCount
 a bits mask of number of times that this texture is hit in the last 32 render frames. More...
 

Detailed Description

a cached texture item

Member Function Documentation

§ FrameMove()

void ParaTerrain::CDetailTextureFactory::TextureCacheItem::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 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;


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