Material's shader parameter animation instance.
More...
#include <Urho3D/Graphics/Material.h>
|
|
| ShaderParameterAnimationInfo (Material *material, const ea::string &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed) |
| | Construct.
|
| |
|
| ShaderParameterAnimationInfo (const ShaderParameterAnimationInfo &other) |
| | Copy construct.
|
| |
|
| ~ShaderParameterAnimationInfo () override |
| | Destruct.
|
| |
|
const ea::string & | GetName () const |
| | Return shader parameter name.
|
| |
|
| ValueAnimationInfo (ValueAnimation *animation, WrapMode wrapMode, float speed) |
| | Construct without target object.
|
| |
|
| ValueAnimationInfo (Object *target, ValueAnimation *animation, WrapMode wrapMode, float speed) |
| | Construct with target object.
|
| |
|
| ValueAnimationInfo (const ValueAnimationInfo &other) |
| | Copy construct.
|
| |
|
| ~ValueAnimationInfo () override |
| | Destruct.
|
| |
|
bool | Update (float timeStep) |
| | Advance time position and apply. Return true when the animation is finished. No-op when the target object is not defined.
|
| |
|
bool | SetTime (float time) |
| | Set time position and apply. Return true when the animation is finished. No-op when the target object is not defined.
|
| |
|
void | SetWrapMode (WrapMode wrapMode) |
| | Set wrap mode.
|
| |
|
void | SetSpeed (float speed) |
| | Set speed.
|
| |
|
Object * | GetTarget () const |
| | Return target object.
|
| |
|
ValueAnimation * | GetAnimation () const |
| | Return animation.
|
| |
|
WrapMode | GetWrapMode () const |
| | Return wrap mode.
|
| |
|
float | GetTime () const |
| | Return time position.
|
| |
|
float | GetSpeed () const |
| | Return speed.
|
| |
|
| RefCounted () |
| | Construct. Allocate the reference count structure and set an initial self weak reference.
|
| |
|
virtual | ~RefCounted () |
| | Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
|
| |
|
| RefCounted (const RefCounted &rhs)=delete |
| | Prevent copy construction.
|
| |
|
RefCounted & | operator= (const RefCounted &rhs)=delete |
| | Prevent assignment.
|
| |
| int | AddRef () |
| |
| int | ReleaseRef () |
| |
| int | Refs () const |
| |
| int | WeakRefs () const |
| |
|
RefCount * | RefCountPtr () const |
| | Return pointer to the reference count structure.
|
| |
|
bool | HasScriptObject () const |
| | Return true if script runtime object wrapping this native object exists.
|
| |
|
bool | IsScriptStrongRef () const |
| | Return true if script reference is strong.
|
| |
|
| void | ApplyValue (const Variant &newValue) override |
| | Apply new animation value to the target object. Called by Update().
|
| |
|
float | CalculateScaledTime (float currentTime, bool &finished) const |
| | Calculate scaled time.
|
| |
| void | GetEventFrames (float beginTime, float endTime, ea::vector< const VAnimEventFrame * > &eventFrames) |
| | Return event frames.
|
| |
|
|
ea::string | name_ |
| | Shader parameter name.
|
| |
Material's shader parameter animation instance.
◆ ApplyValue()
| void Urho3D::ShaderParameterAnimationInfo::ApplyValue |
( |
const Variant & |
newValue | ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files:
- Urho3D/Graphics/Material.h
- Urho3D/Graphics/Material.cpp