Interactive Programs


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 - a historically important graphics system that inspired Direct3D. A version of OpenGL is the core graphics system on mobile phones everywhere. The user interface is provided by SDL, a C++ tool that helps with writing interactive programs for multiple operating systems.


  1. Get the program

  2. Handling User Interaction

  3. Simple Physics with if statements


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

Fun Graphics Links