More OpenGL




CS185c

Chris Pollett

Nov. 8, 2010

Outline

Where We Were

Defining Lighting and Cube Material

Screenshot After Lighting

Screenshot showing how lighting effect the way our cube looked

Making the Cube Rotate

Screenshot During Rotation

Screenshot showing the cube mid-rotation

Quiz

Which of the following statements is true:

  1. To draw an oval into a View, you can override the View's onDraw method, and call an OvalShape's draw method with the Canvas argument you get from onDraw.
  2. OpenGL ES is a Java-only implementation of OpenGL for embedded systems.
  3. Using a single triangle strip (reusing vertices) it is possible to draw a cube.

Applying Texture

Texture Mapping Continued

Finishing Texture Map

Screenshot With Texture Map

Screenshot showing the cube with my face as a texture

Using OpenGL and other UI Controls

GPS

LocationManager

LocationListener