int main(void){ MyApplication app; app.startUp(); while( app.keepRunning() ){ app.renderOneFrame(); } return 0; }
int main(void) { MyApplication app; // Load up the application resources and stuff :) app.startUp(); // Start the rendering loop while (app.keepRunning()) { app.renderOneFrame(); } return 0; }