summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-13 21:52:26 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-13 21:52:26 (GMT)
commite5c98bc7e3d8ff5831864c19e3bcc8e0d9cb8f53 (patch) (unidiff)
treed1a9860b20e939b821d44b8a8555e02ac55a24a1
parent10608cc2ba31147619340a4ff1c36858878c2d30 (diff)
downloadexp005-e5c98bc7e3d8ff5831864c19e3bcc8e0d9cb8f53.zip
exp005-e5c98bc7e3d8ff5831864c19e3bcc8e0d9cb8f53.tar.gz
exp005-e5c98bc7e3d8ff5831864c19e3bcc8e0d9cb8f53.tar.bz2
Added selection status fields and removed points loaded field. It is
assumed that ROWS is the number of points loaded. This needs to be updated so that it is a dynamic run-time value.
-rw-r--r--src/model/exp004state.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/model/exp004state.h b/src/model/exp004state.h
index e45f679..669e4cb 100644
--- a/src/model/exp004state.h
+++ b/src/model/exp004state.h
@@ -67,11 +67,6 @@ typedef struct
67 } viewport;67 } viewport;
6868
69 /*69 /*
70 * Points loaded.
71 */
72 int points;
73
74 /*
75 * Buffer objects.70 * Buffer objects.
76 */71 */
77 unsigned int buffers[1];72 unsigned int buffers[1];
@@ -96,6 +91,21 @@ typedef struct
96 */91 */
97 bool selection[ROWS];92 bool selection[ROWS];
9893
94 /*
95 * Indicate if the user is currently defining a selection.
96 */
97 bool selecting;
98
99 /*
100 * X coordinate of mouse when selection mode initiated.
101 */
102 int select_x;
103
104 /*
105 * Y coordinate of mouse when selection mode initiated.
106 */
107 int select_y;
108
99} EXP004STATE;109} EXP004STATE;
100110
101#endif // EXP004STATE_H111#endif // EXP004STATE_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.