![]() |
Gorgon Game Engine
|
This class provides rectangular animations. More...
Public Types | |
using | AnimationType = RectangularAnimation |
![]() | |
using | AnimationType = Animation |
![]() | |
using | AnimationType = Base |
Public Member Functions | |
virtual RectangularAnimation & | 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 RectangularAnimation & | 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... | |
This class provides rectangular animations.
using AnimationType = RectangularAnimation |
|
overridepure virtual |
This function should create and animation and depending on the create parameter, it should create its own timer.
Implements AnimationProvider.
Implemented in BlankImage, Bitmap, ImageProvider, DiscreteAnimationProvider, TintedObject, StackedObject, ScalableObject, Rectangle, MaskedObject, Line, basic_RectangleProvider< A_ >, basic_LineProvider< A_ >, EmptyImage, and 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 AnimationProvider.
Implemented in DiscreteAnimationProvider, TintedObject, StackedObject, ScalableObject, Rectangle, MaskedObject, Line, basic_RectangleProvider< A_ >, basic_LineProvider< A_ >, EmptyImage, basic_StorageInjection< Graphics::DiscreteAnimationProvider >, BlankImage, Bitmap, and ImageProvider.
int GetHeight | ( | ) | const |
References RectangularAnimationProvider::GetSize(), and basic_Size< T_ >::Height.
|
pure virtual |
int GetWidth | ( | ) | const |
References RectangularAnimationProvider::GetSize(), and basic_Size< T_ >::Width.
|
overridepure virtual |
This function moves this animation provider into a new provider.
Ownership of this new object belongs to the caller and this object could be destroyed safely.
Implements AnimationProvider.
Implemented in ITintedObjectProvider, IStackedObjectProvider, IScalableObjectProvider, IRectangleProvider, IMaskedObjectProvider, ILineProvider, TintedObject, StackedObject, ScalableObject, Rectangle, MaskedObject, Line, EmptyImage, BlankImage, TextureProvider, basic_RectangleProvider< A_ >, basic_LineProvider< A_ >, Bitmap, and basic_StorageInjection< Graphics::DiscreteAnimationProvider >.