WIP: ... le nez sur l'erreur ... (mais je ne la vois pas)
This commit is contained in:
parent
26d5a3f6ae
commit
a6ea913337
|
@ -64,15 +64,15 @@ int write_one_arrow_vertex (int space_X_int, int space_Y_int, int space_Z_int,
|
|||
break;
|
||||
case ZENITH:
|
||||
graphics_write_vertex (vx, vy - (site % 2 - 1) * (1 / max) + (site % 2 - 1) * arrow_tip_padding, vz, print);
|
||||
graphics_write_color(0.0f, 1.0f, 0.0f);
|
||||
graphics_write_color(0.0f, 0.9f, 0.0f);
|
||||
break;
|
||||
case NADIR:
|
||||
graphics_write_vertex (vx, vy - (site % 2) * (1 / max) + (site % 2) * arrow_tip_padding, vz, print);
|
||||
graphics_write_color(0.7f, 0.2f, 0.2f);
|
||||
graphics_write_color(0.7f, 0.3f, 0.9f);
|
||||
break;
|
||||
case SOUTH:
|
||||
graphics_write_vertex (vx, vy, vz + (site % 2 - 1) * (1 / max) - (site % 2 - 1) * arrow_tip_padding, print);
|
||||
graphics_write_color(0.3f, 0.1f, 0.6f);
|
||||
graphics_write_color(0.0f, 0.4f, 1.0f);
|
||||
break;
|
||||
case NORTH:
|
||||
graphics_write_vertex (vx, vy, vz + (site % 2) * (1 / max) - (site % 2) * arrow_tip_padding, print);
|
||||
|
|
|
@ -903,9 +903,10 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
|||
0,//rand() % space_Y, // y
|
||||
0);//rand() % space_Z); // z
|
||||
|
||||
int address = 3;
|
||||
int address = 0;
|
||||
|
||||
if (1) printf("buffer_lines_0_arrow = %d address = %d buffer_lines_size = %d >>>", buffer_lines_0_arrow, address, buffer_lines_size);
|
||||
if (1) printf("buffer_lines_0_arrow = %d address = %d buffer_lines_size = %d >>>",\
|
||||
buffer_lines_0_arrow, address, buffer_lines_size);
|
||||
buffer_lines_origin [(long) buffer_lines_0_arrow + address * 2 + 0] = buffer_lines_origin[(long) buffer_lines_size - 2];
|
||||
buffer_lines_origin [(long) buffer_lines_0_arrow + address * 2 + 1] = buffer_lines_origin[(long) buffer_lines_size - 1];
|
||||
|
||||
|
@ -934,6 +935,34 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
printf("buffer_lines_0_arrow = %d\n", buffer_lines_0_arrow);
|
||||
|
||||
for (long h = buffer_lines_0_arrow - 6; h < buffer_lines_size + 6; h++) {
|
||||
if (h == buffer_lines_0_arrow) printf("\n");
|
||||
if (h == buffer_lines_0_arrow + 6) printf("\n");
|
||||
if (h % 2 == 0) printf("\n");
|
||||
printf("%2d ", buffer_lines_origin [h]);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
for (long a = buffer_vertex_0_arrow - 3; a < buffer_vertex_size; a++) {
|
||||
if (a % 6 == 0) printf("\n");
|
||||
if (a % 3 == 0) printf("\n");
|
||||
printf("%5.2f ", buffer_vertex_origin [a]);
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* arrows_nb = set_arrow (arrows_ptr, arrows_nb, space_X, space_Y, space_Z, */
|
||||
/* 0,//rand() % arbitrary + 1, // load / weight */
|
||||
/* 0,//rand() % 6, // site, */
|
||||
|
|
Loading…
Reference in New Issue