:?: windows phone orientation (using opengles and ANGLE) |
asdron
|
Problem was resolved with creating projection matrix and rotating it. Also I found same comment in "Cube Render" sample in ANGLE.
CubeRenderer.cpp
|
|||||||||||||
|
:?: windows phone orientation (using opengles and ANGLE) |
slvn
|
Landscape/Portrait might be a setting in you project properties, to be configured from the IDE.
(I dont remember exactly) On Fri, Nov 7, 2014 at 5:18 PM, asdron wrote:
-- Sylvain Becker |
|||||||||||||
|
:?: windows phone orientation (using opengles and ANGLE) |
DLudwig
|
I'm not sure this will help, but I just pushed out a fix for a bug whereby SDL would always alter the WinRT-app's 'AutoRotationPreferences' on app-startup, setting it to allow both Portrait and Landscape modes. This fix is in as of https://hg.libsdl.org/SDL/rev/9c45fc8605d9
Cheers, -- David L. On Fri, Nov 7, 2014 at 11:18 AM, asdron wrote:
|
|||||||||||||
|
asdron
|
slvn,
Setting Landscape/Portrait in project properties not work for current version SDL + ANGLE. I didn't yet fixed this in my new SDL+ANGLE project without initialization sdl window, so I will post results a bit later. DLudwig, your fix may be will work for pure directx app, but if I do not get them mixed up, then I tried to play with setting orientation flags in SDL, but it didn't make any changes for SDL+ANGLE project. p.s. I've found this issue https://github.com/MSOpenTech/angle/issues/25, but I can't say anything still I'm not worked yet on fixing orientation. I switched to windows 8.1 and there is no problem with starting app in landscape mode. |
|||||||||||
|
asdron
|
Today I finished integration facebook in my game and returned to problem with orientation. After reading and googling a while, I have found this article. http://www.kraigbrockschmidt.com/2013/09/05/locking-orientation-supported-rotations-manifest/. There is interesting note, that I don't know (probably missed it in official docs).
I tested on device (microsoft surface tablet) and it's really truth. Game handles orientation properly on device, but on desktop simulator always working wrong after rotation. |
|||||||||||||
|