-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
34 lines (28 loc) · 840 Bytes
/
main.cpp
File metadata and controls
34 lines (28 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// vjshader
//
// main.cpp
//
// Created by Lewis Lepton on 24/04/2020.
// lewislepton.com
//
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main( ){
ofGLFWWindowSettings settings;
settings.setSize(1280, 720);
settings.setGLVersion(3, 2);
settings.resizable = true;
shared_ptr<ofAppBaseWindow> mainWindow = ofCreateWindow(settings);
settings.setSize(640, 360);
settings.setGLVersion(3, 2);
settings.resizable = true;
settings.shareContextWith = mainWindow;
shared_ptr<ofAppBaseWindow> guiWindow = ofCreateWindow(settings);
shared_ptr<ofApp> mainApp(new ofApp);
shared_ptr<settingWindow> guiApp(new settingWindow);
mainApp->future = guiApp;
ofRunApp(guiWindow, guiApp);
ofRunApp(mainWindow, mainApp);
ofRunMainLoop();
}