MemoryManager::Alloc

MemoryManager::Alloc
virtual VideoMemoryAllocation Alloc(UPInt size, UPInt align, MemoryType type, unsigned arena = 0) = 0;
Description

Alloc allocates renderer memory of specified type. If size is 0, Alloc will allocate a tiny block and return a valid pointer.

Parameters
Parameters 
Description 
UPInt size 
The size of the memory block to allocate. 
UPInt align 
A value of zero or power of two for custom memory alignments. 
MemoryType type 
The type of platform-specific memory allocation requested. 
unsigned arena = 0 
The integer Id of the memory arena used for the heap. 
Return Value

A pointer to the newly allocated memory or NULL if no space is available.