28#include "CAnimationTrack.h"
40 class SKYLICHT_API CAnimationClip
91 if (i->Name == anim->Name)
140 return Duration * 1000.0f / baseFps;
Represents an animation clip containing multiple animation tracks for different entities.
Definition CAnimationClip.h:41
float getRealTimeLength(float baseFps=30.0f)
Gets the real-time length of the clip in milliseconds based on a target FPS.
Definition CAnimationClip.h:138
std::map< std::string, SEntityAnim * > AnimNameToInfo
Map of entity animations indexed by entity name.
Definition CAnimationClip.h:56
float Duration
Duration of the clip in seconds.
Definition CAnimationClip.h:47
SEntityAnim * getAnimOfEntity(const std::string &sceneNodeName)
Gets an entity animation by the name of the scene node/entity.
Definition CAnimationClip.h:128
void addAnim(SEntityAnim *anim)
Adds an entity animation to the clip.
Definition CAnimationClip.h:87
std::string AnimName
The name of the animation clip.
Definition CAnimationClip.h:44
void releaseAllAnim()
Releases and deletes all entity animations in this clip.
Definition CAnimationClip.h:73
SEntityAnim * getAnimOfEntity(int i)
Gets an entity animation by index.
Definition CAnimationClip.h:118
bool Loop
Whether the clip should loop during playback.
Definition CAnimationClip.h:50
int getNodeAnimCount()
Gets the number of entity animations (tracks) in the clip.
Definition CAnimationClip.h:108
std::vector< SEntityAnim * > AnimInfo
List of entity animations (tracks) within this clip.
Definition CAnimationClip.h:53
Container for PRS (Position, Rotation, Scale) animation data.
Definition CAnimationTrack.h:157
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29
Definition CAnimationClip.h:33