Lab 10

Topic: OpenGL

Getting started:


Part 1 (14:00)


Part 2 (14:25)


Part 3 (15:20)


Part 4 (15:30)


Prep Problem

Steps:

  1. Draw the same model three times at different locations by calling function draw_shape after setting up the correct geometric transformation for the individual shapes
  2. Hook up keys u,d,l,r to change drawing angles
  3. Enable the OpenGL depth test to render the squares correctly in 3d
  4. Colour the background yellow

Use ./make to compile your code

Hints:

Reference material: sample code OpenGL glut


Prep Solutions

Lab Exercise

Secrets