diff options
Diffstat (limited to 'Renderer.h')
-rw-r--r-- | Renderer.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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_*/ |