summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-18 21:14:23 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-18 21:14:23 (GMT)
commita2c45b292240e0fdc867f6796ac67683542aeee1 (patch) (side-by-side diff)
tree41c97cc24eaf5c4be92a6b4019658606ebb519b9
parente12911ab4f43b83aa86d92723ebe59231dd16d6b (diff)
downloadexp005-a2c45b292240e0fdc867f6796ac67683542aeee1.zip
exp005-a2c45b292240e0fdc867f6796ac67683542aeee1.tar.gz
exp005-a2c45b292240e0fdc867f6796ac67683542aeee1.tar.bz2
Implemented zooming.
-rw-r--r--src/controller/exp004processhits.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller/exp004processhits.c b/src/controller/exp004processhits.c
index ba551f3..84f8b8d 100644
--- a/src/controller/exp004processhits.c
+++ b/src/controller/exp004processhits.c
@@ -3,7 +3,7 @@
#define GL_GLEXT_PROTOTYPES
#include "exp004processhits.h"
-#include "selection_to_db.h"
+#include "selsave.h"
#include "../view/exp004state0.h"
#include <stdio.h>
@@ -35,7 +35,7 @@ exp004processhits (GLint hits, GLuint buffer[])
/*
* Add the hits to the selection.
*/
- S.selection[*hitlist] = true;
+ S.selection.set[*hitlist] = true;
S.base_colors_data[*hitlist][0] = SELECT_COLOR_R;
S.base_colors_data[*hitlist][1] = SELECT_COLOR_G;
S.base_colors_data[*hitlist][2] = SELECT_COLOR_B;
@@ -44,7 +44,7 @@ exp004processhits (GLint hits, GLuint buffer[])
hitlist++;
}
- selection_to_db ();
+ selsave ();
glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);
glColorPointer (4, GL_FLOAT, 0, 0);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.