From 65bcb3040dfae00625a95ae1ffd02720513ded13 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 23 Oct 2007 19:08:04 +0000 Subject: zoomedit: Renderer in Klasse gekapselt. --- Renderer.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Renderer.h (limited to 'Renderer.h') diff --git a/Renderer.h b/Renderer.h new file mode 100644 index 0000000..db8a927 --- /dev/null +++ b/Renderer.h @@ -0,0 +1,26 @@ +#ifndef RENDERER_H_ +#define RENDERER_H_ + +#include "Rectangle.h" +#include "Polygon.h" +#include "EditManager.h" +#include "Level.h" + + +class Renderer { + private: + EditManager *editManager; + + void drawGrid(const Rectangle &rect, float scale); + void fillPolygon(const Polygon &polygon); + void drawPolygon(const Polygon &polygon, bool close); + + public: + Renderer(EditManager *editManager) { + this->editManager = editManager; + } + + void render(const Level &level, const Rectangle &rect, float scale); +}; + +#endif /*RENDERER_H_*/ -- cgit v1.2.3