diff options
Diffstat (limited to 'tests/tests.h')
-rw-r--r-- | tests/tests.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <GL/glx.h> +#include <GL/gl.h> #include <stdio.h> +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); |