Reputation: 3157
While testing my openGL ES app on the new iPhone 4, it seemed as if the openGL wasn't using all 326 ppi, rather the 163 ppi found on the 3G, because of noticeable pixelation. I realize there are 4 times more pixels to calculate, but shouldn't the A4 chip compensate for this?
I'm sure there is a way to take advantage of the stunning resolution, as I have seen in apps on the iTunes Store, but how?
Upvotes: 5
Views: 433
Reputation: 28688
Yes, its quite easy too actually. By default the OpenGL view uses the old scale mode as to not break existing applications because it is a pixel based API rather than a point based API.
To fix this, set the contentsScale of your CAEAGLLayer to 2.0 and bask in the glory.
Upvotes: 9
Reputation: 915
Not so familiar with the CAEAGLLayer, what is the syntax to set the contentScale to 2.0?
Upvotes: 1