summaryrefslogtreecommitdiffhomepage
path: root/View.h
blob: e259132fafb835b44f4dd3bab1e7971e2760d9f5 (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
#pragma once

#include <vector>

#include <raylib.h>

#include "Grid.h"
#include "Label.h"


class View
{
public:
    explicit View(std::vector<Grid> grids);
    virtual ~View();
    void update(float dt);
    void draw() const;
private:
    Camera m_camera;
    std::vector<Grid> m_grids;
    std::vector<Label> m_labels;
    int m_grid;
    float m_timer;
    Texture2D m_texture;
};