![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
allow use to draw polygons More...
#include <SfmlPolygon.hpp>
Public Member Functions | |
SfmlPolygon (std::vector< __v2f_t > points) | |
Construct a new Sfml Polygon object. | |
~SfmlPolygon () | |
Destroy the Sfml Polygon object. | |
bool | isReady () const override |
check if the polygon is ready | |
__v2f_t | getPosition () const override |
Get the Position object. | |
void | setPosition (__v2f_t position) override |
Set the Position object. | |
__color_t | getColor () const override |
Get the Color object. | |
void | setColor (__color_t color) override |
Set the Color object. | |
std::vector< __v2f_t > | getPoints () const override |
Get the Points object. | |
![]() | |
virtual | ~IPolygon ()=default |
Destroy the IPolygon object. | |
virtual void | setColor (__color_t position)=0 |
Set the Color object. | |
virtual void | setPosition (__v2f_t position)=0 |
Set the Position object. | |
Private Attributes | |
sf::Color | _color |
sf::Vector2f | _position |
std::vector< sf::Vertex > | _points |
std::vector< graphic::triangle_t > | _triangles |
Friends | |
class | SfmlWindow |
allow use to draw polygons