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

#include <vector>

#include <raylib.h>

#include "Cameraman.h"
#include "Grid.h"
#include "Label.h"
#include "Timeline.h"


class View
{
public:
    View(std::vector<Grid> grids, Timeline timeline);
    virtual ~View();
    void update(float dt);
    void draw() const;
private:
    Cameraman m_cameraman;
    std::vector<Grid> m_grids;
    std::vector<Label> m_labels;
    unsigned int m_grid;
    float m_timer;
    Label* m_active;
    Timeline m_timeline;
};