|
igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
|
Polygon interface. More...
#include <IPolygon.hpp>
Public Member Functions | |
| virtual | ~IPolygon ()=default |
| Destroy the IPolygon object. | |
| virtual Color | getColor () const =0 |
| Get the Color object. | |
| virtual void | setColor (Color position)=0 |
| Set the Color object. | |
| virtual bool | isReady () const =0 |
| Get the Position object. | |
| virtual Vector2f | getPosition () const =0 |
| Get the Position object. | |
| virtual void | setPosition (Vector2f position)=0 |
| Set the Position object. | |
| virtual std::vector< Vector2f > | getPoints () const =0 |
| Get the Points object. | |
Polygon interface.
The contract speaks in POINTS, never in triangles : createPolygon() takes vertices, getPoints() returns them. Triangulating is a vendor detail - raylib turns it into DrawTriangle calls, sfml into an sf::VertexArray, and both keep the result private. A Triangle in this file would have no method to serve.
The type doing the actual work is Triangle<T> from system (Shape.hpp), at global scope.
|
virtualdefault |
Destroy the IPolygon object.
|
pure virtual |
Get the Color object.
|
pure virtual |
Get the Points object.
|
pure virtual |
Get the Position object.
|
pure virtual |
Get the Position object.
|
pure virtual |
Set the Color object.
| position |
|
pure virtual |
Set the Position object.
| position |