From edeccbd160c72553d789516b40d4b922df848aac Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 13 Jun 2017 23:10:55 +0100 Subject: dirscanner playing --- testDir/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'testDir/src/main.cpp') diff --git a/testDir/src/main.cpp b/testDir/src/main.cpp index 120f5a0..733814a 100644 --- a/testDir/src/main.cpp +++ b/testDir/src/main.cpp @@ -3,11 +3,14 @@ //======================================================================== int main( ){ + float rotation=ofDegToRad(ROTATION); + int width=(1920*FACTOR*sin(rotation))+(1080*FACTOR*cos(rotation)); + int height=(1920*FACTOR*cos(rotation))+(1080*FACTOR*sin(rotation)); #ifdef FULLSCREEN - ofSetupOpenGL(1080,1920,OF_FULLSCREEN); + ofSetupOpenGL(width,height,OF_FULLSCREEN); #else - ofSetupOpenGL(1080,1920,OF_WINDOW); // <-------- setup the GL context + ofSetupOpenGL(width,height,OF_WINDOW); #endif // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN -- cgit v1.2.3