X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glws.hpp;h=05654200f7d966d9f443b696a13c8ab8ffde68f6;hb=851d0b0452234ace66a511327bd8e6f9d68fe9e9;hp=bfd34480613e4713ddb24a77e9a7ee85f38a3715;hpb=c017dded3f1b3ebe3043b0e217bb3cd76a4e1a4e;p=apitrace diff --git a/glws.hpp b/glws.hpp index bfd3448..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; }; @@ -94,7 +101,7 @@ public: createVisual(bool doubleBuffer = false) = 0; virtual Drawable * - createDrawable(const Visual *visual, int width = 256, int height = 256) = 0; + createDrawable(const Visual *visual, int width = 32, int height = 32) = 0; virtual Context * createContext(const Visual *visual, Context *shareContext = NULL) = 0;