diff options
author | neoraider <devnull@localhost> | 2007-10-23 21:08:04 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-10-23 21:08:04 +0200 |
commit | 65bcb3040dfae00625a95ae1ffd02720513ded13 (patch) | |
tree | 1099bc1262d6e2291640355b0f3fb04f2e57c0d4 /Renderer.h | |
parent | 7b70cc94c7f2407f20786644141a097031b96e66 (diff) | |
download | zoomedit-65bcb3040dfae00625a95ae1ffd02720513ded13.tar zoomedit-65bcb3040dfae00625a95ae1ffd02720513ded13.zip |
zoomedit: Renderer in Klasse gekapselt.
Diffstat (limited to 'Renderer.h')
-rw-r--r-- | Renderer.h | 26 |
1 files changed, 26 insertions, 0 deletions
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_*/ |