hekeus@0: #include "ofMain.h" hekeus@0: #include "melodyTriangle.h" hekeus@0: #include "ofAppGlutWindow.h" hekeus@0: hekeus@0: #define HOST "localhost" hekeus@0: #define PORT 7770 hekeus@0: #define NUMVOICES 3 hekeus@0: hekeus@0: //======================================================================== hekeus@0: int main(int argc, const char **argv ){ hekeus@0: hekeus@0: ofAppGlutWindow window; hekeus@0: hekeus@0: if (argc>4 ? atoi(argv[4]) : false){ hekeus@0: ofSetupOpenGL(&window, 1280,800, OF_FULLSCREEN); // <-------- setup the GL context hekeus@0: }else{ hekeus@0: ofSetupOpenGL(&window, 800,600, OF_WINDOW); hekeus@0: } hekeus@0: // this kicks off the running of my app hekeus@0: // can be OF_WINDOW or OF_FULLSCREEN hekeus@0: // pass in width and height too: hekeus@0: ofRunApp( new melodyTriangle(argc>1 ? argv[1] : HOST, hekeus@0: argc>2 ? atoi(argv[2]) : PORT, hekeus@1: argc>3 ? atoi(argv[3]) : NUMVOICES, hekeus@2: argc>5 ? atoi(argv[5]) : true, hekeus@2: argc>6 ? atoi(argv[6]) : 0)); hekeus@0: hekeus@0: }