Torque2D Reference
|
#include <frameAllocator.h>
Public Member Functions | |
FrameAllocatorMarker () | |
~FrameAllocatorMarker () | |
void * | alloc (const U32 allocSize) const |
Helper class to deal with FrameAllocator usage.
The purpose of this class is to make it simpler and more reliable to use the FrameAllocator. Simply use it like this:
When you leave the scope you defined the FrameAllocatorMarker in, it will automatically restore the watermark on the FrameAllocator. In situations with complex branches, this can be a significant headache remover, as you don't have to remember to reset the FrameAllocator on every posssible branch.
|
inline |
|
inline |
|
inline |