/src/main.cpp

http://github.com/mazbox/Speakotron · C++ · 19 lines · 10 code · 5 blank · 4 comment · 0 complexity · fab9c7560c4012d845b70b9a216c83b0 MD5 · raw file

  1. #include "ofMain.h"
  2. #include "testApp.h"
  3. #include "ofAppGlutWindow.h"
  4. //========================================================================
  5. int main( ){
  6. ofAppGlutWindow window;
  7. window.setGlutDisplayString("rgba double samples>=4 depth");
  8. ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
  9. // this kicks off the running of my app
  10. // can be OF_WINDOW or OF_FULLSCREEN
  11. // pass in width and height too:
  12. testApp *app = new testApp();
  13. ofRunApp(app);
  14. }