WIP: Mal localisées, certes. Mais dessinées. N'est-ce pas encourageant ?
This commit is contained in:
parent
4cfa52b238
commit
b2d48ae243
|
@ -203,14 +203,14 @@ void write_one_arrow(int offset_vertex, int offset_colors, int offset_lines,
|
|||
graphics_write_color(0.3f, 0.3f, 0.3f);
|
||||
graphics_write_color(0.3f, 0.3f, 0.3f);
|
||||
|
||||
offset_vertex += 6;
|
||||
offset_colors += 6;
|
||||
/* offset_vertex += 6; */
|
||||
/* offset_colors += 6; */
|
||||
|
||||
graphics_write_line (offset_vertex + 0, offset_vertex + 1);
|
||||
graphics_write_line (offset_vertex + 2, offset_vertex + 3);
|
||||
graphics_write_line (offset_vertex + 4, offset_vertex + 5);
|
||||
|
||||
offset_lines += 3; // inutile...
|
||||
/* offset_lines += 3; // inutile... */
|
||||
|
||||
|
||||
|
||||
|
@ -233,8 +233,8 @@ void write_one_arrow(int offset_vertex, int offset_colors, int offset_lines,
|
|||
graphics_write_color(0.0f + nuance, 0.0f + nuance, 1.0f - nuance / 4);
|
||||
graphics_write_color(1.0f - nuance / 3, 1.0f - nuance / 3, 0.0f + nuance);
|
||||
|
||||
offset_vertex += 6;
|
||||
offset_colors += 6;
|
||||
/* offset_vertex += 6; */
|
||||
/* offset_colors += 6; */
|
||||
|
||||
switch(site){
|
||||
case EAST: case WEST: write_arrow_lines_east_west (offset_vertex, weight, site); break;
|
||||
|
@ -243,7 +243,7 @@ void write_one_arrow(int offset_vertex, int offset_colors, int offset_lines,
|
|||
default: break;
|
||||
}
|
||||
|
||||
offset_lines += 4; // inutile...
|
||||
/* offset_lines += 4; // inutile... */
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -875,14 +875,14 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
|||
int rand(void);
|
||||
void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min);
|
||||
|
||||
int arbitrary = 20;
|
||||
int arbitrary = 7;
|
||||
int space_X = 1 + rand() % arbitrary,
|
||||
space_Y = 1 + rand() % arbitrary,
|
||||
space_Z = 1 + rand() % arbitrary;
|
||||
int density_max = space_X * space_Y * space_Z;
|
||||
int max = fmax(space_X, space_Y); max = fmax(max, space_Z);
|
||||
|
||||
int specif_arrows_nb = 3;//rand() % density_max;
|
||||
int specif_arrows_nb = 7;//rand() % density_max;
|
||||
int arrows_nb = 0;
|
||||
int pref_show_grids = 1; // 0, 1, 2, 3, 5, 6, 10, 15, 30, etc
|
||||
// xyz, 0, x, y, z, xy, xz, yz, xyz
|
||||
|
|
Loading…
Reference in New Issue