Intermediate C++ Game Programming Tutorial 10
From Chilipedia
Revision as of 20:27, 19 August 2017 by Chili (Talk | contribs) (Created page with "The promised day has come. We're finally going to be loading images from bitmap files into memory and drawing them as sprites on the screen. This is where all that stuff we've...")
The promised day has come. We're finally going to be loading images from bitmap files into memory and drawing them as sprites on the screen. This is where all that stuff we've been learning--data types, pointers, memory management, file access, etc.--is going to pay off bigtime. Also, get fukt mass PutPixel functions; die in a garbage fire.
Contents
Topics Covered
-
Surface
class for storing image data in memory - Parsing Windows bitmap file headers and loading pixel data
- Drawing sprites (pixel blocks) from a
Surface
to the screen
Video Timestamp Index
Source Code
Download Materials
- Five-letter word list ?? tutorial bitmaps
- Common word list ?? homework bitmaps
Homework
The homework is to improve the bitmap loading routine to support 32-bit RGB format and to support bitmaps with reverse row order.