aboutsummaryrefslogtreecommitdiff
path: root/src/displaywindow.h
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-09-05 00:17:20 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-09-05 00:17:20 +0000
commit33812018c1584e0ccdea764ae971c1dd82e7a5d3 (patch)
tree880aa959290333588223e59430acce60d13038a7 /src/displaywindow.h
parent0369b6427674594f3ad52f562f90a057c0cdbd7a (diff)
Visualise various things for debugging
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@116 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/displaywindow.h')
-rw-r--r--src/displaywindow.h45
1 files changed, 41 insertions, 4 deletions
diff --git a/src/displaywindow.h b/src/displaywindow.h
index 3d20d4b..8c4e388 100644
--- a/src/displaywindow.h
+++ b/src/displaywindow.h
@@ -20,10 +20,47 @@
#include "control.h"
-extern GtkWidget *displaywindow_gtkwindow(void);
-extern void displaywindow_open(ControlContext *ctx);
-extern void displaywindow_statusbar(const char *message);
-extern void error_report(const char *message);
+typedef struct dw_struct {
+
+ ControlContext *ctx;
+
+ GtkUIManager *ui;
+ GtkActionGroup *action_group;
+ GtkWidget *window;
+ GtkWidget *bigvbox;
+ GtkWidget *status_bar;
+ int view;
+ GtkWidget *drawing_area;
+
+ /* OpenGL stuff */
+ GLfloat distance;
+ GLfloat x_pos;
+ GLfloat y_pos;
+ float x_start;
+ float y_start;
+ float view_quat[4];
+ int fog;
+ GLuint gl_list_id; /* Display list for "everything else" */
+ int gl_use_buffers; /* 0=use vertex arrays only, otherwise use VBOs */
+ GLuint gl_ref_vertex_buffer; /* "Measured reflection" stuff */
+ GLfloat *gl_ref_vertex_array;
+ GLsizei gl_ref_num_vertices;
+ GLuint gl_marker_vertex_buffer; /* Marker "reflection" stuff */
+ GLuint gl_marker_normal_buffer;
+ GLfloat *gl_marker_vertex_array;
+ GLfloat *gl_marker_normal_array;
+ GLsizei gl_marker_num_vertices;
+ GLuint gl_gen_vertex_buffer; /* Generated reflection stuff */
+ GLuint gl_gen_normal_buffer;
+ GLfloat *gl_gen_vertex_array;
+ GLfloat *gl_gen_normal_array;
+ GLsizei gl_gen_num_vertices;
+
+} DisplayWindow;
+
+extern DisplayWindow *displaywindow_open(ControlContext *ctx);
+
+extern void displaywindow_update(DisplayWindow *dw);
#endif /* DISPLAYWINDOW_H */