summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0cd85f7..5c102f0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2,6 +2,9 @@
#include "testApp.h"
#include "ofAppGlutWindow.h"
+//linux includes
+#include <GL/glut.h>
+
// Includes for Mac OSX
/*
#include <GLUT/glut.h>
@@ -22,12 +25,12 @@ int main( ){
ofAppGlutWindow window;
ofSetupOpenGL(&window, 600,600, OF_WINDOW); // <-------- setup the GL context
- //glutIgnoreKeyRepeat(1);
- //printf("key repeat ignore: %i\n",glutDeviceGet(GLUT_DEVICE_IGNORE_KEY_REPEAT));
+ 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);
+ //window.setFrameRate(200.0f);
ofRunApp( new testApp());
}