OpenLayer Offline Manual

OpenLayer | Shape | Poly Poly Stores a polygon
Poly()
The default constructor which creates a polygon with no vertices.
Poly( | const std::vector< Vec2D > &vertices )
Construct the polygon from a list of vertices.
Poly( | const Vec2D *vertices, int numVertices )
Construct the polygon from a list of vertices. The vertices should point to an array of (at least) numVertices number of vertices. Member functions
Add | Adds a vertex to the polygon
GetVertex | Returns the specified vertex
GetNumberOfVertices | Returns the number of vertices in the polygon
Draw | Draws a filled polygon.
DrawOutline | Draws an outline of the polygon
Collides | Tests if two polygons collide
GetCollision | Checks for a collision and returns detailed information about the collision
GetVertices | Returns the list of the vertices in the polygon
SetPivot | Sets the rotation pivot
GetPivot | Returns the the rotation pivot
SetOutlineTexture | Sets the texture of the outline of the polygon
Derived Classes
TexturedPoly | Textured polygon
Parent Class Shape Back to the main page of the manual Questions about Poly? Click here.