10 #include <Atoms/Globals.h>
11 #include <Atoms/AnimationClip.h>
82 void registerLoaderCallback(std::function<
AnimationClipPtr(
const char*)>& callback);
98 typedef std::map<std::string, AnimationClipPtr> AnimationClipsMap;
104 AnimationClipsMap m_animationClipsMap;
108 mutable std::mutex m_mutex;
Animation clips manager.
Definition: AnimationClips.h:23
std::vector< std::string > animationClipNames()
Get all animation clip names.
bool animationClipExists(const std::string &name)
Check if an animation clip exists.
unsigned int numAnimationClips()
Get number of animation clips.
void clear()
Remove all animation clips.
void removeAnimationClip(const std::string &name)
Remove an animation clip from the map.
AnimationClipPtr addAnimationClip(const std::string &name, const std::string &filePath, bool replace=true)
Add an animation clip to the map.
AnimationClipPtr addAnimationClip(const std::string &name, AnimationClipPtr &clipPtr, bool replace=true)
Add an animation clip to the map.
AnimationClipPtr animationClip(const std::string &name)
Return an animation clips.
AnimationClipCPtr animationClip(const std::string &name) const
Return an animation clips.
static AnimationClips & instance()
Singleton access.
Atoms namespace.
Definition: Agent.h:29
AtomsPtr< const AnimationClip > AnimationClipCPtr
animation clip const pointer
Definition: AnimationClip.h:32
AtomsPtr< AnimationClip > AnimationClipPtr
animation clip pointer
Definition: AnimationClip.h:28