From bd80808793bcadebc303409b316a7d50c8fc2eb5 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 2 Jan 2012 14:16:48 +0000 Subject: orbiting with light --- src/main.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 3df2e96..1ed640d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,12 +2,29 @@ #include "testApp.h" #include "ofAppGlutWindow.h" +// Includes for Mac OSX + +#include +#include +#include + +/* + //Includes for Windows + + #include + #include + #include + #include + */ + //======================================================================== int main( ){ ofAppGlutWindow window; - ofSetupOpenGL(&window, 1024,600, OF_FULLSCREEN); // <-------- setup the GL context - + ofSetupOpenGL(&window, 512,512, OF_WINDOW); // <-------- setup the GL context + 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: -- cgit v1.2.3