summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/model/exp004base.sqc11
-rw-r--r--src/model/exp004state.h35
-rw-r--r--src/view/exp004init.c5
-rw-r--r--src/view/exp004view.c4
4 files changed, 18 insertions, 37 deletions
diff --git a/src/model/exp004state.h b/src/model/exp004state.h
index e3106ec..11e9ebd 100644
--- a/src/model/exp004state.h
+++ b/src/model/exp004state.h
@@ -1,7 +1,8 @@
1#ifndef EXP004STATE_H1#ifndef EXP004STATE_H
2#define EXP004STATE_H2#define EXP004STATE_H
33
4#include <stdbool.h>4#include "selection_info.h"
5#include "zoom_info.h"
56
6/*7/*
7 * Buffer object identifiers.8 * Buffer object identifiers.
@@ -9,11 +10,6 @@
9#define BASE_VERTICES 010#define BASE_VERTICES 0
10#define BASE_COLORS 111#define BASE_COLORS 1
1112
12/*
13 * Vertices in the graph.
14 */
15#define ROWS 83905
16
17#define DEFAULT_COLOR_R 0.513#define DEFAULT_COLOR_R 0.5
18#define DEFAULT_COLOR_G 0.514#define DEFAULT_COLOR_G 0.5
19#define DEFAULT_COLOR_B 0.515#define DEFAULT_COLOR_B 0.5
@@ -88,31 +84,10 @@ typedef struct
88 */84 */
89 float base_colors_data[ROWS][4];85 float base_colors_data[ROWS][4];
9086
91 /*87 SELECTION_INFO selection;
92 * Selection list.
93 */
94 bool selection[ROWS];
95
96 /*
97 * Indicate if the user is currently defining a selection.
98 */
99 bool selecting;
100
101 /*
102 * X coordinate of mouse when selection mode initiated.
103 */
104 int select_x;
105
106 /*
107 * Y coordinate of mouse when selection mode initiated.
108 */
109 int select_y;
110
111 /*
112 * Indicate if a selection should be used for a new set or a zoom region.
113 */
114 bool zoom;
11588
89 ZOOM_INFO zoom;
90
116} EXP004STATE;91} EXP004STATE;
11792
118#endif // EXP004STATE_H93#endif // EXP004STATE_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.