Skip to content

Instantly share code, notes, and snippets.

@obviousjim
Created December 30, 2016 19:27
Show Gist options
  • Save obviousjim/f52b78d6a340cd84287793536be2c19f to your computer and use it in GitHub Desktop.
Save obviousjim/f52b78d6a340cd84287793536be2c19f to your computer and use it in GitHub Desktop.
#include "ofMain.h"
#include "DKAppController.h"
#include "DKTimelineController.h"
#include "ofAppGLFWWindow.h"
//========================================================================
int main( ){
int guiPanelWidth = 454;
ofGLFWWindowSettings settings;
settings.width = 1920-guiPanelWidth;
settings.height = 550;
settings.setPosition(ofVec2f(guiPanelWidth,0));
settings.resizable = true;
settings.setGLVersion(3,2);
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
int compPanelWidth = 801;
settings.width = 1920-compPanelWidth;
settings.height = 438;
settings.setPosition(ofVec2f(compPanelWidth,1080-settings.height));
settings.resizable = true;
settings.setGLVersion(3,2);
shared_ptr<ofAppBaseWindow> timelineWindow = ofCreateWindow(settings);
shared_ptr<DKAppController> mainApp(new DKAppController());
shared_ptr<DKTimelineController> timelineApp(new DKTimelineController());
mainApp->timeliner = timelineApp;
ofRunApp(timelineWindow, timelineApp);
ofRunApp(mainWindow, mainApp);
ofRunMainLoop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment