blob: 1b6e02225af2e5738162015b22a158b861b5f6e6 (
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
|
#pragma once
#include <string>
class SDL_Window;
class SDL_Surface;
namespace wrapsdl2 {
class window {
public:
window() = delete;
window(const window& other) = delete;
window(const std::string& title, std::size_t width, std::size_t height);
~window();
// manipulation
void show();
void hide();
void raise();
// rendering
void update();
private:
SDL_Window *m_window;
SDL_Surface *m_surface;
};
}
|