]> git.tdb.fi Git - libs/gltk.git/blob - source/window.h
Rework event passing system to allow for pointer grabs
[libs/gltk.git] / source / window.h
1 #ifndef MSP_GLTK_WINDOW_H_
2 #define MSP_GLTK_WINDOW_H_
3
4 #include <X11/X.h>
5
6 namespace Msp {
7 namespace GLtk {
8
9 struct DisplayOptions
10 {
11         unsigned width;
12         unsigned height;
13         unsigned depth;
14         bool alpha;
15         bool doublebuffer;
16         unsigned multisample;
17         bool fullscreen;
18
19         DisplayOptions();
20 };
21
22 class Window
23 {
24 public:
25         Window(unsigned, unsigned);
26         Window(const DisplayOptions &);
27         ~Window();
28 private:
29         Display *display;
30         ::Window  window;
31
32         void init(const DisplayOptions &);
33 };
34
35 } // namespace GLtk
36 } // namespace Msp
37
38 #endif