diff options
author | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-12-20 21:03:24 +0000 |
---|---|---|
committer | taw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1> | 2007-12-20 21:03:24 +0000 |
commit | fa3a0f357371cf1b9da58c2e00334c905a898f96 (patch) | |
tree | d4c14deb5580b033de689eb896eb6d808389a01d /src/glbits.h | |
parent | bf06787466886fc0353b57fdcb3b4b3186e5fbdf (diff) |
Move OpenGL stuff to new module
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@233 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/glbits.h')
-rw-r--r-- | src/glbits.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/glbits.h b/src/glbits.h new file mode 100644 index 0000000..58520fd --- /dev/null +++ b/src/glbits.h @@ -0,0 +1,31 @@ +/* + * glbits.h + * + * OpenGL bits + * + * (c) 2007 Thomas White <taw27@cam.ac.uk> + * + * dtr - Diffraction Tomography Reconstruction + * + */ + +#ifndef GLBITS_H +#define GLBITS_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <gtk/gtk.h> + +#include "displaywindow.h" + +extern void glbits_prepare(DisplayWindow *dw); +extern gint glbits_expose(GtkWidget *widget, GdkEventExpose *event, DisplayWindow *dw); +extern void glbits_set_ortho(DisplayWindow *dw, GLfloat w, GLfloat h); +extern void glbits_set_perspective(DisplayWindow *dw, GLfloat w, GLfloat h); +extern gboolean glbits_configure(GtkWidget *widget, GdkEventConfigure *event, DisplayWindow *dw); +extern void glbits_free_resources(DisplayWindow *dw); + +#endif /* GLBITS_H */ + |