From bb09e9e703caceab0c5c5774509fb7167ead8d49 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 15 Apr 2008 14:15:02 +0000 Subject: zoomedit: * Draw room edges --- src/View/TopView.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/View/TopView.h') 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); -- cgit v1.2.3