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

handle a polygon More...

#include <SdlPolygon.hpp>

Inheritance diagram for SdlPolygon:
graphic::IPolygon

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_tgetPoints () const override
 Get the Points object.
 
- Public Member Functions inherited from graphic::IPolygon
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
 

Detailed Description

handle a polygon


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