![]() |
PERRY v1.0.0
P-E-R-R-Y/PERRY helps creating games with a bunch of tools.
|
handle a polygon More...
#include <SdlPolygon.hpp>
Public Member Functions | |
SdlPolygon (std::vector< __v2f_t > points) | |
Construct a new Sdl Polygon object. | |
~SdlPolygon () | |
Destroy the Sdl 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. | |
Private Attributes | |
__color_t | _color |
__v2f_t | _position |
std::vector< SDL_Vertex > | _points |
std::vector< graphic::triangle_t > | _triangles |
Friends | |
class | SdlWindow |
handle a polygon