MeshCache::Evict

MeshCache::Evict
virtual UPInt Evict(MeshCacheItem* p, AllocAddr* pallocator = 0, MeshBase* pskipMesh = 0) = 0;
Description

Evict evicts MeshCacheItem from mesh/index caches and frees it. Returns the resulting free block size within the specified allocator. If 'pskipMesh' argument is provided, those list of batched meshes is not touched (assumed to be cleared externally).

Parameters
Parameters 
Description 
MeshCacheItem* p 
Pointer to the MeshCacheItem which is evicted from the caches. 
AllocAddr* pallocator = 0 
The allocator used for mesh allocations. 
MeshBase* pskipMesh = 0 
A Boolean value to indicate whether to skip the batched meshes from the eviction. 
Return Value

A Boolean value of true if the mesh cache items are evicted and false otherwise.