annotate hackday/main.cpp @ 52:13194a9dca77 tip

Added exporting of image and text data
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Tue, 17 Jul 2012 22:13:10 +0100
parents 49a5b023df1e
children
rev   line source
andrew@28 1 #include "ofMain.h"
andrew@28 2 #include "testApp.h"
andrew@28 3 #include "ofAppGlutWindow.h"
andrew@28 4 #include "ofxArgs.h"
andrew@28 5
andrew@28 6 //========================================================================
andrew@28 7 int main(int argc, char *argv[]){
andrew@28 8 ofxArgs* args = new ofxArgs(argc, argv);
andrew@28 9
andrew@28 10 if (argc > 0){
andrew@28 11 cout << "MIDI FOLLOW (" << argc << ") arg[1] is " << argv[1] << endl;
andrew@28 12 }
andrew@28 13
andrew@28 14 ofAppGlutWindow window;
andrew@28 15 ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
andrew@28 16
andrew@28 17 // this kicks off the running of my app
andrew@28 18 // can be OF_WINDOW or OF_FULLSCREEN
andrew@28 19 // pass in width and height too:
andrew@28 20
andrew@28 21 ofRunApp(new testApp(args));
andrew@28 22 delete args;
andrew@28 23
andrew@28 24 }
andrew@28 25