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

#include <memory>
#include <vector>

#include <raylib.h>

#include "Label.h"
#include "Source.h"


class View
{
public:
    explicit View(std::unique_ptr<Source> source);
    void update(float dt);
    void draw() const;
private:
    Camera m_camera;
    std::unique_ptr<Source> m_source;
    std::vector<Label> m_labels;
    int m_grid;
    float m_timer;
};