System::Init

System::Init
static SF_EXPORT void SF_CDECL Init(const MemoryHeap::HeapDesc& rootHeapDesc, SysAllocBase* psysAlloc = SF_SYSALLOC_DEFAULT_CLASS::InitSystemSingleton());
static SF_EXPORT void SF_CDECL Init(SysAllocBase* psysAlloc = SF_SYSALLOC_DEFAULT_CLASS::InitSystemSingleton());
static SF_EXPORT void SF_CDECL Init(SysAllocBase* psysAlloc = SF_SYSALLOC_DEFAULT_CLASS::InitSystemSingleton());
Description

Init initializes System core, setting the global heap required for GFx memory allocations. This method is called first before any GFx objects are instantiated. Two methods are provided to allow specifying SysAllocBase with and without MemoryHeap::HeapDesc for the root heap. Users can override memory heap implementation by passing a different memory heap here.

Parameters
Parameters 
Description 
const MemoryHeap::HeapDesc& rootHeapDesc 
Heap descriptor, MemoryHeap::HeapDesc for the global heap. 
SysAllocBase* psysAlloc = SF_SYSALLOC_DEFAULT_CLASS::InitSystemSingleton() 
System allocator, SysAllocBase interface for allocating the heap.