Saga3D API Documentation
1.0-RC4
|
Go to the documentation of this file.
5 #ifndef __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
6 #define __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
43 virtual void onEvent(
const SDL_Event& event)
override
69 virtual void setStartTime(std::uint32_t time,
bool resetPauseTime =
true)
95 virtual void setEnabled(
bool enabled, std::uint32_t timeNow = 0)
138 #endif // __I_SCENE_NODE_ANIMATOR_H_INCLUDED__
Animates a scene node. Can animate position, rotation, material, and so on.
virtual std::uint32_t getStartTime() const
Get the starttime.
Type for list of scene node animators.
@ UNKNOWN
Unknown scene node animator.
virtual bool hasFinished(void) const
Returns if the animator has finished.
virtual void animateNode(ISceneNode &node, const float time)=0
Animates a scene node.
std::uint32_t StartTime
Last time setEnabled(false) was called with a timer > 0.
virtual void setStartTime(std::uint32_t time, bool resetPauseTime=true)
Reset a time-based movement by changing the starttime.
std::uint32_t PauseTimeSum
Only enabled animators are updated.
std::uint32_t PauseTimeStart
Sum up time which the animator was disabled.
Interface of an object which can receive events (SDL_Event*)
virtual void onEvent(const SDL_Event &event) override
Creates a clone of this animator.
virtual E_SCENE_NODE_ANIMATOR_TYPE getType() const
Returns type of the scene node animator.
virtual void setEnabled(bool enabled, std::uint32_t timeNow=0)
Sets the enabled state of this element.
E_SCENE_NODE_ANIMATOR_TYPE
An enumeration for all types of built-in scene node animators.
virtual bool isEnabled() const