25 #ifndef CPP3DS_CONVEXSHAPE_HPP
26 #define CPP3DS_CONVEXSHAPE_HPP
31 #include <cpp3ds/Graphics/Shape.hpp>
114 std::vector<Vector2f> m_points;
virtual Vector2f getPoint(unsigned int index) const
Get the position of a point.
ConvexShape(unsigned int pointCount=0)
Default constructor.
Base class for textured shapes with outline.
virtual unsigned int getPointCount() const
Get the number of points of the polygon.
void setPoint(unsigned int index, const Vector2f &point)
Set the position of a point.
void setPointCount(unsigned int count)
Set the number of points of the polygon.
Specialized shape representing a convex polygon.