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.
-
12:09
Tactical Advisor
13 hours agoSmith & Wesson Shield Plus Carry Comp
-
4:35:25
Father Russell
6 hours agoDelta Force | Not A Woman? | Mad Martigan Time
21.2K1 -
3:29:42
BrookieMonster
13 hours ago $41.32 earnedChristmas Stream: Marvel Rivals with CallmeSeags 🎄
151K29 -
LIVE
TheSaf3Hav3n
3 days ago| RUMBLES FIRST SUBATHON IS HERE!!! | DAY 4 |
715 watching -
6:54
Dr. Nick Zyrowski
55 minutes agoHIGH PROTEIN DIET Fixes Your Metabolism! - Weight Loss Not Required
2 -
3:14:33
Joe Donuts Gaming
15 hours ago🟢 Live : Christmas is Here!! | Fortnite, Caroling, Light Tours and Donos !!
77.1K15 -
6:02:38
CLUJ
14 hours agoCHRISTMAS EVENING HYPE!! LETS HAVE FUN GAMING!!
63.6K7 -
9:57:19
a12cat34dog
16 hours agoI AM FINALLY BACK :: PUBG: BATTLEGROUNDS :: RUMBLE NOW HAS GIFTED SUBS!!! [Merry Christmas] {18+}
51.1K8 -
3:55:42
STARM1X16
15 hours agoMerry Christmas Fortnite
125K11 -
2:45:33
Sgtfinesse
15 hours agoMerry Christmas Night
90.4K19