diff options
author | neoraider <devnull@localhost> | 2008-04-15 16:15:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2008-04-15 16:15:02 +0200 |
commit | bb09e9e703caceab0c5c5774509fb7167ead8d49 (patch) | |
tree | 059f0e06b885ae393c844db0cdc15669b68f8524 /src/View/TopView.h | |
parent | 7c929e6e1ce1f43d16d0d279af1e1261b5c566b7 (diff) | |
download | zoomedit-bb09e9e703caceab0c5c5774509fb7167ead8d49.tar zoomedit-bb09e9e703caceab0c5c5774509fb7167ead8d49.zip |
zoomedit:
* Draw room edges
Diffstat (limited to 'src/View/TopView.h')
-rw-r--r-- | src/View/TopView.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/View/TopView.h b/src/View/TopView.h index 844faa5..bbb9394 100644 --- a/src/View/TopView.h +++ b/src/View/TopView.h @@ -27,14 +27,26 @@ namespace ZoomEdit { namespace Data { class Level; class Room; +class Vertex; } namespace View { class TopView : public View { private: + class Edge { + public: + const Data::Vertex *v1, *v2; + + Edge(const Data::Vertex *v10, const Data::Vertex *v20) + : v1(v10), v2(v20) {}; + bool operator<(const Edge &e) const; + }; + Data::Level *level; + bool edgeLess(const Edge &e1, const Edge &e2); + void drawGrid(Gui::RenderArea *renderArea); void renderRoom(Data::Room *room); |