Graphics iPhone




CS185c

Chris Pollett

Nov. 16, 2009

Outline

Graphics on the iPhone

Getting Context in Quartz

Drawing into a Context

The Coordinate System

Quiz

Which of the following statements is true:

  1. Specular lighting is a general, nondirectional glow that lights a scene.
  2. Each texture coordinate that we used to map my face to the 3D cube involved three coordinates.
  3. To control how much our object had rotated in the scene we used the total elasped time since the init() method of our thread was called.

Specifying Color

Drawing Images in a Context

Drawing Shapes: Polygons, Lines and Curves