summaryrefslogtreecommitdiffstats
path: root/Renderer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Renderer.h')
-rw-r--r--Renderer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Renderer.h b/Renderer.h
index 4c29b0f..1637904 100644
--- a/Renderer.h
+++ b/Renderer.h
@@ -14,6 +14,8 @@ class Renderer {
EditManager *editManager;
void drawGrid(const Rectangle &rect, float scale);
+
+ protected:
void fillPolygon(const Polygon &polygon);
void drawPolygon(const Polygon &polygon, bool close = true);
void drawCircle(const Vertex &m, float r, int n);
@@ -29,7 +31,9 @@ class Renderer {
this->editManager = editManager;
}
- void render(const Level &level, const Rectangle &rect, float scale);
+ virtual ~Renderer() {}
+
+ virtual void render(const Level &level, const Rectangle &rect, float scale);
};
#endif /*RENDERER_H_*/