25 #ifndef SFML_SHAPE_HPP
26 #define SFML_SHAPE_HPP
31 #include <SFML/Graphics/Export.hpp>
32 #include <SFML/Graphics/Drawable.hpp>
33 #include <SFML/Graphics/Transformable.hpp>
34 #include <SFML/Graphics/VertexArray.hpp>
35 #include <SFML/System/Vector2.hpp>
74 void setTexture(
const Texture* texture,
bool resetRect =
false);
88 void setTextureRect(
const IntRect& rect);
105 void setFillColor(
const Color& color);
117 void setOutlineColor(
const Color& color);
132 void setOutlineThickness(
float thickness);
146 const Texture* getTexture()
const;
156 const IntRect& getTextureRect()
const;
166 const Color& getFillColor()
const;
176 const Color& getOutlineColor()
const;
186 float getOutlineThickness()
const;
196 virtual unsigned int getPointCount()
const = 0;
210 virtual Vector2f getPoint(
unsigned int index)
const = 0;
273 void updateFillColors();
279 void updateTexCoords();
285 void updateOutline();
291 void updateOutlineColors();
301 Color m_outlineColor;
302 float m_outlineThickness;
312 #endif // SFML_SHAPE_HPP