Saga3D API Documentation  1.0-RC4
saga::scene::ISkinnedMesh Class Referenceabstract

Interface for using some special functions of Skinned meshes. More...

#include <ISkinnedMesh.h>

Inheritance diagram for saga::scene::ISkinnedMesh:
saga::scene::IAnimatedMesh saga::scene::IMesh

Public Member Functions

virtual std::uint32_t getBoneCount () const =0
 Gets joint count. More...
 
virtual glm::mat4 getBoneTransform (const std::uint32_t boneID) const =0
 Gets transformation matrix of bone. More...
 
- Public Member Functions inherited from saga::scene::IAnimatedMesh
virtual std::uint32_t getFrameCount () const =0
 Gets the frame count of the animated mesh. More...
 
virtual float getAnimationSpeed () const =0
 Gets the animation speed of the animated mesh. More...
 
virtual void setAnimationSpeed (float fps)=0
 Sets the animation speed of the animated mesh. More...
 
virtual void setAnimation (const uint32_t index)=0
 Set active animation. More...
 
virtual void onAnimate (const float time)=0
 Animate the mesh. More...
 
- Public Member Functions inherited from saga::scene::IMesh
void setID (const ID id)
 
ID getID () const
 
virtual void addMeshBuffer (std::unique_ptr< IMeshBuffer > buf)=0
 adds a MeshBuffer More...
 
virtual std::uint32_t getMeshBufferCount () const =0
 Get the amount of mesh buffers. More...
 
virtual IMeshBuffergetMeshBuffer (std::uint32_t nr=0)=0
 Get pointer to a mesh buffer. More...
 
virtual const core::aabbox3d< float > & getBoundingBox () const =0
 Get an axis aligned bounding box of the mesh. More...
 
virtual void setBoundingBox (const core::aabbox3df &box)=0
 Set user-defined axis aligned bounding box. More...
 
virtual E_MESH_TYPE getMeshType () const =0
 

Additional Inherited Members

- Protected Attributes inherited from saga::scene::IMesh
ID MeshID = INVALID_ID
 ID of this mesh. More...
 

Detailed Description

Interface for using some special functions of Skinned meshes.

Definition at line 12 of file ISkinnedMesh.h.

Member Function Documentation

◆ getBoneCount()

virtual std::uint32_t saga::scene::ISkinnedMesh::getBoneCount ( ) const
pure virtual

Gets joint count.

Returns
Amount of joints in the skeletal animated mesh.

◆ getBoneTransform()

virtual glm::mat4 saga::scene::ISkinnedMesh::getBoneTransform ( const std::uint32_t  boneID) const
pure virtual

Gets transformation matrix of bone.

Returns
4x4 matrix representing bone transformation in current animation.

The documentation for this class was generated from the following file: