Almost all of the examples name a glut window in their main.cpp file.
For instance:
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"
//========================================================================
int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 1024,768, 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:
ofRunApp( new testApp());
}
If we migrate all of the source files to look like this:
#include "ofMain.h"
#include "testApp.h"
//========================================================================
int main( ){
ofSetupOpenGL(1024,768, 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:
ofRunApp( new testApp());
}
Almost all of the examples name a glut window in their
main.cpp
file.For instance:
If we migrate all of the source files to look like this:
We can rely on the default windowing scheme in
ofAppRunner.cpp
(e.g. https://github.com/openFrameworks-RaspberryPi/openFrameworks/blob/master/libs/openFrameworks/app/ofAppRunner.cpp#L29)This might be best be submitted as a core "issue".