![]() |
Lysa
0.0
Lysa 3D Engine
|
Holds data that can be used to animate anything.
Inheritance diagram for Animation:Classes | |
| struct | Track |
| struct | TrackKeyValue |
Public Typedefs | |
| using | Value = float4 |
Public Member Functions | |
| Animation (const std::string &name) | |
| Animation (uint32 tracksCount, const std::string &name) | |
| void | setLoopMode (const AnimationLoopMode mode) |
| auto | getLoopMode () const |
| auto | getTracksCount () const |
| auto & | getTrack (const uint32 index) |
| TrackKeyValue | getInterpolatedValue (uint32 trackIndex, double currentTimeFromStart, bool reverse=false) const |
Public Member Functions inherited from Resource | |
| Resource (const std::string &name) | |
| auto | getId () const |
| const auto & | getName () const |
| bool | operator== (const Resource &other) const |
| bool | operator< (const Resource &other) const |
| bool | operator> (const Resource &other) const |
| virtual std::shared_ptr< Resource > | duplicate () const |
Public Member Functions inherited from Object | |
| void | connect (const Signal::signal &name, const Signal::Handler &handler) |
| void | connect (const Signal::signal &name, const std::function< void ()> &handler) |
| void | emit (const Signal::signal &name, void *params=nullptr) |
| virtual std::string | toString () const |
| Object () = default | |
| virtual | ~Object () = default |
| using Value = float4 |
| Animation | ( | const std::string & | name | ) |
Creates an Animation
| name | resource name. |
| Animation | ( | uint32 | tracksCount, |
| const std::string & | name | ||
| ) |
Creates an Animation
| tracksCount | number of tracks to allocate |
| name | resource name. |
| TrackKeyValue getInterpolatedValue | ( | uint32 | trackIndex, |
| double | currentTimeFromStart, | ||
| bool | reverse = false |
||
| ) | const |
Returns the interpolated value at the given time (in seconds, from the start of the animation) for a track.
|
inline |
Returns the looping mode
|
inline |
Returns a given track
|
inline |
Returns the number of tracks
|
inline |
Sets the looping mode