Chapter 13. Graphics: Quartz, Core Animation, and OpenGL

This chapter covers

  • Using Quartz 2D for drawing
  • Understanding context, paths, and state
  • Using Core Animation
  • Learning about OpenGL ES

As you saw in chapter 11, creating and displaying images often isn’t enough. In games and other more complex programs, you’ll also want to manipulate those images in various ways at runtime. The iPhone OS offers two major ways to do this.

The first is through Quartz 2D, a two-dimensional drawing library that allows for complex line drawings, much as Canvas did on the web. It’s also the heart of the Core Graphics frameworks. We already touched on Quartz in the previous chapter, when you drew images straight to the CALayer of a UIView; it will be the ...

Get iPhone and iPad in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.