290 void updateFillColors();
296 void updateTexCoords();
302 void updateOutline();
308 void updateOutlineColors();
316 Color m_outlineColor{Color::White};
317 float m_outlineThickness{};
318 VertexArray m_vertices{PrimitiveType::TriangleFan};
319 VertexArray m_outlineVertices{PrimitiveType::TriangleStrip};
#define SFML_GRAPHICS_API
Utility class for manipulating RGBA colors.
static const Color White
White predefined color.
Abstract base class for objects that can be drawn to a render target.
friend class RenderTarget
Base class for all render targets (window, texture, ...)
Base class for textured shapes with outline.
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 getPoint(std::size_t index) const =0
Get a point of the shape.
void setFillColor(Color color)
Set the fill color of the shape.
virtual Vector2f getGeometricCenter() const
Get the geometric center of the shape.
void setOutlineThickness(float thickness)
Set the thickness of the shape's outline.
Color getFillColor() const
Get the fill color of the shape.
void setOutlineColor(Color color)
Set the outline color of the shape.
Color getOutlineColor() const
Get the outline color of the shape.
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.
void update()
Recompute the internal geometry of the shape.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
const Texture * getTexture() const
Get the source texture of the shape.
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.
Image living on the graphics card that can be used for drawing.
Vector2< float > Vector2f
Define the states used for drawing to a RenderTarget