Skip to content

Commit

Permalink
API GRAPHICS Fixed the reason the SETI@home 3D graph wasn't showing u…
Browse files Browse the repository at this point in the history
…p. If

this is a problem for other projects we can attempt to fork this file into
SETI@home.
  • Loading branch information
SETIguy committed Dec 9, 2015
1 parent e3022d8 commit 8fe6f95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/reduce_lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,11 @@ void REDUCED_ARRAY_RENDER::draw_row_rect_x(int row) {
glColor4f(color.r, color.g, color.b, alpha);

//front

glVertex3f(x0, y0, z0);
glVertex3f(x1, y0, z0);
glVertex3f(x1, y1, z0);
glVertex3f(x0, y1, z0);
/*

//back
glVertex3f(x0, y0, z1);
glVertex3f(x1, y0, z1);
Expand All @@ -175,12 +174,12 @@ void REDUCED_ARRAY_RENDER::draw_row_rect_x(int row) {
glVertex3f(x0, y1, z1);
glVertex3f(x1, y1, z1);
glVertex3f(x1, y1, z0);
*/

}
glEnd();


#if 0

//draw lines
mode_unshaded();
glLineWidth(.5f);
Expand All @@ -192,7 +191,7 @@ void REDUCED_ARRAY_RENDER::draw_row_rect_x(int row) {
float h = (row0[i]-rdata_min)/(rdata_max-rdata_min);

y1 = draw_pos[1] + draw_size[1]*h;

#ifdef DRAW_ROW_WITH_LINES
//front

glVertex3f(x0, y0, z0);
Expand Down Expand Up @@ -242,8 +241,9 @@ void REDUCED_ARRAY_RENDER::draw_row_rect_x(int row) {

glVertex3f(x1, y0, z1);
glVertex3f(x1, y0, z0);
}
#endif
}

glEnd();
break;
case GRAPH_STYLE_SURFACE:
Expand Down

0 comments on commit 8fe6f95

Please sign in to comment.