#include "ofMain.h" #include "ofApp.h" //======================================================================== int main(int argc, char *argv[]){ ofGLFWWindowSettings settings; settings.width = 600; settings.height = 1200; settings.setPosition(ofVec2f(0,0)); settings.resizable = true; //settings.decorated = false; //doesn't suppress FS title bar shared_ptr guiWindow = ofCreateWindow(settings); guiWindow->setVerticalSync(false); // share OpenGL resources with other windows settings.shareContextWith = guiWindow; settings.decorated = true; settings.width = 1200; settings.height = 900 ; settings.setPosition(ofVec2f(1700,0)); settings.resizable = false; shared_ptr mainWindow = ofCreateWindow(settings); mainWindow->setVerticalSync(false); shared_ptr mainApp(new ofApp); //mainApp->setupGui(); ofAddListener(guiWindow->events().draw,mainApp.get(),&ofApp::drawGui); ofAddListener(guiWindow->events().windowResized,mainApp.get(),&ofApp::guiWindowResized); ofAddListener(guiWindow->events().keyPressed,mainApp.get(),&ofApp::guiKeyPressed); ofRunApp(mainWindow, mainApp); ofRunMainLoop(); }