Graphics iPhone




CS185c

Chris Pollett

Apr 16, 2012

Outline

Graphics on the iPhone

Getting Context in Quartz

Drawing into a Context

The Coordinate System

Specifying Color

Drawing Images in a Context

Drawing Shapes: Polygons, Lines and Curves

Demo App

Quiz

Which of the following is true?

  1. A triangle strip can't be used to make square objects.
  2. OpenGL ES has built-in support for lights and one can set their ambient, diffuse, and specular properties.
  3. gl.glMatrixMode(GL10.GL_PROJECTION); might be called in OpenGL immediately before applying 3D rotation matrix

UIColor-Random

Constants.h