CPSC362A
Video Game Development

Activity 1

Introduction

  1. If you are using your own computer, install GLFW.

  2. Compile and run the program triangle.cpp. Use this makefile to compile and link.

  3. Answer the following questions. Make modifications to the code to help:

    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 2 different triangles.