summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2011-12-19 18:10:17 +0000
committerTim Redfern <tim@eclectronics.org>2011-12-19 18:10:17 +0000
commit7ed42bc033eacecf45affab4f811b1e9febb7950 (patch)
tree7caf96345831c3fcc088c27c1e55b6679b5b7bd0 /src/main.cpp
parentf6f57d4d831814abd1e697801688962ef3445022 (diff)
sliders workingHEADmaster
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());
}