summaryrefslogtreecommitdiffhomepage
path: root/View.h
blob: e58b53905b86cb3f7a1b9f57f8ede16d53bb9d21 (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
#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;
    Label* m_active;
};