SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::AnimationClip Class Reference

#include <AnimationClip.hpp>

Public Member Functions

void BuildLookup ()
const AnimationChannelFindChannel (const std::string &boneName) const
 O(1) channel lookup by bone name; requires BuildLookup() to have run.
float GetDurationInSeconds () const

Public Attributes

std::vector< AnimationChannelchannels
float duration = 0.0f
std::string name
float ticksPerSecond = 25.0f

Detailed Description

A named set of per-bone keyframe channels sampled by AnimatorComponent.

Definition at line 33 of file AnimationClip.hpp.

Member Function Documentation

◆ BuildLookup()

void Sleak::AnimationClip::BuildLookup ( )
inline

Definition at line 51 of file AnimationClip.hpp.

◆ FindChannel()

const AnimationChannel * Sleak::AnimationClip::FindChannel ( const std::string & boneName) const
inline

O(1) channel lookup by bone name; requires BuildLookup() to have run.

Definition at line 45 of file AnimationClip.hpp.

◆ GetDurationInSeconds()

float Sleak::AnimationClip::GetDurationInSeconds ( ) const
inline

Definition at line 40 of file AnimationClip.hpp.

Member Data Documentation

◆ channels

std::vector<AnimationChannel> Sleak::AnimationClip::channels

Definition at line 38 of file AnimationClip.hpp.

◆ duration

float Sleak::AnimationClip::duration = 0.0f

Definition at line 36 of file AnimationClip.hpp.

◆ name

std::string Sleak::AnimationClip::name

Definition at line 35 of file AnimationClip.hpp.

◆ ticksPerSecond

float Sleak::AnimationClip::ticksPerSecond = 25.0f

Definition at line 37 of file AnimationClip.hpp.