Mercurial > hg > wabletios
view main.mm @ 15:d5758530a039 tip
oF0.84
Retina, and iPhone support
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 12 May 2015 15:48:52 +0100 |
parents | c667dfe12d47 |
children |
line wrap: on
line source
#include "ofMain.h" #include "testApp.h" #include "globalForces.h" GlobalForces globalForces; GlobalUI globalUI; int main(){ //ofSetupOpenGL(480,320, OF_FULLSCREEN); // <-------- setup the GL context //ofSetupOpenGL(1024,768, OF_FULLSCREEN); //ofRunApp(new testApp); ofAppiOSWindow * window = new ofAppiOSWindow(); window->enableHardwareOrientation(); window->enableOrientationAnimation(); window->enableAntiAliasing(4); window->enableDepthBuffer(); window->enableRetina(); ofSeedRandom(); ofSetupOpenGL(window, 768, 1024,OF_FULLSCREEN); ofRunApp(new testApp); }