int APIENTRY wWinMain( _In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow) { if (!app->initApplication(hInstance, 800, 600)) { return -1; }
sgl->initSurface(app->getWidth(), app->getHeight(), app->getCanvas());
bool alive = true; while (alive) { alive = app->peekMessage(); render(); app->show(); }
return 0; }
|