Urho3D::Spriter::SpriterInstance Class Reference

Spriter instance. More...

#include <SpriterInstance2D.h>

Collaboration diagram for Urho3D::Spriter::SpriterInstance:
[legend]

Public Member Functions

 SpriterInstance (SpriterData *spriteData)
 Constructor with spriter data.
 
 ~SpriterInstance ()
 Destructor.
 
bool SetEntity (int index)
 Set current entity.
 
bool SetEntity (const String &entityName)
 Set current entity.
 
bool SetAnimation (int index, LoopMode loopMode=Default)
 Set current animation.
 
bool SetAnimation (const String &animationName, LoopMode loopMode=Default)
 Set current animation.
 
void setSpatialInfo (const SpatialInfo &spatialInfo)
 Set root spatial info.
 
void setSpatialInfo (float x, float y, float angle, float scaleX, float scaleY)
 Set root spatial info.
 
void Update (float delta_time)
 Update animation.
 
EntityGetEntity () const
 Return current entity.
 
AnimationGetAnimation () const
 
const SpatialInfoGetSpatialInfo () const
 Return root spatial info.
 
const PODVector
< SpatialTimelineKey * > & 
GetTimelineKeys () const
 Return animation result timeline keys.
 

Private Member Functions

void OnSetEntity (Entity *entity)
 Handle set entity.
 
void OnSetAnimation (Animation *animation, LoopMode loopMode=Default)
 Handle set animation.
 
void UpdateMainlineKey ()
 Update mainline key.
 
void UpdateTimelineKeys ()
 Update timeline keys.
 
TimelineKeyGetTimelineKey (Ref *ref) const
 Get timeline key by ref.
 
void Clear ()
 Clear mainline key and timeline keys.
 

Private Attributes

SpriterDataspriterData_
 Spriter data.
 
Entityentity_
 Current entity.
 
Animationanimation_
 Current animation.
 
bool looping_
 Looping.
 
SpatialInfo spatialInfo_
 Root spatial info.
 
float currentTime_
 Current time.
 
MainlineKeymainlineKey_
 Current mainline key.
 
PODVector< SpatialTimelineKey * > timelineKeys_
 Current timeline keys.
 

Detailed Description

Spriter instance.


The documentation for this class was generated from the following files:
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Urho2D/SpriterInstance2D.h
  • /home/travis/build/urho3d/Urho3D/Source/Urho3D/Urho2D/SpriterInstance2D.cpp