Пример #1
0
bool POD3DLayer::OnExit()
{
	IScene* scene = SceneManager::Instance().Current();
	auto camera= ResolutionAdapter::Instance().DefaultCamera2D();
	scene->SetCamera(camera);
	return true;
}
Пример #2
0
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;
}