|
U3D
Open-source, cross-platform 2D and 3D game engine built in C++
|
Material's shader parameter animation instance. More...
#include </var/dev/u3d/stable/Source/Urho3D/Graphics/Material.h>
Public Member Functions | |
| ShaderParameterAnimationInfo (Material *material, const String &name, ValueAnimation *attributeAnimation, WrapMode wrapMode, float speed) | |
| Construct. | |
| ShaderParameterAnimationInfo (const ShaderParameterAnimationInfo &other) | |
| Copy construct. | |
| ~ShaderParameterAnimationInfo () override | |
| Destruct. | |
| const String & | GetName () const |
| Return shader parameter name. | |
Public Member Functions inherited from Urho3D::ValueAnimationInfo | |
| 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. | |
Public Member Functions inherited from Urho3D::RefCounted | |
| 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. | |
| void | AddRef () |
| void | ReleaseRef () |
| int | Refs () const |
| int | WeakRefs () const |
| RefCount * | RefCountPtr () |
| Return pointer to the reference count structure. | |
Protected Member Functions | |
| void | ApplyValue (const Variant &newValue) override |
| Apply new animation value to the target object. Called by Update(). More... | |
Protected Member Functions inherited from Urho3D::ValueAnimationInfo | |
| virtual void | ApplyValue (const Variant &newValue) |
| Apply new animation value to the target object. Called by Update(). More... | |
| float | CalculateScaledTime (float currentTime, bool &finished) const |
| Calculate scaled time. | |
| void | GetEventFrames (float beginTime, float endTime, PODVector< const VAnimEventFrame * > &eventFrames) |
| Return event frames. More... | |
Private Attributes | |
| String | name_ |
| Shader parameter name. | |
Additional Inherited Members | |
Protected Attributes inherited from Urho3D::ValueAnimationInfo | |
| WeakPtr< Object > | target_ |
| Target object. | |
| SharedPtr< ValueAnimation > | animation_ |
| Attribute animation. | |
| WrapMode | wrapMode_ |
| Wrap mode. | |
| float | speed_ |
| Animation speed. | |
| float | currentTime_ |
| Current time. | |
| float | lastScaledTime_ |
| Last scaled time. | |
Material's shader parameter animation instance.
|
overrideprotectedvirtual |
Apply new animation value to the target object. Called by Update().
Reimplemented from Urho3D::ValueAnimationInfo.