|
ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Holds data that can be used to animate anything.
Classes | |
| struct | Track |
| struct | TrackKeyValue |
Public Member Functions | |
| Animation (const string &name) | |
| Animation (uint32_t tracksCount, const string &name) | |
| void | setLoopMode (const AnimationLoopMode mode) |
| auto | getLoopMode () const |
| auto | getTracksCount () const |
| auto & | getTrack (const uint32_t index) |
| TrackKeyValue | getInterpolatedValue (uint32_t trackIndex, double currentTimeFromStart, bool reverse=false) const |
Public Member Functions inherited from Resource | |
| auto | getId () const |
| const auto & | getName () const |
| string | toString () const override |
| virtual 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 function< void ()> &handler) |
| void | emit (const Signal::signal &name, void *params=nullptr) |
|
explicit |
Creates an Animation
| name | resource name. |
|
explicit |
Creates an Animation
| tracksCount | number of tracks to allocate |
| name | resource name. |
|
nodiscard |
Returns the interpolated value at the given time (in seconds, from start of the animation) for a track.
|
nodiscardinline |
Returns the looping mode
|
nodiscardinline |
Returns a given track
|
nodiscardinline |
Returns the number of tracks
|
inline |
Sets the looping mode
1.7.0