SceneColor.h 621 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef EVENT_SCENE_COLOR_H
  2. #define EVENT_SCENE_COLOR_H
  3. #include "Event.h"
  4. #include "Math/Math.h"
  5. namespace Event {
  6. /// Change the scene color
  7. class SceneColor: public Event
  8. {
  9. public:
  10. /// Constructor
  11. SceneColor(float startTime, float duration, const Vec3& finalColor);
  12. /// Copy constructor
  13. SceneColor(const SceneColor& b);
  14. /// Copy
  15. SceneColor& operator=(const SceneColor& b);
  16. private:
  17. Vec3 originalColor; ///< Original scene color. The constructor sets it
  18. Vec3 finalColor;
  19. /// Implements Event::updateSp
  20. void updateSp(float prevUpdateTime, float crntTime);
  21. };
  22. } // end namespace
  23. #endif