Event System in C++
Members - Reputation: 105
Posted 09 November 2012 - 04:05 PM
I was wondering if anyone can recommend a good library that allows me to pass events from object to object. I am used to using the one in Objective C or as3 so I am not sure if there is something similar to that is c++ already available.
Crossbones+ - Reputation: 4282
Posted 09 November 2012 - 04:18 PM
You might want to take a look at the Observer Pattern which is a robust and popular way of handling events. This pattern is used in Model-View-Controller systems, which are often used for user interfaces, but they are applicable in other fields as well.
I gets all your texture budgets!
Senior Moderators - Reputation: 17437
Posted 09 November 2012 - 04:57 PM
However, Objective-C has a messaging system that is very different from C++ function calls. You may have to describe in more detail what you are trying to achieve, and we can suggest other alternatives.
Members - Reputation: 517
Posted 09 November 2012 - 06:53 PM
Edited by ApEk, 09 November 2012 - 06:53 PM.