CPSC310A
Video Game Development

Activity 0

Drawing Triangles

Details

  1. Download, compile, and run the appropriate example OpenGL program (triangle.cc or Triangle.java).

  2. Read the source code to understand it as best you can.

  3. Answer the following questions. Modify and run the source to help answer the questions. Put your answers as comments in the source code.

    1. Where is the origin, the point (0, 0, 0), located in the program's window?

    2. In what direction are the positive x, y, and z axes in relation to the program's window?

  4. Modify the source code to draw something cool.

Submission

Please show your source code and run your program for the instructor.