No video

[Ep. 10] Application loop and Event Queue with SDL PollEvent | Introduction to SDL2

  Рет қаралды 7,940

Mike Shah

Mike Shah

Күн бұрын

Пікірлер: 13
@castruyers6552
@castruyers6552 2 жыл бұрын
This is golden! You are a very good teacher.
@MikeShah
@MikeShah 2 жыл бұрын
Thank you! More lessons on SDL2 in the works!
@user-de4mr7uk8d
@user-de4mr7uk8d 2 жыл бұрын
I was searching for copper but I found gold. Thank you for this course!
@MikeShah
@MikeShah 2 жыл бұрын
Cheers, you are most welcome!
@samdavepollard
@samdavepollard 10 ай бұрын
such a useful series many thanks, Mike, for sharing your knowledge
@MikeShah
@MikeShah 10 ай бұрын
Cheers, thank you for the kind words!
@colinobrien3677
@colinobrien3677 2 жыл бұрын
Wonderful tutorial
@MikeShah
@MikeShah 2 жыл бұрын
Thank you for the kind words!
@jupyter_core9411
@jupyter_core9411 Жыл бұрын
hey Mike, first of all thank you for providing these free lessons. I am following this and the opengl guide to make my own voxel engine. A question about the event queue: For tutorial code it makes sense to have all the event handling in a single while loop. In the context of a game (where different inputs may affect different parts of the game engine, for example pressing esc to bring up the pause menu, moving the mouse to control the camera, etc), what is the best approach for handling events and propagating them to different systems?
@MikeShah
@MikeShah Жыл бұрын
Cheers! Depending on your abstraction, you could actually push events onto the SDL Event Queue using 'wiki.libsdl.org/SDL2/SDL_PushEvent' . If you need other abstraction, consider, consider building your own queue to hold a structure with an SDL Event or your other events as needed.
@lexingtonjackson3657
@lexingtonjackson3657 2 жыл бұрын
I"m from india and found your playlist very helpful,I would love to donate to your channel,please share details in order to do so.
@MikeShah
@MikeShah 2 жыл бұрын
Super Thanks should be enabled or otherwise joining as a member 😁 It's appreciated but never required 😇If those options don't work for you, then just keep smashing the like button and subscribe.
@mrdouble
@mrdouble 9 ай бұрын
I compiled and ran but no window is rendered although it says SDL video is good to go. I walked down the tutorials all the way to 6 OpenGL and SDL and that one I got the red screen and mouse movement text.
So I Made My Own Game Engine...
10:19
Chadderbox
Рет қаралды 91 М.
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 16 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Rust and RAII Memory Management - Computerphile
24:22
Computerphile
Рет қаралды 224 М.
why are switch statements so HECKIN fast?
11:03
Low Level Learning
Рет қаралды 404 М.
why do header files even exist?
10:53
Low Level Learning
Рет қаралды 392 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,4 МЛН
Interview with Senior C++ Developer
2:10
Programmers are also human
Рет қаралды 1,1 МЛН
Hack your brain with Obsidian.md
11:53
No Boilerplate
Рет қаралды 1,9 МЛН
Rust Demystified 🪄 Simplifying The Toughest Parts
14:05
Code to the Moon
Рет қаралды 179 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 791 М.