From 634bb3ca825dc6659f03a3013694c5c7b64460e8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 2 Jul 2009 18:12:25 +0000 Subject: Put windowing interface in libdimension-tests. --- tests/tests.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tests/tests.h') diff --git a/tests/tests.h b/tests/tests.h index 49e814c..fa088fc 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -19,7 +19,26 @@ *************************************************************************/ #include "../libdimension/dimension.h" +#include +#include #include +typedef struct { + Display *dpy; + Window win; + Colormap cmap; + GLXContext cx; + XEvent event; +} dmnsn_display; + +/* Create a new X window */ +dmnsn_display *dmnsn_new_X_display(const dmnsn_canvas *canvas); +dmnsn_display *dmnsn_new_glX_display(const dmnsn_canvas *canvas); +/* Destroy the X window */ +void dmnsn_delete_display(dmnsn_display *display); + +/* Flush the GL buffers */ +void dmnsn_display_frame(dmnsn_display *display); + /* Print a progress bar of the progress of `progress' */ void progressbar(const char *str, const dmnsn_progress *progress); -- cgit v1.2.3