Module 5 - SDL Basics: Dub Setup,SDL Basics,2D Primitives and Framerate - 2026-Sep-14
Overview
In this module we learn about a cross platform library for windowing.
- Modules and Packages in D
- Compiling and Linking
- Introduction to SDL
- Introduction to Dub
- SDL Subsystems
- SDL Event Loop
- Basic Terminology of 2D Rendering
- Basics of 2D Rendering in SDL
- Frame Capping
- Frame Independent Movement
Key Resources/Readings
The following resources are listed (roughly) in order 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.
- SDL3 Dlang Programming Playlist ((SDL YouTube Video Series))
- SDL3 C++ Programming Playlist ((SDL YouTube Video Series))
- Game Programming Patterns - Game Loop (Pay attention to frame capping section and timing)
- Game Programming Patterns - Double Buffer ((Double Buffering))
- In 54 Minutes, Understand the whole C and C++ compilation process (Note: I don't have a version for the D langauge yet, but this should still provide intuition.)
Slides and Module 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.
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. That said, it is the expectation that you are coming to class in-person. :)
Audio/Video Recording
Join the Discussions and Make a Post
Please log in to see discussions/posts


