summary refs log tree commit diff
path: root/src/Window.hpp
blob: 5a2b640c5c81041edd83f4bed8240301632f70ee (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
#pragma once

#include <cstdint>
#include <GLFW/glfw3.h>

namespace MC {

class Window {
public:
    Window(const char* title, uint32_t width, uint32_t height);
    ~Window();

    GLFWwindow* get();

    void on_size_change(void (* callback)(GLFWwindow*, int, int));

    void close();
    void start_frame();

    bool key(int key, int type);
    bool should_close();
private:
    GLFWwindow* m_window;

};

}