![]() |
Gorgon Game Engine
|
This class provides discrete and rectangular animation which is suitable for bitmap and texture animations. More...
Public Types | |
using | AnimationType = DiscreteAnimation |
![]() | |
using | AnimationType = RectangularAnimation |
![]() | |
using | AnimationType = Animation |
![]() | |
using | AnimationType = Base |
Public Member Functions | |
virtual DiscreteAnimation & | CreateAnimation (bool create=true) const override=0 |
This function should create and animation and depending on the create parameter, it should create its own timer. More... | |
virtual DiscreteAnimation & | CreateAnimation (Gorgon::Animation::ControllerBase &timer) const override=0 |
This function should create a new animation with the given controller and if owner parameter is set to true, it should assume ownership of the controller. More... | |
![]() | |
int | GetHeight () const |
virtual Geometry::Size | GetSize () const =0 |
int | GetWidth () const |
virtual RectangularAnimationProvider & | MoveOutProvider () override=0 |
This function moves this animation provider into a new provider. More... | |
![]() | |
virtual | ~AnimationProvider () |
![]() | |
virtual | ~Provider () |
Virtual destructor. More... | |
![]() | |
virtual void | Add (const Frame &frame)=0 |
Adds a frame to the end of the animation. More... | |
virtual void | Clear ()=0 |
Clears all frames from this animation. More... | |
virtual const Frame & | FrameAt (int index) const =0 |
Returns the frame at specific point. More... | |
virtual int | GetCount () const =0 |
Returns number of frames. More... | |
virtual unsigned | GetDuration () const =0 |
Returns the duration of the animation. More... | |
virtual unsigned | GetDuration (unsigned frame) const =0 |
Returns the duration of the given frame. More... | |
virtual void | Insert (const Frame &frame, int before)=0 |
Adds a frame to the specified point the animation. More... | |
virtual void | MoveBefore (unsigned index, int before)=0 |
Moves the frame with the given index to the specified point the animation. More... | |
const Frame & | operator[] (int index) const |
Returns the frame at specific point. More... | |
virtual void | Remove (unsigned index)=0 |
Removes the given frame. More... | |
virtual unsigned | StartOf (unsigned frame) const =0 |
Returns the starting time of the given frame. More... | |
This class provides discrete and rectangular animation which is suitable for bitmap and texture animations.
using AnimationType = DiscreteAnimation |
|
overridepure virtual |
This function should create and animation and depending on the create parameter, it should create its own timer.
Implements RectangularAnimationProvider.
Implemented in basic_StorageInjection< Graphics::DiscreteAnimationProvider >.
|
overridepure virtual |
This function should create a new animation with the given controller and if owner parameter is set to true, it should assume ownership of the controller.
Implements RectangularAnimationProvider.
Implemented in basic_StorageInjection< Graphics::DiscreteAnimationProvider >.