Hi all,
My question is very simple : how to trigger a function when an event happens ?
for example I'm playing a sound, how to play another one just when the first will be finished ?
One solution could be to watch regularly by irr::audio::ISound::isFinished () if the sound is finished and so to start the new one, but it's dirty coding.
I'm looking for something like irr::audio::ISound::onEvent( ON_FINISH or ON_OPEN ... , f)
and a f function that would be triggered on event (and use boost::bind to customize the authorized f prototypes, ok ok, I'm extrapolating)
any idea ?