]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/window.h
Rework event passing system to allow for pointer grabs
[libs/gltk.git] / source / window.h
index 13febaeea936dffc3d85c6d1fecfdb3ce25804ff..3990acf0ef4fe0b26af4d0e8ca29856df5b3ab34 100644 (file)
@@ -6,13 +6,30 @@
 namespace Msp {
 namespace GLtk {
 
+struct DisplayOptions
+{
+       unsigned width;
+       unsigned height;
+       unsigned depth;
+       bool alpha;
+       bool doublebuffer;
+       unsigned multisample;
+       bool fullscreen;
+
+       DisplayOptions();
+};
+
 class Window
 {
 public:
-       Window();
+       Window(unsigned, unsigned);
+       Window(const DisplayOptions &);
+       ~Window();
 private:
        Display *display;
-       Window  window;
+       ::Window  window;
+
+       void init(const DisplayOptions &);
 };
 
 } // namespace GLtk