summaryrefslogtreecommitdiffstats
path: root/Renderer.h
blob: db8a927a3ef6a68525b5026fbe97762f64a192e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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_*/