![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
Used to handle images. More...
#include <SfmlSprite.hpp>
Public Member Functions | |
| SfmlSprite (std::string path) | |
| Construct a new Sfml Sprite object. | |
| bool | isReady () const override |
| check if the sprite is ready | |
| __v4f_t | getBounds () const override |
| Get the Bounds object. | |
| void | setCrop (__v4f_t rect) override |
| Set the Crop object. | |
| __v2f_t | getPosition () const override |
| Get the Position object. | |
| void | setPosition (__v2f_t position) override |
| Set the Position object. | |
| float | getRotation () const override |
| Get the Rotation object. | |
| void | setRotation (float angle, bool isRad=false) override |
| Set the Rotation object. | |
| __v2f_t | getSize () const override |
| Get the Size object. | |
| void | setSize (__v2f_t size) override |
| Set the Size object. | |
Public Member Functions inherited from graphic::ISprite | |
| virtual | ~ISprite ()=default |
| Destroy the ISprite object. | |
Private Attributes | |
| sf::Texture | _texture |
| sf::Sprite | _sprite |
| sf::Vector2f | _position |
| sf::Vector2f | _scale |
Friends | |
| class | SfmlWindow |
Used to handle images.