Esempio n. 1
0
  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;
  }
Esempio n. 2
0
//---------------------------------------------------------------------------//
  Scene::Scene()
    : m_pActiveCamera(nullptr)
  {
    m_pRootNode = FANCY_NEW(SceneNode, MemoryCategory::GENERAL);
  }
Esempio n. 3
0
 void* locCreate(uint64, bool& aWasCreated)
 {
   aWasCreated = true;
   return FANCY_NEW(T, eMemoryCategory);
 }