![]() |
Gorgon Game Engine
|
Public Member Functions | |
VisualProvider (Event< ComponentTemplate > &changed) | |
VisualProvider (Event< ComponentTemplate > &changed, const Graphics::AnimationProvider &content) | |
VisualProvider (Event< ComponentTemplate > &changed, const Graphics::Drawable &content) | |
const Graphics::AnimationProvider & | GetAnimation () const |
Returns the content as animation provider. More... | |
const Graphics::Drawable & | GetDrawable () const |
Returns the content as a drawable. More... | |
bool | HasContent () const |
If this drawable has any content. More... | |
const Graphics::Drawable & | Instantiate (Animation::ControllerBase &controller) const |
bool | IsAnimation () const |
Of this drawable template has animation content. More... | |
bool | IsDrawable () const |
Of this drawable template has drawable content. More... | |
void | SetAnimation (const Graphics::AnimationProvider &value) |
Sets the content from an animation provider. More... | |
void | SetDrawable (const Graphics::Drawable &value) |
Sets the content from a drawable. More... | |
VisualProvider | ( | Event< ComponentTemplate > & | changed | ) |
VisualProvider | ( | Event< ComponentTemplate > & | changed, |
const Graphics::AnimationProvider & | content | ||
) |
VisualProvider | ( | Event< ComponentTemplate > & | changed, |
const Graphics::Drawable & | content | ||
) |
const Graphics::AnimationProvider& GetAnimation | ( | ) | const |
Returns the content as animation provider.
const Graphics::Drawable& GetDrawable | ( | ) | const |
Returns the content as a drawable.
bool HasContent | ( | ) | const |
If this drawable has any content.
const Graphics::Drawable& Instantiate | ( | Animation::ControllerBase & | controller | ) | const |
References AnimationProvider::CreateAnimation().
bool IsAnimation | ( | ) | const |
Of this drawable template has animation content.
bool IsDrawable | ( | ) | const |
Of this drawable template has drawable content.
void SetAnimation | ( | const Graphics::AnimationProvider & | value | ) |
Sets the content from an animation provider.
void SetDrawable | ( | const Graphics::Drawable & | value | ) |
Sets the content from a drawable.