Make a Game Window with SDL2 and C

Channel:
Subscribers:
1,430
Published on ● Video Link: https://www.youtube.com/watch?v=inF1x0-EYjU



Duration: 18:07
1,042 views
14


The SDL - Simple Directmedia Layer - is a popular library for game development. The open source library has been around for quite a while, being constantly iterated on by a group of awesome maintainers.

In this video, I'm going through the process of going through and creating a game window using SDL2 with the C language.

I don't get too deep into it during this video, but I briefly talk about the concept of "Double Buffering" which is a popular concept when dealing with game development:

Imagine you're drawing a picture on a piece of paper. Now, instead of just using one paper, you have two of them.

Double Buffering works by drawing on one paper, while the other paper is hidden from view. You can take your time, make changes, and create the perfect picture on the first paper without anyone seeing your progress.

When you're done drawing on the first paper, you switch it with the second paper in an instant. Now, the picture you've finished is instantly visible, and you can start working on the first paper again without people seeing your changes happening in real-time.

In the world of computer games, double buffering is used to make sure that what you see on your screen looks smooth and without flickering, especially when it comes to animations. It's like preparing a "hidden" picture while showing another one to the viewer, then quickly swapping them to create a seamless visual experience.

=== LINKS ===
- Project on Github: https://t.ly/_uHnr
- Libsdl.org: https://libsdl.org

Follow me on Twitter: https://twitter.com/eyuzwa

#sdl2 #gamedev #cprogramming







Tags:
sdl2 game development
sdl2 tutorial
learn sdl2
basic sdl2 project
sdl2 with c
sdl2 game programming
windows game programming
windows game programming with c