]> git.cworth.org Git - apitrace/blobdiff - glws.hpp
Add a state tab that list uniforms.
[apitrace] / glws.hpp
index bfd34480613e4713ddb24a77e9a7ee85f38a3715..05654200f7d966d9f443b696a13c8ab8ffde68f6 100644 (file)
--- 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;