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 Development812
- 	
				 1:07:15 1:07:15Candace Show Podcast2 hours agoINFILTRATION: Charlie Kirk Was Being Tracked For Years. | Candace Ep 25628.8K86
- 	
				 LIVE LIVERallied1 hour agoWarzone Solo Challenges then RedSec Domination83 watching
- 	
				 LIVE LIVERed Pill News3 hours agoBoomerang Time - DOJ Investigating BLM Fraud on Red Pill News Live3,491 watching
- 	
				 1:46:14 1:46:14Roseanne Barr4 hours ago“The Over Emotional Are Always Under Informed” | The Roseanne Barr Podcast #12162.9K25
- 	
				 LIVE LIVENerdrotic5 hours ago $5.48 earnedThe WitcHER DOA | Box Office Massacre | Massive Industry Layoffs - Friday Night Tights 3781,362 watching
- 	
				 14:54 14:54IsaacButterfield13 hours ago $0.95 earnedShe Called Out “Creepy Men It Didn’t End Well12.8K33
- 	
				 LIVE LIVELFA TV21 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/31/25683 watching
- 	
				 1:08:42 1:08:42vivafrei4 hours agoEric Swalwell in Trouble Again? RFK Jr. "Reverses Course" on Tylenol & Autism? Arctic Frost & MORE!76K27
- 	
				 1:19:51 1:19:51DeVory Darkins5 hours agoNewsom EXPOSED after latest bombshell and Democrats pulls shocking stunt regarding shutdown75.8K37