Project 0

Points: 6

Purpose

Setup for working with OpenGL.

Task 1: Tutorial

Follow the instructions of the OpenGL Tutorial website.

Tutorial 1

  1. Browse hints accumlated from previous years (see CMake)
  2. Install CMake.
  3. Install your preferred C++ integrated development environment (for example, Visual Studio).
  4. Download the code from the OpenGL Tutorial website.
  5. Run CMake. Set the top field to TUT and the second field from the top to TUT/build.

    Windows example: C:\Users\jorg\Downloads\ogl-master\ogl-master/build

  6. Configure (ignore red errors).
  7. Configure again.
  8. Generate.
  9. Open the tutorial. For example, on Windows, find C:\Users\jorg\Downloads\ogl-master\ogl-master/build/...sln.
  10. n is the position in the alphabet of the first letter of your last name, starting from 0.

    Run Tutorial mod(n, 10) + 4.

    Example: Alice Peters should run Tutorial 9 [mod(15, 10) + 4 = 9].

Task 2: Project 1 setup

For OpenGL:

  1. Download the Project 1 code base (ZIP) .
  2. Run CMake (compile into build).
  3. [4 pts] Run the provided code to see the figure below. Your platform and compiler version may require minor adjustments.
  4. [2 pts] Change the title of the window to your name: "Lastname, Firstname".
Screenshot of the expected Project 1 output: a white triangle centered on a dark blue background, with a window title reading “Lastname,FirstName(ufid)”.
Expected output of the provided Project 1 code.

What to submit

Practice submission — all the other submissions will look similar.

Identify any AI assist and state the prompt(s).

Grading