57 virtual void Draw(SDL_Renderer*
const target)
const override;
The base class for all native SDLU shapes.
The non-instantiable base class for all SDLU shapes.
Definition: Shape.hpp:19
Definition: Rectangle.hpp:15
Vector2f GetSize()
Gets the size of the rectangle.
void SetSize(float x, float y)
Sets a new size for the rectangle.
Rectangle(const Vector2f &position, const Vector2f &size)
Constructor with default parameters.
Rectangle()
Default constructor.
virtual void Draw(SDL_Renderer *const target) const override
Draws the Rectangle to the target.
void SetSize(const Vector2f &size)
Sets a new size for the rectangle.
Definition: Rectangle.hpp:12