blob: 733814abbf54e4df075be689de302181989cddd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
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(width,height,OF_FULLSCREEN);
#else
ofSetupOpenGL(width,height,OF_WINDOW);
#endif
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp( new ofApp());
}
|