virtual VideoMemoryAllocation Alloc(UPInt size, UPInt align, MemoryType type, unsigned arena = 0) = 0;
Alloc allocates renderer memory of specified type. If size is 0, Alloc will allocate a tiny block and return a valid pointer.
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. |
A pointer to the newly allocated memory or NULL if no space is available.