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:44
Base class for all render targets (window, texture, ...)
Definition RenderTarget.hpp:63
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.
virtual Vector2f getGeometricCenter() const
Get the geometric center 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.
Decomposed transform defined by a position, a rotation and a scale.
Definition Transformable.hpp:44
Definition AudioResource.hpp:36