iPhone + OpenGL. How Do I Correctly Switch From Landscape to Portrait?
- by dugla
Because of the additional complexity of drawing via an EAGLView vs. a UIView I was wondering of someone has found a robust way to handle changing the device orientation from Landscape to Portrait. One approach is to tear down the framebuffer and rebuild from scratch which would require saving/retrieving scene state. The other would be far simpler: just rotate and resize the view.
What is the best practice for this?
Thanks,
Doug