Lesson 2: Transformations and Timers
- Summary
- *
- Text version
- *
- Exercises
- *
- Download source
- Using one additional function call, make all of the shapes half their size, without changing any of the calls to glVertex3f.
- Using one additional call to glTranslatef, move the triangle and the pentagon half a unit to the right, without changing any of the calls to glVertex3f.
- Make the shapes rotate at different speeds without adding any extra timers.
- Using timers, but without adding another timer, make the camera rotate continuously about the vector (0.1, -0.1, 1). (Don't stare at it for too long; you might get hypnotized.)
Next is "Lesson 3: Color".