Mercurial > hg > screen-ui
view src/main.cpp @ 19:055d7524bae4
Adjusted colours, reduced buffer zone.
author | samer |
---|---|
date | Tue, 31 Jan 2012 23:44:01 +0000 |
parents | 3dff71c0e7fd |
children | 460c05dd74d0 |
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 7771 //======================================================================== 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) ); }