Browse Source

window widht set to match aspect ratio

tsns-map
cailean 1 week ago
parent
commit
67be65c338
  1. 3
      src/main.cpp
  2. 2
      src/ofApp.cpp
  3. 3
      src/ofApp.h

3
src/main.cpp

@ -6,7 +6,8 @@ int main( ){
//Use ofGLFWWindowSettings for more options like multi-monitor fullscreen
ofGLWindowSettings settings;
settings.setSize(1512, 1080);
//1512x1080
settings.setSize(1980, 1080);
settings.setGLVersion(3, 2);
settings.windowMode = OF_WINDOW; //can also be OF_FULLSCREEN

2
src/ofApp.cpp

@ -5,7 +5,7 @@ void ofApp::setup(){
/* ofSettings */
ofDisableArbTex();
ofSetVerticalSync(true);
window_width = ofGetWindowWidth();
window_width = 1512;
window_height = ofGetWindowHeight();
/* load font */

3
src/ofApp.h

@ -83,5 +83,8 @@ class ofApp : public ofBaseApp{
std::unique_ptr<Server> server;
Vector7D embedding;
int app_h = 1080;
int app_w = 1512;
//ofxPiMapper mapper;
};

Loading…
Cancel
Save