PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
graphic::ISprite Interface Referenceabstract

Sprite interface. More...

#include <ISprite.hpp>

Inheritance diagram for graphic::ISprite:
RaySprite SdlSprite SfmlSprite

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.
 

Detailed Description

Sprite interface.


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