Interactive Programs

Overview

In this exercise you will examine how if and switch control statements are used to control physics and user interaction in an interactive 3D program.

The 3D rendering is done with OpenGL - the graphics library that does 3D for the iPhone, Nintendo DS, Playstation 3 and Wii. The user interface is provided by SDL, a C++ tool that helps with writing interactive programs for multiple operating systems.

Explore

  1. Get the program

  2. Simple Physics with if statements

  3. Handling User Interaction

Exercise

Using what you learned in Explore parts 2 and 3 see if you can:

Fun Graphics Links