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() {}
height = h;
}
+ virtual void
+ show(void) {
+ visible = true;
+ }
+
virtual void swapBuffers(void) = 0;
};
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) = 0;
+ createContext(const Visual *visual, Context *shareContext = NULL) = 0;
virtual bool
makeCurrent(Drawable *drawable, Context *context) = 0;