int main() { ofSetupOpenGL(800, 600, OF_WINDOW); // this replaces ofRunApp() and kicks off the running of the app // with the app utils ofRunAppWithAppUtils(new ofApp()); }
//======================================================================== int main( ) { ofAppGLFWWindow window; window.setMultiDisplayFullscreen(true); ofSetupOpenGL(&window, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT, DEFAULT_WINDOW_MODE); ofRunAppWithAppUtils(new ofApp()); }
int main(){ #ifdef _DEBUG ofSetupOpenGL(1920, 1080, OF_WINDOW); #else ofSetupOpenGL(1920, 1080, OF_FULLSCREEN); #endif // this replaces ofRunApp() and kicks off the running of the app // with the app utils ofRunAppWithAppUtils(new ofApp()); }
//======================================================================== int main( ){ ofSetupOpenGL(800,600,OF_WINDOW); // <-------- setup the GL context // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN // pass in width and height too: ofRunAppWithAppUtils(new ofApp()); }
//======================================================================== int main( ) { ofSetupOpenGL(DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT, DEFAULT_WINDOW_MODE); ofRunAppWithAppUtils(new ofApp()); }