aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Window.h
blob: 866d1449b35731aa54b158b8d61ac4b84fc45107 (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 ShouldClose() const;
        void OnUpdate() const;
    private:
        GLFWwindow* m_Window;

        std::string m_Title;
        int m_Width;
        int m_Height;
        bool m_IsClosed;
    };
}