Hi,
I have a C++ warpper around the Spine C runtime.
I need an idea about how to approach this problem I'm having.
The callback function takes a pointer to a static function only.
Some of my spine based game objects have multiple instances on the screen.
I am using callbacks such as animation X end or animation y + event, etc.
The problem is that when one object activates the callback, all the other ones are notified as well, and react accordingly.
I know it is not possible to assign a member function when a static function is expected. If it were possible it would solve my problem.
Is there a way for each individual instance to have it's own callback function, working of course with my existing spine C runtimes?
Thanks
C++, xCode
SFML with Spine C runtimes
Spine pro version 3.2.01