summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 5320f445279b95afa42bdd81a378018bce03023e (plain)
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
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"

#ifdef TARGET_OSX
    #include <GLUT/glut.h>
    #include <OpenGL/gl.h>
    #include <OpenGL/glu.h>
#else
 #include <GL/glew.h>
 #include <GL/glut.h>
 #include <GL/freeglut.h>
 #include <iostream>
#endif

//========================================================================
int main( ){

    ofAppGlutWindow window;
    ofSetupOpenGL(&window, 3840,720, OF_FULLSCREEN);			// <-------- setup the GL context
	//ofSetupOpenGL(&window, 1024,300, OF_WINDOW);
	glutIgnoreKeyRepeat(1);
	glutSetKeyRepeat(GLUT_KEY_REPEAT_OFF); //these don't work!!!
	printf("key repeat ignore: %i\n",glutDeviceGet(GLUT_DEVICE_IGNORE_KEY_REPEAT));
	// this kicks off the running of my app
	// can be OF_WINDOW or OF_FULLSCREEN
	// pass in width and height too:
	window.setFrameRate(50.0f);
	ofRunApp( new testApp());

}