|
P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
|
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. | |
Sprite interface.
|
virtualdefault |
Destroy the ISprite object.
|
pure virtual |
give the bounds of the sprite
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Get the Position object.
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Get the Rotation object.
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Get the Sprite size.
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
notice if the sprite is ready
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Crop the sprite with a rectangle.
| rect |
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Set the Position object.
| position |
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Set the Rotation object.
| angle | |
| isRad |
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.
|
pure virtual |
Set the Sprite size.
| size |
Implemented in RaySprite, SdlSprite, SdlSprite, and SfmlSprite.