blob: 6eb1c47cfc65d40683c1ee54b105b1e9aa8f7bb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "ofMain.h"
#include "ofApp.h"
//========================================================================
int main(int argc, char *argv[]){
ofSetupOpenGL(1024,768,OF_WINDOW); // <-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofApp *app = new ofApp();
app->arguments = vector<string>(argv, argv + argc);
ofRunApp(app); // start the app
//60 deg camera
//30 60 90 triangle 3 4 5
//512 * 4/3 = 683
}
|