PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
RaySprite Class Reference

Raylib Sprite class. More...

#include <RaySprite.hpp>

Inheritance diagram for RaySprite:
graphic::ISprite

Public Member Functions

 RaySprite (std::string path)
 
bool isReady () const override
 notice if the sprite is ready
 
__v4f_t getBounds () const override
 give the bounds of the sprite
 
void setCrop (__v4f_t rect) override
 
__v2f_t getPosition () const override
 Get the Position object.
 
void setPosition (__v2f_t position) override
 
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 Sprite size.
 
void setSize (__v2f_t size) override
 
- Public Member Functions inherited from graphic::ISprite
virtual ~ISprite ()=default
 Destroy the ISprite object.
 
virtual void setCrop (__v4f_t rect)=0
 Crop the sprite with a rectangle.
 
virtual void setPosition (__v2f_t position)=0
 Set the Position object.
 
virtual void setSize (__v2f_t size)=0
 Set the Sprite size.
 

Private Attributes

Texture2D _texture
 
Vector2 _position
 
Vector2 _scale
 
Rectangle _crop
 
float _rotation
 

Friends

class RayWindow
 

Detailed Description

Raylib Sprite class.


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