#include <Tri.h>


Public Member Functions | |
| Tri () | |
| Constructs a new Tri with all points at the origin. | |
| Tri (const Vertex &p1, const Vertex &p2, const Vertex &p3) | |
| Constructs a new Tri with three vertices. | |
| Tri (const Vector2f &p1, const Vector2f &p2, const Vector2f &p3) | |
| Constructs a new Tri with three vertices. | |
| Tri (const std::string &name) | |
| Constructs a new Tri with all points at the origin. | |
| Tri (const std::string &name, const Vertex &p1, const Vertex &p2, const Vertex &p3) | |
| Constructs a new Tri with three vertices. | |
| Tri (const std::string &name, const Vector2f &p1, const Vector2f &p2, const Vector2f &p3) | |
| Constructs a new Tri with three vertices. | |
| Tri (const Tri ©) | |
| Copy constructor for Tri. | |
| ShapeType | type () |
| Returns the Tri's type. | |
| Vertex & | v1 () |
| Gets the first vertex of the Tri. | |
| Vertex & | v2 () |
| Gets the second vertex of the Tri. | |
| Vertex & | v3 () |
| Gets the third vertex of the Tri. | |
Protected Member Functions | |
| virtual void | draw () |
| Called when a Node is to be drawn. | |
The Tri class is type of Shape which draws a three point polygon
| Tri::Tri | ( | const std::string & | name | ) | [inline] |
| ShapeType Tri::type | ( | ) | [inline, virtual] |
| virtual void Tri::draw | ( | ) | [protected, virtual] |
1.5.5