aboutsummaryrefslogtreecommitdiff
path: root/src/control.h
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-31 16:23:33 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-31 16:23:33 +0000
commit9211fbeed3b968f3364dcb42f4b3b48b78e4ad0b (patch)
treef3c4e52fe3741a62bd43bc91236e7b4f359d53e2 /src/control.h
parent9649fcb9e495eb7943bf939845a36cae192e4f20 (diff)
Big performance increase due to using vertex arrays for rendering
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@102 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/control.h')
-rw-r--r--src/control.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/control.h b/src/control.h
index ac3a357..69d57f6 100644
--- a/src/control.h
+++ b/src/control.h
@@ -18,6 +18,7 @@
#include <gtk/gtk.h>
#include <inttypes.h>
+#include <GL/gl.h>
#define MAX_IMAGES 256
@@ -115,6 +116,20 @@ typedef struct cctx_struct {
GtkWidget *combo_peaksearch;
GtkWidget *checkbox_prealign;
GtkWidget *checkbox_savecache;
+ GLuint gl_list_id;
+// GLuint gl_ref_buffer;
+// GLuint gl_element_buffer;
+ GLfloat *gl_ref_vertex_array;
+ GLuint *gl_ref_element_array;
+ GLsizei gl_ref_num_vertices;
+
+ GLfloat *gl_marker_vertex_array;
+ GLuint *gl_marker_element_array;
+ GLsizei gl_marker_num_vertices;
+
+ GLfloat *gl_gen_vertex_array;
+ GLuint *gl_gen_element_array;
+ GLsizei gl_gen_num_vertices;
} ControlContext;