diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-02 18:12:25 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-02 18:12:25 +0000 |
commit | 634bb3ca825dc6659f03a3013694c5c7b64460e8 (patch) | |
tree | 14174ee0ced95e9ced7af5fa69d94118c709cc66 /tests/tests.h | |
parent | a0571c84673f01b05e6edeb901cca8ff5ae9a023 (diff) | |
download | dimension-634bb3ca825dc6659f03a3013694c5c7b64460e8.tar.xz |
Put windowing interface in libdimension-tests.
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); |