Mercurial > hg > midi-score-follower
diff hackday/main.cpp @ 28:49a5b023df1e
Hackday files comitted - version as demo'd at London hackday
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 05 Dec 2011 07:00:47 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hackday/main.cpp Mon Dec 05 07:00:47 2011 +0000 @@ -0,0 +1,25 @@ +#include "ofMain.h" +#include "testApp.h" +#include "ofAppGlutWindow.h" +#include "ofxArgs.h" + +//======================================================================== +int main(int argc, char *argv[]){ + ofxArgs* args = new ofxArgs(argc, argv); + + if (argc > 0){ + cout << "MIDI FOLLOW (" << argc << ") arg[1] is " << argv[1] << endl; + } + + 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(args)); + delete args; + +} +