Torque2D Reference
|
#include <frameAllocator.h>
Static Public Member Functions | |
static void | init (const U32 frameSize) |
static void | destroy () |
static void * | alloc (const U32 allocSize) |
static void | setWaterMark (const U32) |
static U32 | getWaterMark () |
static U32 | getHighWaterMark () |
Temporary memory pool for per-frame allocations.
In the course of rendering a frame, it is often necessary to allocate many small chunks of memory, then free them all in a batch. For instance, say we're allocating storage for some vertex calculations:
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |