Page 1 of 1

CLOSED [iOS] EAGL2Support::addConfig and orientation?

Posted: Sat Feb 22, 2014 5:21 pm
by simedj ... ault#cl-52

Code: Select all

        CGSize screenSize = [[UIScreen mainScreen] bounds].size; = "Video Mode";
        optVideoMode.possibleValues.push_back("320 x 480");
        optVideoMode.possibleValues.push_back("320 x 568");
        optVideoMode.possibleValues.push_back("768 x 1024");
        optVideoMode.currentValue = StringConverter::toString(screenSize.width) + " x " + 
The hard-coded values (which look dodgy anyway) and thereturned screenSize value are all portrait. If your app is running in landscape mode, you get logs like this:
GLES2RenderSystem::_createRenderWindow "", 320x480 windowed miscParams: FSAA=0 Full Screen=No hidden=true title=C-Arm Trainer
iOS: Window created 320 x 480 with backing store size 480 x 320 using content scaling factor 1.0
I can't tell if this is a problem or not...

Re: [iOS] Should EAGL2Support::addConfig() respect orientati

Posted: Tue Feb 25, 2014 2:12 am
by masterfalcon
No, those resolutions are only the resolution of the window in portrait. Which is what the iPhone/iPod default to. Though the resolution may be in portrait, the View Controller actually decides what orientation the view is in and recreates the backing store to match said orientation. It also handles changing the origin of the coordinate system to match what you would expect for how the screen is oriented.