PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
Loading...
Searching...
No Matches
SfmlPolygon Class Reference

allow use to draw polygons More...

#include <SfmlPolygon.hpp>

Inheritance diagram for SfmlPolygon:
graphic::IPolygon

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.
 
- Public Member Functions inherited from graphic::IPolygon
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
 

Detailed Description

allow use to draw polygons


The documentation for this class was generated from the following file: