void QtLayerWin32::SetWindow(HINSTANCE hInstance, HWND hWindow, int32 width, int32 height) { CoreWin32Platform *core = dynamic_cast<CoreWin32Platform *>(CoreWin32Platform::Instance()); if (NULL != core) { core->SetupWindow(hInstance, hWindow); RenderManager::Create(Core::RENDERER_OPENGL); RenderManager::Instance()->Create(hInstance, hWindow); FrameworkDidLaunched(); Resize(width, height); // DisplayMode currentMode = DisplayMode(width, height, 16, 0); // // KeyedArchive * options = Core::Instance()->GetOptions(); // if (options) // { // currentMode.bpp = options->GetInt32("bpp"); // } // // RenderManager::Instance()->ChangeDisplayMode(currentMode, false); // RenderManager::Instance()->Init(currentMode.width, currentMode.height); // UIControlSystem::Instance()->SetInputScreenAreaSize(currentMode.width, currentMode.height); // Core::Instance()->SetPhysicalScreenSize(currentMode.width, currentMode.height); AppStarted(); } }
void QtLayerWin32::SetWindow(HINSTANCE hInstance, HWND hWindow, int32 width, int32 height) { CoreWin32Platform *core = dynamic_cast<CoreWin32Platform *>(CoreWin32Platform::Instance()); if (NULL != core) { core->SetupWindow(hInstance, hWindow); RenderManager::Create(Core::RENDERER_OPENGL); RenderManager::Instance()->Create(hInstance, hWindow); FrameworkDidLaunched(); Resize(width, height); AppStarted(); } }