Skip to content
underdoeg edited this page Oct 21, 2011 · 2 revisions

These are the basic changes to the standard openframeworks emptyExample code to have it run with ofxFenster. You only have to modify the main.cpp file.

###main.cpp #include "ofMain.h" #include "testApp.h" #include "ofxFensterManager.h"

//========================================================================
int main( ){
    ofSetupOpenGL(ofxFensterManager::get(), 400, 400, OF_WINDOW);
    ofRunFensterApp(new testApp());
}

ofRunFensterApp either takes an instance of ofBaseApp or ofxFensterListener. So your testApp.h file has to extend either one of them.

Clone this wiki locally