From 7ed42bc033eacecf45affab4f811b1e9febb7950 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 19 Dec 2011 18:10:17 +0000 Subject: sliders working --- src/main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') 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 + // Includes for Mac OSX /* #include @@ -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()); } -- cgit v1.2.3