Urho3D::Animation2D Class Reference

2D Animation. More...

#include <Animation2D.h>

Inheritance diagram for Urho3D::Animation2D:
[legend]
Collaboration diagram for Urho3D::Animation2D:
[legend]

Public Member Functions

 Animation2D (AnimationSet2D *animationSet)
 Construct.
 
virtual ~Animation2D ()
 Destruct.
 
void SetName (const String &name)
 Set name.
 
void SetLength (float length)
 Set length.
 
void SetLooped (bool looped)
 Set looped.
 
AnimationSet2DGetAnimationSet () const
 Return animation set.
 
const StringGetName () const
 Return name.
 
float GetLength () const
 Return length.
 
bool IsLooped () const
 Return looped.
 
unsigned GetNumTracks () const
 Return number of animation tracks.
 
const AnimationTrack2DGetTrack (unsigned index) const
 Return animation track.
 
Vector< AnimationTrack2D > & GetAllTracks ()
 Return all animation tracks (internal use only).
 
- 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.
 
void AddRef ()
 Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting.
 
void ReleaseRef ()
 Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting.
 
int Refs () const
 Return reference count.
 
int WeakRefs () const
 Return weak reference count.
 
RefCountRefCountPtr ()
 Return pointer to the reference count structure.
 

Private Attributes

WeakPtr< AnimationSet2DanimationSet_
 Animation set.
 
String name_
 Name.
 
float length_
 Length.
 
bool looped_
 Looped.
 
Vector< AnimationTrack2Dtracks_
 Animation tracks.
 

Detailed Description


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