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) (side-by-side diff)
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[])
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;
+ S.base_colors_data[*hitlist][3] = SELECT_COLOR_A;
hitlist++;
}
@@ -46,7 +47,7 @@ exp004processhits (GLint hits, GLuint buffer[])
selection_to_db ();
glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);
- glColorPointer (3, GL_FLOAT, 0, 0);
+ glColorPointer (4, GL_FLOAT, 0, 0);
glBufferData (GL_ARRAY_BUFFER,
sizeof (S.base_colors_data), S.base_colors_data,
GL_STATIC_DRAW);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.