daily pastebin goal
21%
SHARE
TWEET

main.cpp

a guest Feb 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "ofMain.h"
  2. #include "ofApp.h"
  3. #include "GuiApp.h"
  4. #include "ofxOsc.h"
  5. #include "ofAppGlutWindow.h"
  6.  
  7. //========================================================================
  8. int main( ){
  9.     ofGLFWWindowSettings settings;
  10.  
  11.     settings.width = 1680;
  12.     settings.height = 1050;
  13.     settings.setPosition(ofVec2f(0,0));
  14.     settings.resizable = true;
  15.     shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
  16.  
  17.     settings.width = 1680;
  18.     settings.height = 1050;
  19.     settings.setPosition(ofVec2f(0,0));
  20.     settings.resizable = true;
  21.     shared_ptr<ofAppBaseWindow> guiWindow = ofCreateWindow(settings);
  22.  
  23.     shared_ptr<ofApp> mainApp(new ofApp);
  24.     shared_ptr<GuiApp> guiApp(new GuiApp);
  25.     mainApp->gui = guiApp;
  26.  
  27.     ofRunApp(guiWindow, guiApp);
  28.     ofRunApp(mainWindow, mainApp);
  29.     ofRunMainLoop();
  30.  
  31. }
RAW Paste Data
Top