void TestClearBuffer::Run() { MyApp app; try { app.Init(Punk::Config()); System::Mouse::Instance()->LockInWindow(false); app.Run(); } catch(...) { m_result = false; } }
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { //glutInit(&__argc, __argv); //glutCreateWindow(__argv[0]); //glutDisplayFunc(display); //glutMainLoop(); //return 0; MyApp app; app.Init(hInstance, nCmdShow); app.Execute(); return 0; }