diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..f64c8be --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,33 @@ +#include "ofMain.h" +#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, 600,600, OF_WINDOW); // <-------- setup the GL context + glutIgnoreKeyRepeat(1); + 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); + ofRunApp( new testApp()); + +} |
