aboutsummaryrefslogtreecommitdiffstats
path: root/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm
diff options
context:
space:
mode:
authormick grierson <mickgrierson@gmail.com>2015-08-14 19:17:40 +0100
committermick grierson <mickgrierson@gmail.com>2015-08-14 19:17:40 +0100
commit18ab896876b2d7ecaf4a4eda26a14e0999a8b396 (patch)
treec3fbd5db23369e304d1b4f2cfdc61749f24d2879 /ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm
parent0921f81dd5fc388d5327787f200e25aa5d1ac24e (diff)
adding addon .. er
Diffstat (limited to 'ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm')
-rwxr-xr-xofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm29
1 files changed, 29 insertions, 0 deletions
diff --git a/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm b/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm
new file mode 100755
index 0000000..a02b813
--- /dev/null
+++ b/ofxMaxim/openFrameworksExamples/iOS/maximFeatureExtractor0.8.4/src/main.mm
@@ -0,0 +1,29 @@
+#include "ofMain.h"
+#include "ofApp.h"
+
+
+// use the below code to allow deployment on the iOS simulator because OF 0.8.4 is broken
+extern "C"{
+ size_t fwrite$UNIX2003( const void *a, size_t b, size_t c, FILE *d )
+ {
+ return fwrite(a, b, c, d);
+ }
+ char* strerror$UNIX2003( int errnum )
+ {
+ return strerror(errnum);
+ }
+ time_t mktime$UNIX2003(struct tm * a)
+ {
+ return mktime(a);
+ }
+ double strtod$UNIX2003(const char * a, char ** b) {
+ return strtod(a, b);
+ }
+}
+
+
+int main(){
+ ofSetupOpenGL(1024,768, OF_FULLSCREEN); // <-------- setup the GL context
+
+ ofRunApp(new ofApp);
+}