void AssetManager::Init() { MeshFactory* meshFactory = MeshFactory::getInstance(); /* Add the box */ Mesh* box = meshFactory->CreateBoxMesh(); Mesh* quad = meshFactory->CreateNewQuadMesh(); Mesh* debugMesh = meshFactory->CreateDebugMesh(); Mesh* particleMesh = meshFactory->CreateParticleMesh(MAXPARTICLEBUFFER); Mesh* textMesh = meshFactory->CreateTextMesh(5000); Mesh* ppsQuad = meshFactory->CreatePPSQuad(); //box->SetAutoUnload(false); quad->SetAutoUnload(false); debugMesh->SetAutoUnload(false); particleMesh->SetAutoUnload(false); textMesh->SetAutoUnload(false); ppsQuad->SetAutoUnload(false); //InsertAssetInMap(box); InsertAssetInMap(quad); InsertAssetInMap(debugMesh); InsertAssetInMap(particleMesh); InsertAssetInMap(textMesh); InsertAssetInMap(ppsQuad); assChecker = 0; std::cout << "Asset Manager Initialized" << std::endl; }