summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 5c102f07cb51ec9582f6d4fba80170c07965ce8c (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
32
33
34
35
36
#include "ofMain.h"
#include "testApp.h"
#include "ofAppGlutWindow.h"

//linux includes
#include <GL/glut.h>

// Includes for Mac OSX
 /*
#include <GLUT/glut.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>

/
//Includes for Windows

#include <GL/glew.h>
#include <GL/glut.h>
#include <GL/freeglut.h>
#include <iostream>
 */

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

    ofAppGlutWindow window;
	ofSetupOpenGL(&window, 600,600, OF_WINDOW);			// <-------- setup the GL context
	glutIgnoreKeyRepeat(1); //only works on linux?
	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(200.0f);
	ofRunApp( new testApp());

}