Rebel Fork Framework
|
State and parameters of playing Animation. More...
#include <Urho3D/Graphics/AnimationController.h>
Public Member Functions | |
AnimationParameters (Animation *animation) | |
AnimationParameters (Animation *animation, float minTime, float maxTime) | |
AnimationParameters (Context *context, const ea::string &animationName) | |
AnimationParameters (Context *context, const ea::string &animationName, float minTime, float maxTime) | |
bool | RemoveDelayed (float fadeTime) |
Helper utility to fade animation out and remove it later. | |
AnimationParameters & | Looped () |
AnimationParameters & | StartBone (ea::string_view startBone) |
AnimationParameters & | Layer (unsigned layer) |
AnimationParameters & | Time (float time) |
AnimationParameters & | TimeRange (float minTime, float maxTime) |
AnimationParameters & | Additive () |
AnimationParameters & | Weight (float weight) |
AnimationParameters & | Speed (float speed) |
AnimationParameters & | AutoFadeOut (float fadeOut) |
AnimationParameters & | KeepOnCompletion () |
AnimationParameters & | KeepOnZeroWeight () |
Animation * | GetAnimation () const |
StringHash | GetAnimationName () const |
const WrappedScalar< float > & | GetAnimationTime () const |
float | GetTime () const |
void | SetTime (float time) |
void | SetTimeRange (float minTime, float maxTime) |
void | SetDefaultTimeRange () |
WrappedScalarRange< float > | Update (float scaledTimeStep) |
Public Attributes | |
unsigned | instanceIndex_ {} |
bool | removed_ {} |
Internal flags for easier algorithms. Never stored between API calls. | |
bool | merged_ {} |
bool | looped_ {} |
bool | removeOnCompletion_ {true} |
unsigned | layer_ {} |
AnimationBlendMode | blendMode_ {} |
ea::string | startBone_ |
float | autoFadeOutTime_ {} |
float | speed_ {1.0f} |
bool | removeOnZeroWeight_ {} |
float | weight_ {1.0f} |
float | targetWeight_ {1.0f} |
float | targetWeightDelay_ {} |
Static Public Attributes | |
static const AnimationParameters | EMPTY {} |
Empty AnimationParameters. | |
Private Attributes | |
Animation * | animation_ {} |
StringHash | animationName_ |
WrappedScalar< float > | time_ {0.0f, 0.0f, M_LARGE_VALUE} |
static constexpr unsigned | NumVariants = 15 |
void | ToVariantSpan (ea::span< Variant > variants) const |
void | Serialize (Serializer &dest) const |
bool | IsMergeableWith (const AnimationParameters &rhs) const |
bool | operator== (const AnimationParameters &rhs) const |
bool | operator!= (const AnimationParameters &rhs) const |
static AnimationParameters | FromVariantSpan (Context *context, ea::span< const Variant > variants) |
static AnimationParameters | Deserialize (Animation *animation, Deserializer &src) |
State and parameters of playing Animation.
|
inline |
Getters for read-only properties. Use constructor to set Animation to the parameters.
|
inline |
Time operations.
AnimationParameters & Urho3D::AnimationParameters::Looped | ( | ) |
Factory helpers.
|
private |
bool Urho3D::AnimationParameters::looped_ {} |
Static animation parameters that change rarely.
|
staticconstexpr |
Serialization, test and misc utilities.
float Urho3D::AnimationParameters::speed_ {1.0f} |
Dynamic animation parameters that change often.