Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ofMain.h"
- #include "ofApp.h"
- #include "GuiApp.h"
- #include "ofxOsc.h"
- #include "ofAppGlutWindow.h"
- //========================================================================
- int main( ){
- ofGLFWWindowSettings settings;
- settings.width = 1680;
- settings.height = 1050;
- settings.setPosition(ofVec2f(0,0));
- settings.resizable = true;
- shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
- settings.width = 1680;
- settings.height = 1050;
- settings.setPosition(ofVec2f(0,0));
- settings.resizable = true;
- shared_ptr<ofAppBaseWindow> guiWindow = ofCreateWindow(settings);
- shared_ptr<ofApp> mainApp(new ofApp);
- shared_ptr<GuiApp> guiApp(new GuiApp);
- mainApp->gui = guiApp;
- ofRunApp(guiWindow, guiApp);
- ofRunApp(mainWindow, mainApp);
- ofRunMainLoop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement