CS 381  >  Assignment 2

CS 381, Fall 2003
Assignment 2

General Information

Homework Policies

See the Homework Policies handout.

Questions (5 pts)

  1. The glBegin-style primitives all draw points, lines, or polygons. But OpenGL has other primitives. What sorts of things do they draw?
  2. Why is it generally a good idea to post a redisplay event (in GLUT, by calling glutPostRedisplay) when the window contents need updating, rather than calling the display function directly?
  3. List two issues that come up in 3-D CG that do not come up (or are much simpler to deal with) in 2-D CG.

Program (20 pts)

Write a C++ program using OpenGL/GLUT that draws something.

Suggestions for Full Credit

Doing any one of the following is sufficient—but do them all if you want!

Note

Particularly well-done programs may be demonstrated in class.


CS 381, Fall 2003: Assignment 2 / Last update: 15 Sep 2003 / Glenn G. Chappell / ffggc@uaf.edu