From 5523988d1729fe5c2757e046636d219639ee6724 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 19 Dec 2011 13:44:25 +0000 Subject: linux osx project initial --- src/main.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/main.cpp (limited to 'src/main.cpp') 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()); + +} -- cgit v1.2.3