Code a GUI in C from Scratch | 2D Graphics Engine & BMP Tutorial

preview_player
Показать описание
Ep01 & 02. "Code a GUI from scratch in C! Build a 2D graphics engine & display custom windows in this epic 2-part tutorial. Subscribe now!"

Welcome to Episodes 1 & 2 of our Code a GUI in C project! In this self-contained tutorial, we’re building a custom Windows-like system from the ground up. You’ll learn to code a 2D graphics engine, design a graphical user interface (GUI), and display real windows on-screen with mouse controls—all in C! We’ll run everything in a virtualized environment (works on Windows, Linux, or Mac OS X, with easy setup instructions included).

What You’ll Learn:

✅ Part 1: Design the interface, code a 2D graphics engine from scratch, handling text, points, lines, and rectangles.
✅ Part 2: Parse the .BMP file format to draw pixel-perfect images for your GUI’s window designs.

Prerequisites: Basic C knowledge is needed, but don’t worry—additional components are minimal (just 5% of the project), and you can copy them if needed. The full source code is available for free at my code repo (linked below, available for 4 days as usual).

Comment below: What’s your dream GUI project? Smash that Like button if this tutorial rocks, and subscribe for more C programming tutorials!

Resources & Links:

✔ Follow me on X for coding tips: @drJonasBirch

Best regards,
dr. JB

#CodeGUIinC #CProgramming #GUIDevelopment #2DGraphics #LearnToCode

Timestamps:
00:00:00 - Introduction and design
01:47:51 - Part 1: Handling Text
02:22:38 - Drawing a Point 🍒
03:14:40 - Drawing a Line 🍒
03:57:38 - Drawing a Rectangle 🍒
04:38:58 - Drawing 2D Graphics 🍒
04:48:02 - Troubleshooting Memory
05:06:09 - Success 🍒
05:08:00 - Part 2: .BMP File Format
05:37:30 - Parsing Image Header
06:39:40 - Draw Image on Screen 🍒
08:15:48 - A printf() Function
09:45:15 - Improving printf() 🍒
10:30:51 - Color Palettes 🍒
Рекомендации по теме
Комментарии
Автор

🍒 What GUI feature do you want to code next?

dr-Jonas-Birch
Автор

man your efforts are so motivating, will try to complete atleast 2 projects

nvm_akshat
Автор

Again thank you so much for this wonderful tutorial.

umndrk
Автор

dr jonas == king of tutorial of c in youtube

mohammedtalbi
Автор

This channel is like a treasure chest. Very big treasure chest.

kamilziemian
Автор

I dont learn C or C++ but i love your channel

MustaPha-si
Автор

Ich habe dieses Video bei der Arbeit gesehen und jetzt lachen auch meine Kollegen. Eine tolle Möglichkeit, die Stimmung im Büro zu heben😚

NguyễnThyVânân
Автор

Appreciate the detailed breakdown! I need some advice: I have a SafePal wallet with USDT, and I have the seed phrase. (air carpet target dish off jeans toilet sweet piano spoil fruit essay). What's the best way to send them to Binance?

Catherina-dp
Автор

hey sir, i'm very interested in your video and low level programming, i'm always want to do everything from scratch but i dont know where to learn those knowledge like this, i saw you have a C tutorial series but not advance stuff like this, can you make a series teaching low level stuff like system programming(os, computer network, ..) it's very valuable for me

trungao
Автор

Plase I need learn windows crypto api and windows api can you make vedio for this

oussamaQtx
join shbcf.ru