Gorgon Game Engine
basic_AnimatedPointer< A_ > Class Template Reference

Represents animated pointer. More...

Inheritance diagram for basic_AnimatedPointer< A_ >:
[legend]

Public Member Functions

 basic_AnimatedPointer (basic_AnimatedPointer &&other)
 
 basic_AnimatedPointer (const basic_AnimatedPointer &)=delete
 
 basic_AnimatedPointer (const basic_PointerProvider< A_ > &parent, typename A_::AnimationType &anim)
 
 ~basic_AnimatedPointer ()
 
Gorgon::Animation::ControllerBaseGetController () const
 
bool HasController () const override
 
void RemoveController () const
 
void SetController (Gorgon::Animation::ControllerBase &controller) override
 
- Public Member Functions inherited from Pointer
virtual ~Pointer ()
 
- Public Member Functions inherited from Drawable
virtual ~Drawable ()
 
void Draw (TextureTarget &target, const Geometry::Point &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, const Geometry::Pointf &p, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, float x, float y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 
void Draw (TextureTarget &target, int x, int y, RGBAf color=RGBAf(1.f)) const
 Draw to the given coordinates. More...
 

Protected Member Functions

void draw (Gorgon::Graphics::TextureTarget &target, const Geometry::Pointf &p, Gorgon::Graphics::RGBAf color) const override
 This is the only function that needs to implemented for a drawable. More...
 

Protected Attributes

A_::AnimationType * anim
 
const basic_PointerProvider< A_ > & parent
 

Detailed Description

template<class A_>
class Gorgon::Graphics::basic_AnimatedPointer< A_ >

Represents animated pointer.

Constructor & Destructor Documentation

◆ basic_AnimatedPointer() [1/3]

basic_AnimatedPointer ( const basic_PointerProvider< A_ > &  parent,
typename A_::AnimationType &  anim 
)

◆ basic_AnimatedPointer() [2/3]

basic_AnimatedPointer ( const basic_AnimatedPointer< A_ > &  )
delete

◆ basic_AnimatedPointer() [3/3]

◆ ~basic_AnimatedPointer()

Member Function Documentation

◆ draw()

void draw ( Gorgon::Graphics::TextureTarget target,
const Geometry::Pointf p,
Gorgon::Graphics::RGBAf  color 
) const
overrideprotectedvirtual

This is the only function that needs to implemented for a drawable.

Implements Drawable.

References ASSERT.

◆ GetController()

◆ HasController()

bool HasController ( ) const
override

◆ RemoveController()

void RemoveController ( ) const

◆ SetController()

void SetController ( Gorgon::Animation::ControllerBase controller)
override

Member Data Documentation

◆ anim

A_::AnimationType* anim
protected

◆ parent

const basic_PointerProvider<A_>& parent
protected

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