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
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
Other Videos By Nick Walton
2023-01-10 | Pixel Perfect Collision Detection in C |
2022-11-05 | Easy C Debugging with VSCode & GDB |
2022-10-01 | Namespaces in C (Renamable libraries) |
2022-07-09 | Multi-Threaded Game Framework in C |
2022-05-07 | High Precision Timing on Windows in C |
2022-04-02 | Load .WAV Sound Files in C |
2022-03-26 | Load .BMP Images in C |
2022-02-27 | Realtime Sound on Windows in C with WinMM |
2022-02-18 | Win32 Input in C (Keyboard/Mouse) |
2022-02-11 | GCC/MinGW on Windows Quick Setup Guide |
2022-02-01 | Draw Pixels to a Win32 Window in C with GDI |
2022-01-21 | Open a Window in C with Win32 |
2021-12-26 | C Programming on Windows Quick Setup Guide |
2020-03-12 | Switching to C - One Year Later |
2019-11-24 | I was sent Ben Eater's 6502 computer kit! |
2019-10-03 | Super Kero Land Early Access Trailer! |
2019-07-10 | The big Notemon delay |
2019-04-24 | Maze95 Launch Trailer |
2019-04-13 | Welcome to Nyoo Owtearowa - Notemon Trailer |
2019-02-28 | Notemon is in a magazine! - Patch Notes February 2019 |
2019-01-24 | NPC features, Notemon joining, C programming - Patch Notes January 2019 |