Skip to content

Instantly share code, notes, and snippets.

@laserpilot
Created June 19, 2013 20:55
Show Gist options
  • Save laserpilot/5817950 to your computer and use it in GitHub Desktop.
Save laserpilot/5817950 to your computer and use it in GitHub Desktop.
iPhone Main.mm from crystal eye
#include "testApp.h"
#include "ofMain.h"
int main(){
ofAppiPhoneWindow * iOSWindow = new ofAppiPhoneWindow;
// iOSWindow -> enableAntiAliasing(4); //you can't take screenshots with this enabled
iOSWindow -> enableRetinaSupport();
ofSetupOpenGL(iOSWindow,480,320, OF_FULLSCREEN); // <-------- setup the GL context
ofRunApp(new testApp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment