CPSC170A
Fundamentals of Computer Science II

Lab 27

Boids

OpenGL

  1. Download the example OpenGL program files, triangle.cpp, clamp.h, and makefile, compile, and run the program.

  2. Create a new program that uses the functions glRotatef and glTranslatef to animate a triangle moving across the screen.


Boids

Design the classes you will create for the final project.