5 #ifndef __I_SCENE_NODE_ANIMATOR_H_INCLUDED__ 6 #define __I_SCENE_NODE_ANIMATOR_H_INCLUDED__ An object which is able to serialize and deserialize its attributes into an attributes object.
Provides a generic interface for attributes and their values and the possibility to serialize them.
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.
virtual void animateNode(ISceneNode *node, u32 timeMs)=0
Animates a scene node.
virtual bool hasFinished(void) const
Returns if the animator has finished.
u32 PauseTimeSum
Only enabled animators are updated.
virtual void deserializeAttributes(io::IAttributes *in, io::SAttributeReadWriteOptions *options=0) _IRR_OVERRIDE_
Reads attributes of the scene node animator.
struct holding data describing options
Unknown scene node animator.
Animates a scene node. Can animate position, rotation, material, and so on.
virtual void addBool(const c8 *attributeName, bool value)=0
Adds an attribute as bool.
virtual void setStartTime(u32 time, bool resetPauseTime=true)
Reset a time-based movement by changing the starttime.
Everything in the Irrlicht Engine can be found in this namespace.
ESCENE_NODE_ANIMATOR_TYPE
An enumeration for all types of built-in scene node animators.
Interface of an object which can receive events.
virtual ISceneNodeAnimator * createClone(ISceneNode *node, ISceneManager *newManager=0)=0
Creates a clone of this animator.
unsigned int u32
32 bit unsigned variable.
virtual void serializeAttributes(io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const _IRR_OVERRIDE_
Writes attributes of the scene node animator.
virtual bool isEventReceiverEnabled() const
Returns true if this animator receives events.
GLenum GLenum GLsizei const GLuint GLboolean enabled
u32 StartTime
Last time setEnabled(false) was called with a timer > 0.
The Scene Manager manages scene nodes, mesh resources, cameras and all the other stuff.
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
void cloneMembers(const ISceneNodeAnimator *toCopyFrom)
virtual void setEnabled(bool enabled, u32 timeNow=0)
Sets the enabled state of this element.
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const
Returns type of the scene node animator.
virtual bool isEnabled() const
u32 PauseTimeStart
Sum up time which the animator was disabled.
virtual irr::u32 getStartTime() const
Get the starttime.
virtual bool OnEvent(const SEvent &event) _IRR_OVERRIDE_
Event receiver, override this function for camera controlling animators.