Premium Only Content

Function Pointers (InputManager Class) | C++ in 2021
In this lesson, I guide you through using c ++ function pointer and lambdas to store and invoke callbacks from anywhere in your applications.
This is demonstrated through a mock Input Manager that you might find in a game engine implementation.
We start off by mocking out the manager, support accepting c ++ function pointers and then enhancing the class to accept a wider set of functions using std::function and lambdas.
Professional C++ by Marc Gregoire: https://amzn.to/3h4HGmW
Chapters:
0:00 Intro
1:10 Designing the implementation
3:25 Creating the InputManager class
6:10 C Function Pointer
7:54 Continuing InputManager Implementation
11:15 Demonstrating Callbacks (Function Pointer)
15:20 std::function
16:50 std::bind - Binding object member function
23:45 C++ Lambdas (introduction, templates, auto)
31:45 Bound Lambdas (capturing `this`)
34:01 BONUS -- Blocking Input layers
___
Godot Dragonbones is a custom Godot engine build with the godot_dragonbones module that I am maintaining and distributing. It provides full-featured, 2D Skeletal animation support for the DragonBones API; a free, open source alternative to Spine: 2D Skeletal Animation.
PLEASE SUBSCRIBE!
https://cutt.ly/zdCef9v
JOIN OUR DISCORD:
https://discord.gg/bXMkFsg
DONATE HERE:
https://cutt.ly/zdCnvmj
GET GODOT DRAGONBONES HERE (Windows, Linux, Mac):
http://godotdragonbones.com
Godot-Dragonbones module included with this build of engine:
https://github.com/mauville-technologies/godot-dragonbones
If you're interested in using this in your projects but would like more guidance, leave a comment letting me know what you'd like me to explain next.
-
1:37:39
Ozzadar - Game Development
3 years agoVulkan Vertex + Index Buffers | Cross Platform Game Engine Development
772 -
13:14
Michael Button
23 hours ago $0.12 earnedThere’s a Giant Hole in Human History
2975 -
9:23
Russell Brand
19 hours agoThe TRUTH Behind Stephen Colbert's Downfall
36.6K67 -
17:47
T-SPLY
1 day agoDems Fume: L.A Protesters Clash With Federal Agents And National Guard...Again!
6249 -
LIVE
Lofi Girl
2 years agolofi hip hop radio 📚 - beats to relax/study to
784 watching -
22:50
marcushouse
1 day ago $0.26 earnedStarship Tech Update Reveal, and Fire Time Already!? 🔥
5384 -
53:17
The Car Guy Online
20 hours ago $0.06 earnedNextGen Engineer Reveals How GM Is Quietly Fixing 10-Speed Problems.
63 -
1:26:10
Squaring The Circle, A Randall Carlson Podcast
22 hours ago#057 What REALLY Happened During The Younger Dryas - Squaring The Circle
1.57K2 -
14:53
Degenerate Jay
1 day agoThe Henry Cavill Superman Return - James Gunn Was Blindsided?
2282 -
9:02
Freedom Frontline
1 day agoTucker Carlson Just EXPOSED Why You’ll Never Own a Home Again
44