OK VERTEX D'ABORD, LIGNES ENSUITE - Vérifié graphiquement pour de petits nombres tirés au sort

This commit is contained in:
Jean Sirmai 2023-10-17 22:21:18 +02:00
parent ab5942d0bf
commit c9245ce444
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 3 additions and 1 deletions

View File

@ -677,7 +677,7 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
int rand(void); int rand(void);
void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min); void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min);
int arbitrary = 300; int arbitrary = 10;
int space_X = 1 + rand() % arbitrary, int space_X = 1 + rand() % arbitrary,
space_Y = 1 + rand() % arbitrary, space_Y = 1 + rand() % arbitrary,
space_Z = 1 + rand() % arbitrary; space_Z = 1 + rand() % arbitrary;
@ -773,5 +773,7 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
free(arrows); free(arrows);
arrows = NULL; arrows = NULL;
arrows_nb = 0; arrows_nb = 0;
} }