![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
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 __v4f_t | getBounds () const =0 |
| give the bounds of the sprite | |
| virtual void | setCrop (__v4f_t rect)=0 |
| Crop the sprite with a rectangle. | |
| virtual __v2f_t | getPosition () const =0 |
| Get the Position object. | |
| virtual void | setPosition (__v2f_t 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 __v2f_t | getSize () const =0 |
| Get the Sprite size. | |
| virtual void | setSize (__v2f_t size)=0 |
| Set the Sprite size. | |
Sprite interface.