hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/window.h
blob: 5f0e36ef027675c98ec278d5d832723e87667c65 (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 <GLFW/glfw3.h>
#include <string>

namespace Donut
{
    class Window
    {
    public:
        Window(const std::string& title, int width, int height);
        ~Window();

        bool should_close() const;
        void on_update() const;
    private:
        GLFWwindow* m_window;

        std::string m_title;
        int m_width;
        int m_height;
        bool m_is_closed;
    };
}