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) (side-by-side diff)
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
} viewport;
/*
- * Points loaded.
- */
- int points;
-
- /*
* Buffer objects.
*/
unsigned int buffers[1];
@@ -96,6 +91,21 @@ typedef struct
*/
bool selection[ROWS];
+ /*
+ * Indicate if the user is currently defining a selection.
+ */
+ bool selecting;
+
+ /*
+ * X coordinate of mouse when selection mode initiated.
+ */
+ int select_x;
+
+ /*
+ * Y coordinate of mouse when selection mode initiated.
+ */
+ int select_y;
+
} EXP004STATE;
#endif // EXP004STATE_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.