Mercurial > hg > screen-ui
view src/main.cpp @ 8:3d9e0db254dc
Added OSC receive
author | Henrik Ekeus <hekeus@eecs.qmul.ac.uk> |
---|---|
date | Thu, 26 Jan 2012 23:42:13 +0000 |
parents | d879a30556f8 |
children | 3dff71c0e7fd |
line wrap: on
line source
#include "ofMain.h" #include "melodyTriangle.h" #include "ofAppGlutWindow.h" #define HOST "localhost" #define PORT 7770 #define NUMVOICES 3 #define RECEIVEPORT 1234 //======================================================================== int main(int argc, const char **argv ){ ofAppGlutWindow window; if (argc>4 ? atoi(argv[4]) : false){ ofSetupOpenGL(&window, 1280,800, OF_FULLSCREEN); // <-------- setup the GL context }else{ ofSetupOpenGL(&window, 800,600, OF_WINDOW); } // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN // pass in width and height too: ofRunApp( new melodyTriangle(argc>1 ? argv[1] : HOST, argc>2 ? atoi(argv[2]) : PORT, argc>3 ? atoi(argv[3]) : NUMVOICES, argc>5 ? atoi(argv[5]) : true, argc>6 ? atoi(argv[6]) : 0, argc>7 ? atoi(argv[7]) : RECEIVEPORT) ); }