Loading...
Searching...
No Matches
Shape.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
Abstract base class for objects that can be drawn to a render target.
Definition Drawable.hpp:45
float getOutlineThickness() const
Get the outline thickness of the shape.
void setTextureRect(const IntRect &rect)
Set the sub-rectangle of the texture that the shape will display.
void setOutlineColor(const Color &color)
Set the outline color of the shape.
void setOutlineThickness(float thickness)
Set the thickness of the shape's outline.
FloatRect getGlobalBounds() const
Get the global (non-minimal) bounding rectangle of the entity.
const IntRect & getTextureRect() const
Get the sub-rectangle of the texture displayed by the shape.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
void setTexture(const Texture *texture, bool resetRect=false)
Change the source texture of the shape.
virtual std::size_t getPointCount() const =0
Get the total number of points of the shape.
Definition AlResource.hpp:35