Gorgon Game Engine
VisualProvider Class Reference

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::AnimationProviderGetAnimation () const
 Returns the content as animation provider. More...
 
const Graphics::DrawableGetDrawable () const
 Returns the content as a drawable. More...
 
bool HasContent () const
 If this drawable has any content. More...
 
const Graphics::DrawableInstantiate (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...
 

Constructor & Destructor Documentation

◆ VisualProvider() [1/3]

◆ VisualProvider() [2/3]

VisualProvider ( Event< ComponentTemplate > &  changed,
const Graphics::AnimationProvider content 
)

◆ VisualProvider() [3/3]

VisualProvider ( Event< ComponentTemplate > &  changed,
const Graphics::Drawable content 
)

Member Function Documentation

◆ GetAnimation()

const Graphics::AnimationProvider& GetAnimation ( ) const

Returns the content as animation provider.

◆ GetDrawable()

const Graphics::Drawable& GetDrawable ( ) const

Returns the content as a drawable.

◆ HasContent()

bool HasContent ( ) const

If this drawable has any content.

◆ Instantiate()

const Graphics::Drawable& Instantiate ( Animation::ControllerBase controller) const

◆ IsAnimation()

bool IsAnimation ( ) const

Of this drawable template has animation content.

◆ IsDrawable()

bool IsDrawable ( ) const

Of this drawable template has drawable content.

◆ SetAnimation()

void SetAnimation ( const Graphics::AnimationProvider value)

Sets the content from an animation provider.

◆ SetDrawable()

void SetDrawable ( const Graphics::Drawable value)

Sets the content from a drawable.


The documentation for this class was generated from the following file: