Compare commits
No commits in common. "1a8b292cabd7f0e450b94262496227224d25c715" and "bf0e192615a65a3fa7dc51f1ffc0e61499132323" have entirely different histories.
1a8b292cab
...
bf0e192615
|
@ -135,29 +135,17 @@ int write_one_arrow_vertex (int offset_vertex,
|
|||
GLfloat arrow_tip_padding = (1 / max) / 10;
|
||||
|
||||
switch(site){
|
||||
case EAST:
|
||||
graphics_write_vertex (vx + (site % 2 - 1) * (1 / max) - (site % 2 - 1) * arrow_tip_padding, vy, vz);
|
||||
case EAST: case WEST:
|
||||
graphics_write_vertex (vx + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding, vy, vz);
|
||||
graphics_write_color (1.0f, 0.0f, 0.0f);
|
||||
break;
|
||||
case WEST:
|
||||
graphics_write_vertex (vx + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding, vy, vz);
|
||||
graphics_write_color (0.0f, 1.0f, 1.0f);
|
||||
break;
|
||||
case ZENITH:
|
||||
graphics_write_vertex (vx, vy + (site % 2 - 1) * (1 / max) - (site % 2 - 1) * arrow_tip_padding, vz);
|
||||
case ZENITH: case NADIR:
|
||||
graphics_write_vertex (vx, vy + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding, vz);
|
||||
graphics_write_color(0.0f, 1.0f, 0.0f);
|
||||
break;
|
||||
case NADIR:
|
||||
graphics_write_vertex (vx, vy + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding, vz);
|
||||
graphics_write_color(1.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
case SOUTH:
|
||||
graphics_write_vertex (vx, vy, vz + (site % 2 - 1) * (1 / max) - (site % 2 - 1) * arrow_tip_padding);
|
||||
graphics_write_color(0.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
case NORTH:
|
||||
case SOUTH: case NORTH:
|
||||
graphics_write_vertex (vx, vy, vz + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding);
|
||||
graphics_write_color(1.0f, 1.0f, 0.0f);
|
||||
graphics_write_color(0.0f, 0.0f, 1.0f);
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
|
|
@ -683,7 +683,7 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
|||
int density_max = space_X * space_Y * space_Z;
|
||||
int max = fmax(space_X, space_Y); max = fmax(max, space_Z);
|
||||
|
||||
int show_space_design = 1, print_arrows_data = 0;
|
||||
int show_space_design = 1, print_arrows_data = 1;
|
||||
|
||||
int load = 0, site = 0, x = 0, y = 0, z = 0;
|
||||
int specif_arrows_nb = rand() % density_max / 3;
|
||||
|
@ -775,3 +775,4 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
|||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue