void* locCreateManaged(uint64 aHash, bool& aWasCreated) { T* object = T::Find(aHash); if (object) { aWasCreated = false; return object; } aWasCreated = true; object = FANCY_NEW(T, eMemoryCategory); // TODO: This is bad design... we should set the whole description here. // We need to do this during a refactoring of the serialization-system... T::Register(object, aHash); return object; }
//---------------------------------------------------------------------------// Scene::Scene() : m_pActiveCamera(nullptr) { m_pRootNode = FANCY_NEW(SceneNode, MemoryCategory::GENERAL); }
void* locCreate(uint64, bool& aWasCreated) { aWasCreated = true; return FANCY_NEW(T, eMemoryCategory); }