
226 5. OpenGL ES: Turbocharged!
5.13 Support for Retina Displays under OpenGL ES
Under OpenGL ES, adaptation to the higher resolution of a retina display takes place
automatically, as described in Section 2.9 in Chapter 2. It suces to include a “@2x” vari-
ant of the graphics in the project. is is recommended for improved performance since,
otherwise, the graphics will be scaled internally by iOS.
5.13.1 Accurate Pixel Rendering
A fractional position such as (100.25752, 200.73472) instead of (100, 200) leads to OpenGL
ES mapping the texture to the nearest vertex, resulting in a distorted (100, 201). When a
graphic is rotated, a blurred or ...