bool POD3DLayer::OnExit() { IScene* scene = SceneManager::Instance().Current(); auto camera= ResolutionAdapter::Instance().DefaultCamera2D(); scene->SetCamera(camera); return true; }
bool HelloWorldLayer::Enter() { auto winSize = ResolutionAdapter::Instance().WinSize(); auto* camera = CameraFactory::Instance().CreateFromModel("Camera01", "Scene.pod", winSize, false); IScene* scene = (IScene*)mParent; scene->SetCamera(camera); return true; }