Draw Pixels to a Win32 Window in C with GDI

Channel:
Subscribers:
6,130
Published on ● Video Link: https://www.youtube.com/watch?v=q1fMa8Hufmg



Duration: 7:11
12,905 views
289


Get the code in the text version of this tutorial: https://croakingkero.com/tutorials/drawing_pixels_win32_gdi/

Chapters:
00:00 Introduction
00:34 main.c
00:50 GDI object creation
01:45 WM_SIZE resizing the bitmap
02:41 WM_PAINT copy the pixels to the window
03:56 Redrawing every game update
04:29 frame structure
04:44 Indexing pixels
05:10 Pixel byte layout + hexadecimal primer
05:49 Setting pixel colours with hexadecimal
06:23 Make a specific pixel red
06:41 Running the program
07:00 Coming next