summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2011-12-19 13:44:25 +0000
committerTim Redfern <tim@eclectronics.org>2011-12-19 13:44:25 +0000
commit5523988d1729fe5c2757e046636d219639ee6724 (patch)
tree1d9043ea18ff611bd24f033c61a86f745ca804f8 /src/main.cpp
linux osx project initial
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644
index 0000000..6ff359a
--- /dev/null
+++ b/src/main.cpp
@@ -0,0 +1,17 @@
+#include "ofMain.h"
+#include "testApp.h"
+#include "ofAppGlutWindow.h"
+
+//========================================================================
+int main( ){
+
+ ofAppGlutWindow window;
+ ofSetupOpenGL(&window, 400,400, OF_WINDOW); // <-------- setup the GL context
+
+ // 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());
+
+}