igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
IPolygon.hpp
Go to the documentation of this file.
1
12#ifndef IPOLYGON_HPP_
13 #define IPOLYGON_HPP_
14 #include "Type.hpp"
15 #include "../window/IWindow.hpp"
16
17 #include <vector>
18
19namespace graphic {
20
34 class IPolygon {
35
36 public:
37
41 virtual ~IPolygon() = default;
42
48 virtual Color getColor() const = 0;
49
55 virtual void setColor(Color position) = 0;
56
62 virtual bool isReady() const = 0;
63
69 virtual Vector2f getPosition() const = 0;
70
76 virtual void setPosition(Vector2f position) = 0;
77
83 virtual std::vector<Vector2f> getPoints() const = 0;
84 };
85
86} // namespace graphic
87
90#endif /* !IPOLYGON_HPP_ */
Polygon interface.
Definition IPolygon.hpp:34
virtual bool isReady() const =0
Get the Position object.
virtual Color getColor() const =0
Get the Color object.
virtual Vector2f getPosition() const =0
Get the Position object.
virtual void setColor(Color position)=0
Set the Color object.
virtual std::vector< Vector2f > getPoints() const =0
Get the Points object.
virtual ~IPolygon()=default
Destroy the IPolygon object.
virtual void setPosition(Vector2f position)=0
Set the Position object.
Definition IGamepad.hpp:14