Saga3D API Documentation
1.0-RC4
|
Go to the documentation of this file. 1 #ifndef __I_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
2 #define __I_ANIMATED_MESH_SCENE_NODE_H_INCLUDED__
12 class IAnimatedMeshSceneNode;
37 const std::shared_ptr<IMesh>& mesh,
38 const std::shared_ptr<ISceneNode>& parent,
39 const std::shared_ptr<ISceneManager> mgr,
40 const glm::vec3& position = glm::vec3(0,0,0),
41 const glm::vec3& rotation = glm::vec3(0,0,0),
42 const glm::vec3& scale = glm::vec3(1.0f, 1.0f, 1.0f))
64 virtual bool setFrameLoop(std::int32_t begin, std::int32_t end) = 0;
109 virtual void setLoopMode(
bool playAnimationLooped) = 0;
virtual std::int32_t getStartFrame() const =0
Returns the current start frame number.
virtual void setAnimationSpeed(float framesPerSecond)=0
Sets the speed with which the animation is played.
virtual bool getLoopMode() const =0
returns the current loop mode
A scene node displaying a static mesh.
virtual ~IAnimatedMeshSceneNode()
Destructor.
Scene node capable of displaying an animated mesh.
virtual void setCurrentFrame(float frame)=0
Sets the current frame number.
virtual bool setFrameLoop(std::int32_t begin, std::int32_t end)=0
Sets the frame numbers between the animation is looped.
virtual void setAnimationEndCallback(IAnimationEndCallBack *callback=0)=0
Sets a callback interface which will be called if an animation playback has ended.
virtual void setLoopMode(bool playAnimationLooped)=0
Sets looping mode which is on by default.
virtual void OnAnimationEnd(IAnimatedMeshSceneNode *node)=0
Will be called when the animation playback has ended.
virtual std::uint32_t getBoneCount() const =0
Get a pointer to a joint in the mesh (if the mesh is a bone based mesh).
virtual float getAnimationSpeed() const =0
Gets the speed with which the animation is played.
virtual float getFrameNumber() const =0
Returns the currently displayed frame number.
Callback interface for catching events of ended animations.
virtual std::int32_t getEndFrame() const =0
Returns the current end frame number.
IAnimatedMeshSceneNode(const std::shared_ptr< IMesh > &mesh, const std::shared_ptr< ISceneNode > &parent, const std::shared_ptr< ISceneManager > mgr, const glm::vec3 &position=glm::vec3(0, 0, 0), const glm::vec3 &rotation=glm::vec3(0, 0, 0), const glm::vec3 &scale=glm::vec3(1.0f, 1.0f, 1.0f))
Constructor.