Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Coding a GUI in C
127 students

Coding a GUI in C

A mid-level course on writing a 2D graphics engine and a real Graphical User Interface from scratch, in C
Last updated 8/2026
English
English [Auto],

What you'll learn

  • Learn to design the GUI in Adobe Illustrator
  • Learn to create a color scale by utilizing some html and css
  • Learn to program a Graphical User Interface from scratch in C
  • Write your own 2D graphics engine utilizing C and a little low-level Assembly code

Course content

3 sections • 7 lectures • 11h 53m total length
  • Introduction0:34

Requirements

  • You need a basic understanding of the C language, everything else is spelled-out in the course

Description

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 the "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.


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


Enroll today or check out the free samples.

Who this course is for:

  • This course is for mid-level C coders who wish to take the next steps and write their own graphics engine and GUI