Mercurial > hg > midi-score-follower
comparison 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 |
comparison
equal
deleted
inserted
replaced
27:fa1890efa044 | 28:49a5b023df1e |
---|---|
1 #include "ofMain.h" | |
2 #include "testApp.h" | |
3 #include "ofAppGlutWindow.h" | |
4 #include "ofxArgs.h" | |
5 | |
6 //======================================================================== | |
7 int main(int argc, char *argv[]){ | |
8 ofxArgs* args = new ofxArgs(argc, argv); | |
9 | |
10 if (argc > 0){ | |
11 cout << "MIDI FOLLOW (" << argc << ") arg[1] is " << argv[1] << endl; | |
12 } | |
13 | |
14 ofAppGlutWindow window; | |
15 ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context | |
16 | |
17 // this kicks off the running of my app | |
18 // can be OF_WINDOW or OF_FULLSCREEN | |
19 // pass in width and height too: | |
20 | |
21 ofRunApp(new testApp(args)); | |
22 delete args; | |
23 | |
24 } | |
25 |