mshah.ioCourse ScheduleCourse Information


Module 2 - Graphics Application, SDL Setup, and PPM Images - 2025-Jan-14

Overview

In this module we learn about how to setup our environment and about PPM images

  • Graphics Application Loop
  • SDL Introduction -- creating a window, handling keyboard input
  • Setting up OpenGL with D and SDL
  • Understanding the D compilation process
  • Understanding images
  • PPM Image Format and image data

Slides and Class Content

Please note: Your in-class activity is graded. Your first attempt will be graded. You can use your notes and slides if you like. You have 1 week from the date of this module opening to complete the in-class activity. In-class activities are completed individually.

Audio/Video Recording

Note: Audio/Video recordings are made in a best effort in case you have to miss class or you would otherwise like to re-watch a portion of lecture. Occassional recording errors (e.g. missing sound, corrupted video, etc.) may occur, and I apologize in advance if a recording is not able to be made available.

Readings

    Please use the following resources to supplement this lecture. You may choose to read 1 or more of these before/during/after the lecture to fully immerse into the material.

  1. OpenGL
    • (Reading -- understand OpenGL model)
  2. Creating a window
    • (Reading -- understand the part about GLAD)
  3. SDL Documentation
    • (Useful to search API functions and how they are used)
  4. Pixels, Coordinates, and Colors
    • Reading
  5. Introduction to 2D games with SDL with worked examples
    • (Handy video tutorial on SDL)
Please do not redistribute or host any materials without e-mailing me first. Thank you for your time!