Lysa  0.0
Lysa 3D Engine
Animation Class Reference

Detailed Description

Holds data that can be used to animate anything.

+ Inheritance diagram for Animation:

Public Member Functions

 Animation (uint32 tracksCount, const std::string &name)
 
 Animation (const Animation &anim)
 
void setLoopMode (const AnimationLoopMode mode)
 
auto getLoopMode () const
 
auto getTracksCount () const
 
auto & getTrack (const uint32 index)
 
const auto & getName () const
 
const auto & getTracks () const
 
- Public Member Functions inherited from UnmanagedResource
 UnmanagedResource ()
 
 UnmanagedResource (const Resource &other)
 
- Public Member Functions inherited from Resource
bool operator== (const Resource &other) const
 
 Resource () = default
 
 Resource (const unique_id id)
 
virtual ~Resource () = default
 

Additional Inherited Members

- Public Attributes inherited from Resource
unique_id id {INVALID_ID}
 

Constructor & Destructor Documentation

Animation ( uint32  tracksCount,
const std::string &  name 
)

Creates an Animation

Parameters
tracksCountnumber of tracks to allocate
nameThe name of the animation
Animation ( const Animation &  anim)

Member Function Documentation

auto getLoopMode ( ) const
inline

Returns the looping mode

const auto& getName ( ) const
inline

Returns the name of the animation

auto& getTrack ( const uint32  index)
inline

Returns a given track

const auto& getTracks ( ) const
inline

Returns all tracks

auto getTracksCount ( ) const
inline

Returns the number of tracks

void setLoopMode ( const AnimationLoopMode  mode)
inline

Sets the looping mode