SimpleMeshCache::allocBuffer

SimpleMeshCache::allocBuffer
bool allocBuffer(UPInt* poffset, UPInt size, bool waitForCache);
Description

allocBuffer allocates a number of bytes in the specified buffer, while evicting the least recently used data. The buffer can contain either vertex and/or index data.

Parameters
Parameters 
Description 
UPInt* poffset 
Pointer to the beginning of the buffer. 
UPInt size 
The size of the buffer. 
bool waitForCache 
_nt_ 
Return Value

A Boolean value of true if mesh data is allocated and false otherwise.