I am trying to display an image using OpenGL ES in iOS. But image is covering only one quadrant of the screen. How can I show it to full screen?
Asked
Active
Viewed 616 times
2 Answers
3
I have found the solution. The problem is with setting the contentScaleFactor of UIView. By default, it is 2.0 for retina displays. So, it should be set to 1.0. Here is the link for more details: UIView ContentScaleFactor
0
You can determine that programmatically by checking [UIScreen mainScreen].scale; then setting the glkView.contentScaleFactor. You should not be hard coding a scale value.
_glkView.contentScaleFactor = [UIScreen mainScreen].scale;

n6xej
- 461
- 5
- 15