aboutsummaryrefslogtreecommitdiffstats
path: root/include/yage/window.hpp
blob: 6f3058e99d7a200ef815c55a899deeacb93f9f22 (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
29
30
#ifndef WINDOW_HPP
#define WINDOW_HPP

#include <SDL2/SDL.h>

#include <string>

enum class WindowFlags
{
    SHOWN=0x1,
    HIDDEN=0x2,
    FULLSCREEN=0x4,
    BORDERLESS=0x8,
};

class Window
{
private:
    SDL_Window *window_=nullptr;
    int width_=1280;
    int height_=720;
    
public:
    Window();
    ~Window();

    void create(const std::string &window_name, int width, int height, WindowFlags flags=WindowFlags::SHOWN);
};

#endif