summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--AUTHORS1
-rw-r--r--Makefile.am2
-rw-r--r--README24
-rw-r--r--ax/acx_pthread.m4242
-rw-r--r--ax/ax_check_gl.m495
-rw-r--r--ax/ax_check_glu.m471
-rw-r--r--ax/ax_check_glut.m478
-rw-r--r--ax/ax_lang_compiler_ms.m423
-rw-r--r--configure.ac24
-rw-r--r--src/Makefile.am28
-rw-r--r--src/controller/exp004display.c16
-rw-r--r--src/controller/exp004display.h6
-rw-r--r--src/controller/exp004mouse.c90
-rw-r--r--src/controller/exp004mouse.h6
-rw-r--r--src/controller/exp004processhits.c54
-rw-r--r--src/controller/exp004processhits.h8
-rw-r--r--src/controller/exp004reshape.c55
-rw-r--r--src/controller/exp004reshape.h6
-rw-r--r--src/exp004viz.c15
-rw-r--r--src/model/exp004base.c107
-rw-r--r--src/model/exp004base.h9
-rw-r--r--src/model/exp004state.h101
-rw-r--r--src/util/check_error.c17
-rw-r--r--src/util/check_error.h9
-rw-r--r--src/view/exp004geometry.c32
-rw-r--r--src/view/exp004geometry.h8
-rw-r--r--src/view/exp004state0.h8
-rw-r--r--src/view/exp004view.c44
-rw-r--r--src/view/exp004view.h6
29 files changed, 1185 insertions, 0 deletions
diff --git a/src/model/exp004state.h b/src/model/exp004state.h
new file mode 100644
index 0000000..e45f679
--- a/dev/null
+++ b/src/model/exp004state.h
@@ -0,0 +1,101 @@
+#ifndef EXP004STATE_H
+#define EXP004STATE_H
+
+#include <stdbool.h>
+
+/*
+ * Buffer object identifiers.
+ */
+#define BASE_VERTICES 0
+#define BASE_COLORS 1
+
+/*
+ * Vertices in the graph.
+ */
+#define ROWS 83905
+
+#define DEFAULT_COLOR_R 0.2
+#define DEFAULT_COLOR_G 0.2
+#define DEFAULT_COLOR_B 0.2
+
+#define SELECT_COLOR_R 1.0
+#define SELECT_COLOR_G 1.0
+#define SELECT_COLOR_B 1.0
+
+/*
+ * Maintain state of the model.
+ */
+typedef struct
+{
+
+ /*
+ * Track the bounding box of the points.
+ */
+ struct {
+ float min_x;
+ float max_x;
+ float min_y;
+ float max_y;
+ } bb;
+
+ /*
+ * Minimum coordinate for the orthographic projection.
+ */
+ float ortho_min;
+
+ /*
+ * Maximum coordinate for the orthographic projection.
+ */
+ float ortho_max;
+
+ /*
+ * Orthographic coordinates after aspect preserving scaling.
+ */
+ struct {
+ float min_x;
+ float max_x;
+ float min_y;
+ float max_y;
+ } ortho;
+
+ /*
+ * Viewport size.
+ */
+ struct {
+ int w;
+ int h;
+ } viewport;
+
+ /*
+ * Points loaded.
+ */
+ int points;
+
+ /*
+ * Buffer objects.
+ */
+ unsigned int buffers[1];
+
+ /*
+ * GI Identifiers indexed by row.
+ */
+ char gi_data[ROWS][20];
+
+ /*
+ * 2D coordinates for each protein.
+ */
+ float base_vertices_data[ROWS][2];
+
+ /*
+ * RGB color for each protein.
+ */
+ float base_colors_data[ROWS][3];
+
+ /*
+ * Selection list.
+ */
+ bool selection[ROWS];
+
+} EXP004STATE;
+
+#endif // EXP004STATE_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.