diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
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 <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, 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: |
