return true;
}
+void
+createWindow(Drawable *drawable, const Visual *_visual)
+{
+ EglDrawable *eglDrawable = static_cast<EglDrawable *>(drawable);
+ const EglVisual *visual = static_cast<const EglVisual *>(_visual);
+
+ eglDrawable->surface = eglCreateWindowSurface(display, visual->config,
+ eglDrawable->window, NULL);
+}
+
+void
+destroyWindow(Drawable *drawable)
+{
+ EglDrawable *eglDrawable = static_cast<EglDrawable *>(drawable);
+
+ eglDestroySurface(display, eglDrawable->surface);
+}
+
+Pixmap
+createPixmap(unsigned width, unsigned height, unsigned depth)
+{
+ return XCreatePixmap(display, DefaultRootWindow(display),
+ width, height, depth);
+}
+
} /* namespace glws */