blob: efa2165a94ee457907bc85efb23077b464bb652a (
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
|
#include<SDL2/SDL.h>
struct Point{
int x, y;
};
class Window{
public:
Window( const char * title,
int w,
int h,
int x = SDL_WINDOWPOS_UNDEFINED,
int y = SDL_WINDOWPOS_UNDEFINED );
~Window();
SDL_Window* window();
void handleEvent( SDL_Event e );
void toggleFullscreen();
Point getSize();
bool closed();
bool focused();
private:
SDL_Window* window_;
bool fullscreen_;
bool focused_;
bool closed_;
};
|