summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-16 23:27:32 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-16 23:27:32 (GMT)
commitcd8e23c22e94a62a2b22d41808c83aa7cceb31f1 (patch) (unidiff)
tree270ab4f8a5d6113c24689c0cd8f3f8de0e0261b4
parent5ce19e150495d148c810bc655a5797d50d683bd4 (diff)
downloadexp005-cd8e23c22e94a62a2b22d41808c83aa7cceb31f1.zip
exp005-cd8e23c22e94a62a2b22d41808c83aa7cceb31f1.tar.gz
exp005-cd8e23c22e94a62a2b22d41808c83aa7cceb31f1.tar.bz2
Modified to use alpha.
-rw-r--r--src/controller/exp004processhits.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller/exp004processhits.c b/src/controller/exp004processhits.c
index d8ea5b6..ba551f3 100644
--- a/src/controller/exp004processhits.c
+++ b/src/controller/exp004processhits.c
@@ -39,6 +39,7 @@ exp004processhits (GLint hits, GLuint buffer[])
39 S.base_colors_data[*hitlist][0] = SELECT_COLOR_R;39 S.base_colors_data[*hitlist][0] = SELECT_COLOR_R;
40 S.base_colors_data[*hitlist][1] = SELECT_COLOR_G;40 S.base_colors_data[*hitlist][1] = SELECT_COLOR_G;
41 S.base_colors_data[*hitlist][2] = SELECT_COLOR_B;41 S.base_colors_data[*hitlist][2] = SELECT_COLOR_B;
42 S.base_colors_data[*hitlist][3] = SELECT_COLOR_A;
4243
43 hitlist++;44 hitlist++;
44 }45 }
@@ -46,7 +47,7 @@ exp004processhits (GLint hits, GLuint buffer[])
46 selection_to_db ();47 selection_to_db ();
4748
48 glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);49 glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);
49 glColorPointer (3, GL_FLOAT, 0, 0);50 glColorPointer (4, GL_FLOAT, 0, 0);
50 glBufferData (GL_ARRAY_BUFFER,51 glBufferData (GL_ARRAY_BUFFER,
51 sizeof (S.base_colors_data), S.base_colors_data,52 sizeof (S.base_colors_data), S.base_colors_data,
52 GL_STATIC_DRAW);53 GL_STATIC_DRAW);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.