#include <shapes.hpp>
Inheritance diagram for Flatland::Terrain:

Definition at line 56 of file shapes.hpp.
Public Types | |
| typedef VList::const_iterator | const_iterator |
Public Member Functions | |
| Terrain (const vec2 &start) | |
| void | UpdateBounds () |
| void | Finalize () |
| Shape | GetShape () const |
| bool | GetIndexRange (float left, float right, int &lower, int &upper) const |
| const_iterator | begin () const |
| const_iterator | end () const |
| const vec2 & | front () const |
| const vec2 & | back () const |
| void | push_back (const vec2 &v) |
| add a vertex to the terrain shape. | |
| size_t | size () const |
| bool | empty () const |
| Line & | operator[] (int i) |
| const Line & | operator[] (int i) const |
Private Attributes | |
| vec2 | previous |
| LineStrip | lines |
| SpanMap | spans |
| VList | vertices |