The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL 2.0/OpenGLES and iPhone Orientation
Alexander Chaliovski
Guest

Hey guys I am still having the same issue with latest SDL 2.0.3 and latest Xcode with IOS 7.1  .

I have uploaded my Xcode project if anyone has the time to look into it. When I start the simulator I am getting black screen when I invoke the rotation I am getting wrong orientation on the arrow. Please let me know on what is the correct way to handle the orientation. As I am running into similar problems with Opengl ES 2.0 .

https://github.com/sabotage3d/gltest



On Wed, May 28, 2014 at 8:10 PM, Alexander Chaliovski wrote:
Quote:
I don't have upside-down orientations enabled. I guess I will try the latest SDL from the repository and see how it goes. Thanks for the help.

Alex



On Wed, May 28, 2014 at 2:16 AM, Alex Szpakowski wrote:
Quote:
Yep, SDL’s UIKit code disallows upside-down orientations on iPhones and iPod Touches.

On May 27, 2014, at 10:13 PM, Jeffrey Carpenter wrote:

Quote:
Alex,


Quote:
Yeah, it is definitely quite odd. I hope you are able to figure it out. I'm able to count precisely the same number of events as ... wait, you aren't counting the upside down direction as a window resize event, are you? (Although, I suppose that would be ~25% of the time). The upside down orientation is the only time I do not receive a window event -- it remains in the previous orientation (landscape). I don't know what the official spec says, but not a single app I've ever used on iOS has visually responded to that event, so I'm *guessing* that orientation doesn't count.

Cheers,
Jeffrey Carpenter


Quote:
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org







SDL 2.0/OpenGLES and iPhone Orientation
Alexander Chaliovski
Guest

After further investigation there were two problems with my test. First I was creating framebuffer while SDL is already doing it. Second you were right the only screen change is between Landscape and Portrait that is two events.