AnimationEvent.h 469 B

123456789101112131415161718192021222324
  1. #include "anki/event/Event.h"
  2. #include "anki/resource/Resource.h"
  3. namespace anki {
  4. /// @addtogroup Events
  5. /// @{
  6. /// Event controled by animation resource
  7. class AnimationEvent: public Event
  8. {
  9. public:
  10. AnimationEvent(EventManager* manager, const AnimationResourcePointer& anim,
  11. SceneNode* movableSceneNode);
  12. /// Implements Event::update
  13. void update(F32 prevUpdateTime, F32 crntTime);
  14. private:
  15. AnimationResourcePointer anim;
  16. };
  17. /// @}
  18. } // end namespace anki