X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glws.hpp;h=05654200f7d966d9f443b696a13c8ab8ffde68f6;hb=353f0535f43b54d04cc9c8080790ffac606e5b0b;hp=3d3c83d4982bf2ea2a265ce90b1b7c52ec90008d;hpb=53d224eb79529d0c0f45fa4f68251822c9c7bb6a;p=apitrace diff --git a/glws.hpp b/glws.hpp index 3d3c83d..0565420 100644 --- a/glws.hpp +++ b/glws.hpp @@ -53,11 +53,13 @@ public: const Visual *visual; int width; int height; + bool visible; Drawable(const Visual *vis, int w, int h) : visual(vis), width(w), - height(h) + height(h), + visible(false) {} virtual ~Drawable() {} @@ -68,6 +70,11 @@ public: height = h; } + virtual void + show(void) { + visible = true; + } + virtual void swapBuffers(void) = 0; };