int main() { CApplication* app = new CApplication(); app->GetDevice()->SetWidth(800); app->GetDevice()->SetHeight(600); if (app->Init()) { while (app->IsRunning()) { app->Update(); Sleep(100); } app->Deinit(); } return 0; }
int main() { CApplication app; // create application if( !app.Create(1024, 664, false) ) //if( !app.Create(1366, 768, true) ) return false; // main loop while( app.IsRunning() ) { app.AdvanceFrame(); } app.Destroy(); // exit the app return 0; }