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 1:37:39Ozzadar - Game Development3 years agoVulkan Vertex + Index Buffers | Cross Platform Game Engine Development792
- 	
				 LIVE LIVEThe Bubba Army21 hours agoIs Killing The New Trend??! - Bubba the Love Sponge® Show | 10/31/253,090 watching
- 	
				 2:25:16 2:25:16Demons Row11 hours ago $1.47 earnedEx Hells Angels MC President: Charles “Peewee”Goldsmith (Full Interview)5.07K3
- 	
				 3:35 3:35Gamazda10 hours ago $2.22 earnedThe Darkest Piano Theme?6.83K16
- 	
				 13:42 13:42Nate The Lawyer18 hours ago $2.36 earnedINSANE Judge REMOVED For Lying Under Oath, Insurance Fraud & Stolen Valor6.53K14
- 	
				 38:32 38:32Code Blue Cam1 day agoHow Police Stopped a Potential Church Massacre...35.1K12
- 	
				 24:26 24:26Actual Justice Warrior1 day agoWelfare Queens RAGE OUT Over Food Stamp Cuts11.6K37
- 	
				 3:05:11 3:05:11Inverted World Live10 hours agoThe Halloween Special with Drea De Matteo and Sam Tripoli | Ep. 133358K16
- 	
				 2:57:52 2:57:52Laura Loomer13 hours agoEP154: Naturalized US Navy Medic From GAZA Exposed For Ties To Hamas45.9K29
- 	
				 35:45 35:45Stephen Gardner16 hours ago🔴BREAKING: Election Auditor EXPOSES Democrat Election Fraud Evidence!49.8K73