summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@sendak.local>2011-12-19 13:37:11 +0000
committerTim Redfern <tim@sendak.local>2011-12-19 13:37:11 +0000
commitf96ac8a05c915832c0efe5e70264245fca15b33e (patch)
tree366fea81a62199fb5d0521c91fe6e0c9bd2243e0 /src/main.cpp
linux osx project initial
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp33
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());
+
+}