diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-01-02 14:16:48 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-01-02 14:16:48 +0000 |
| commit | bd80808793bcadebc303409b316a7d50c8fc2eb5 (patch) | |
| tree | b4cdd1f9aaaf500cd349a4155233ba2c8e3900cc /src/main.cpp | |
| parent | 8b005ba4cebd9909496e0d032770efe9844b5675 (diff) | |
orbiting with light
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: |
