![]() |
Gorgon Game Engine
|
This object creates a masked object from two graphics object. More...
Public Types | |
using | AnimationType = typename A_::AnimationType |
Public Member Functions | |
basic_MaskedObjectProvider ()=default | |
Empty constructor. More... | |
basic_MaskedObjectProvider (A_ &&base, A_ &&mask) | |
basic_MaskedObjectProvider (A_ &base, A_ &mask) | |
Filling constructor. More... | |
basic_MaskedObjectProvider (A_ *base, A_ *mask) | |
Filling constructor, nullptr is allowed but not recommended. More... | |
basic_MaskedObjectProvider (basic_MaskedObjectProvider &&other) | |
~basic_MaskedObjectProvider () | |
basic_MaskedObject< A_ > & | CreateAnimation (bool create=true) const override |
basic_MaskedObject< A_ > & | CreateAnimation (Gorgon::Animation::ControllerBase &timer) const override |
RectangularAnimation & | CreateBase () const override |
Creates a base animation without controller. More... | |
RectangularAnimation & | CreateMask () const override |
Creates a mask animation without controller. More... | |
A_ * | GetBase () const |
Returns the base component. Could return nullptr. More... | |
A_ * | GetMask () const |
Returns the mask component. Could return nullptr. More... | |
Geometry::Size | GetSize () const override |
virtual auto | MoveOutProvider () -> decltype(*this) override |
void | OwnProviders () |
Assumes the ownership of the providers. More... | |
void | Prepare () |
Prepares the providers. More... | |
void | SetBase (A_ *value) |
Sets the base provider, ownership semantics will not be changed. More... | |
void | SetMask (A_ *value) |
Sets the mask provider, ownership semantics will not be changed. More... | |
void | SetProviders (A_ &base, A_ &mask) |
Sets the providers in this object. More... | |
This object creates a masked object from two graphics object.
using AnimationType = typename A_::AnimationType |
|
default |
Empty constructor.
basic_MaskedObjectProvider | ( | A_ & | base, |
A_ & | mask | ||
) |
Filling constructor.
basic_MaskedObjectProvider | ( | A_ * | base, |
A_ * | mask | ||
) |
Filling constructor, nullptr is allowed but not recommended.
basic_MaskedObjectProvider | ( | A_ && | base, |
A_ && | mask | ||
) |
basic_MaskedObjectProvider | ( | basic_MaskedObjectProvider< A_ > && | other | ) |
|
override |
|
override |
|
override |
Creates a base animation without controller.
References EmptyImage::Instance().
|
override |
Creates a mask animation without controller.
References EmptyImage::Instance().
A_* GetBase | ( | ) | const |
Returns the base component. Could return nullptr.
A_* GetMask | ( | ) | const |
Returns the mask component. Could return nullptr.
|
override |
|
overridevirtual |
void OwnProviders | ( | ) |
Assumes the ownership of the providers.
void Prepare | ( | ) |
Prepares the providers.
Provider type should support this operation, otherwise this function will cause a compile time error.
void SetBase | ( | A_ * | value | ) |
Sets the base provider, ownership semantics will not be changed.
void SetMask | ( | A_ * | value | ) |
Sets the mask provider, ownership semantics will not be changed.
void SetProviders | ( | A_ & | base, |
A_ & | mask | ||
) |
Sets the providers in this object.