IOS- added a method to resize the buffer on device rotation
authorTzach Shabtay <tzachshabtay@gmail.com>
Thu, 23 Mar 2017 03:30:48 +0000 (23:30 -0400)
committerTzach Shabtay <tzachshabtay@gmail.com>
Thu, 23 Mar 2017 03:30:48 +0000 (23:30 -0400)
commit269c336719ad93e70934a66a8ed3786f41303044
tree7cb07ae8cfd853703568cf18abb134a396f22056
parent2b15ae37005e64a254efe47d1d4a8a34a6e26b2b
IOS- added a method to resize the buffer on device rotation

This allows to keep aspect ratio when rotating to landscape, see here:
http://stackoverflow.com/questions/20326947/opengl-what-need-to-reconfig
-when-rotate-screen, and also here:
https://gamedev.stackexchange.com/questions/75965/how-do-i-reconfigure-m
y-gles-frame-buffer-after-a-rotation
src/OpenTK/Platform/iPhoneOS/iPhoneOSGameView.cs