#include <GameMemory.h>
Public Attributes | |
| const char * | poolName |
| name of the pool; by convention, "dmaPool_XXX" where XXX is allocationSize | |
| Int | allocationSize |
| size, in bytes, of the pool. | |
| Int | initialAllocationCount |
| initial number of blocks to allocate. | |
| Int | overflowAllocationCount |
| when the pool runs out of space, allocate more blocks in this increment | |
This class is purely a convenience used to pass optional arguments to initMemoryManager(), and by extension, to createDynamicMemoryAllocator(). You can specify how many sub-pools you want, what size each is, what the allocation counts are to be, etc. Most apps will construct an array of these to pass to initMemoryManager() and never use it elsewhere.
Definition at line 226 of file GameMemory.h.
| Int PoolInitRec::allocationSize |
size, in bytes, of the pool.
Definition at line 229 of file GameMemory.h.
| Int PoolInitRec::initialAllocationCount |
initial number of blocks to allocate.
Definition at line 230 of file GameMemory.h.
| Int PoolInitRec::overflowAllocationCount |
when the pool runs out of space, allocate more blocks in this increment
Definition at line 231 of file GameMemory.h.
| const char* PoolInitRec::poolName |
name of the pool; by convention, "dmaPool_XXX" where XXX is allocationSize
Definition at line 228 of file GameMemory.h.