Mercurial > hg > wabletios
annotate 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 |
rev | line source |
---|---|
rt300@0 | 1 #include "ofMain.h" |
rt300@0 | 2 #include "testApp.h" |
rt300@0 | 3 #include "globalForces.h" |
rt300@0 | 4 |
rt300@0 | 5 GlobalForces globalForces; |
rt300@0 | 6 GlobalUI globalUI; |
rt300@0 | 7 |
rt300@0 | 8 int main(){ |
rt300@0 | 9 //ofSetupOpenGL(480,320, OF_FULLSCREEN); // <-------- setup the GL context |
rt300@15 | 10 //ofSetupOpenGL(1024,768, OF_FULLSCREEN); |
rt300@15 | 11 //ofRunApp(new testApp); |
rt300@0 | 12 |
rt300@15 | 13 |
rt300@15 | 14 |
rt300@15 | 15 ofAppiOSWindow * window = new ofAppiOSWindow(); |
rt300@15 | 16 window->enableHardwareOrientation(); |
rt300@15 | 17 window->enableOrientationAnimation(); |
rt300@15 | 18 window->enableAntiAliasing(4); |
rt300@15 | 19 window->enableDepthBuffer(); |
rt300@15 | 20 window->enableRetina(); |
rt300@15 | 21 |
rt300@15 | 22 ofSeedRandom(); |
rt300@15 | 23 |
rt300@15 | 24 ofSetupOpenGL(window, 768, 1024,OF_FULLSCREEN); |
rt300@15 | 25 ofRunApp(new testApp); |
rt300@0 | 26 } |