igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
graphic::ISprite Interface Referenceabstract

Sprite interface. More...

#include <ISprite.hpp>

Public Member Functions

virtual ~ISprite ()=default
 Destroy the ISprite object.
 
virtual bool isReady () const =0
 notice if the sprite is ready
 
virtual Rect< float > getBounds () const =0
 give the bounds of the sprite
 
virtual void setCrop (Rect< float > rect)=0
 Crop the sprite with a rectangle.
 
virtual Vector2f getPosition () const =0
 Get the Position object.
 
virtual void setPosition (Vector2f position)=0
 Set the Position object.
 
virtual float getRotation () const =0
 Get the Rotation object.
 
virtual void setRotation (float angle, bool isRad=false)=0
 Set the Rotation object.
 
virtual Vector2f getSize () const =0
 Get the Sprite size.
 
virtual void setSize (Vector2f size)=0
 Set the Sprite size.
 

Detailed Description

Sprite interface.

Constructor & Destructor Documentation

◆ ~ISprite()

virtual graphic::ISprite::~ISprite ( )
virtualdefault

Destroy the ISprite object.

Member Function Documentation

◆ getBounds()

virtual Rect< float > graphic::ISprite::getBounds ( ) const
pure virtual

give the bounds of the sprite

Returns
Vector4f

◆ getPosition()

virtual Vector2f graphic::ISprite::getPosition ( ) const
pure virtual

Get the Position object.

Returns
Vector2f

◆ getRotation()

virtual float graphic::ISprite::getRotation ( ) const
pure virtual

Get the Rotation object.

Returns
float

◆ getSize()

virtual Vector2f graphic::ISprite::getSize ( ) const
pure virtual

Get the Sprite size.

Returns
Vector4f

◆ isReady()

virtual bool graphic::ISprite::isReady ( ) const
pure virtual

notice if the sprite is ready

Returns
bool

◆ setCrop()

virtual void graphic::ISprite::setCrop ( Rect< float >  rect)
pure virtual

Crop the sprite with a rectangle.

Parameters
rect

◆ setPosition()

virtual void graphic::ISprite::setPosition ( Vector2f  position)
pure virtual

Set the Position object.

Parameters
position

◆ setRotation()

virtual void graphic::ISprite::setRotation ( float  angle,
bool  isRad = false 
)
pure virtual

Set the Rotation object.

Parameters
angle
isRad

◆ setSize()

virtual void graphic::ISprite::setSize ( Vector2f  size)
pure virtual

Set the Sprite size.

Parameters
size

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