25#ifndef SFML_CONVEXSHAPE_HPP
26#define SFML_CONVEXSHAPE_HPP
31#include <SFML/Graphics/Export.hpp>
32#include <SFML/Graphics/Shape.hpp>
91 void setPoint(std::size_t index,
const Vector2f& point);
108 virtual Vector2f
getPoint(std::size_t index)
const;
115 std::vector<Vector2f> m_points;
virtual std::size_t getPointCount() const
Get the number of points of the polygon.
void setPointCount(std::size_t count)
Set the number of points of the polygon.
void setPoint(std::size_t index, const Vector2f &point)
Set the position of a point.
virtual Vector2f getPoint(std::size_t index) const
Get the position of a point.
ConvexShape(std::size_t pointCount=0)
Default constructor.
Shape()
Default constructor.