X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglws.hpp;h=c76e19321706a5c8a02fca80dfcce7774ad2ce6f;hb=d1623a2829191e6837d89bc2022ee1495f3d5aee;hp=9557c0c71b65eb0d792852b905a792e3879c08bf;hpb=d1c301f7dbb2a90a52cd0109b5185c4ad463a612;p=apitrace diff --git a/retrace/glws.hpp b/retrace/glws.hpp index 9557c0c..c76e193 100644 --- a/retrace/glws.hpp +++ b/retrace/glws.hpp @@ -31,6 +31,8 @@ #define _GLWS_HPP_ +#include + #include #include #include @@ -100,12 +102,14 @@ public: const Visual *visual; int width; int height; + bool pbuffer; bool visible; - Drawable(const Visual *vis, int w, int h) : + Drawable(const Visual *vis, int w, int h, bool pb) : visual(vis), width(w), height(h), + pbuffer(pb), visible(false) {} @@ -119,6 +123,7 @@ public: virtual void show(void) { + assert(!pbuffer); visible = true; } @@ -157,7 +162,7 @@ Visual * createVisual(bool doubleBuffer = false, Profile profile = PROFILE_COMPAT); Drawable * -createDrawable(const Visual *visual, int width = 32, int height = 32); +createDrawable(const Visual *visual, int width, int height, bool pbuffer = false); Context * createContext(const Visual *visual, Context *shareContext = 0, Profile profile = PROFILE_COMPAT, bool debug = false);