Mercurial > hg > wabletios
diff 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 diff
--- a/main.mm Mon Jul 14 16:26:30 2014 +0100 +++ b/main.mm Tue May 12 15:48:52 2015 +0100 @@ -7,7 +7,20 @@ int main(){ //ofSetupOpenGL(480,320, OF_FULLSCREEN); // <-------- setup the GL context - ofSetupOpenGL(1024,768, OF_FULLSCREEN); - ofRunApp(new testApp); + //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); }