14 #include "../window/IWindow.hpp"
50 virtual void setCrop(Rect<float> rect) = 0;
79 virtual void setRotation(
float angle,
bool isRad =
false) = 0;
Sprite interface.
Definition ISprite.hpp:22
virtual void setCrop(Rect< float > rect)=0
Crop the sprite with a rectangle.
virtual void setSize(Vector2f size)=0
Set the Sprite size.
virtual void setRotation(float angle, bool isRad=false)=0
Set the Rotation object.
virtual ~ISprite()=default
Destroy the ISprite object.
virtual float getRotation() const =0
Get the Rotation object.
virtual bool isReady() const =0
notice if the sprite is ready
virtual Vector2f getSize() const =0
Get the Sprite size.
virtual Vector2f getPosition() const =0
Get the Position object.
virtual Rect< float > getBounds() const =0
give the bounds of the sprite
virtual void setPosition(Vector2f position)=0
Set the Position object.
Definition IGamepad.hpp:14