Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Quartz and OpenGL

Quartz and OpenGL are the two ways to create graphics on iOS, and they’re both big enough to be books on their own. Here’s a small sample of what you’d be dealing with:

Note

Ed note: Now there’s a fine idea...

Quartz

Quartz is the simpler of the two, allowing you to draw in two dimensions directly into the view. The drawing code uses the Core Graphics Framework and renders directly into the view. It follows a painter’s model, which means that the order of commands is important. The first thing drawn will be covered up with a subsequent drawing in the same location. Quartz can handle shading, color, and interfacing with other image and video types.

The Quartz 2D Programming Guide in the developer documentation has a lot of information to help get you started.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial