X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglwindow.h;h=dd6e59fd62105dd1667b73901d6e5c3bd4065f27;hb=d39a783c839c08be8ac36a040f4f8b2ee0da8d56;hp=35254391de81390a0a0db5090175aaf5726a0885;hpb=935c50bdcc95fe95d39931182461a2b25ac30b9d;p=libs%2Fgui.git diff --git a/source/glwindow.h b/source/glwindow.h index 3525439..dd6e59f 100644 --- a/source/glwindow.h +++ b/source/glwindow.h @@ -16,6 +16,7 @@ namespace Msp { struct GLDisplayOptions { bool alpha; + bool stencil; bool doublebuffer; unsigned multisample; @@ -28,6 +29,7 @@ protected: typedef GLXContext Context; GLDisplayOptions gl_options; + GLXWindow glx_wnd; Context context; public: @@ -38,7 +40,7 @@ public: void swap_buffers(); protected: void init(); - virtual void on_resize(); + virtual void on_event(const XEvent &event); }; } // namespace Msp