WIP: Bon. Là, ça marche mais je ne comprends pas pourquoi ! (ligne 724)
This commit is contained in:
parent
8b141f8844
commit
1e3c560eda
|
@ -713,7 +713,6 @@ static int create_arrow (GLuint *arrows, int arrows_nb, int weight, int site, in
|
|||
static int erase_arrow (GLuint *arrows, int arrows_nb, int address, int site, int x, int y, int z)
|
||||
{
|
||||
arrows_nb --;
|
||||
printf("\nerase_arrow (arrows_nb %d, address %d, site %d, x %d, y %d, z %d) \n", arrows_nb, address / 5, site, x, y, z);
|
||||
|
||||
if (arrows_nb > 0) {
|
||||
*(arrows + address + 0) = *(arrows + arrows_nb * 5 + 0);
|
||||
|
@ -722,7 +721,7 @@ static int erase_arrow (GLuint *arrows, int arrows_nb, int address, int site, in
|
|||
*(arrows + address + 3) = *(arrows + arrows_nb * 5 + 3);
|
||||
*(arrows + address + 4) = *(arrows + arrows_nb * 5 + 4);
|
||||
}
|
||||
buffer_lines_size -= (3 + 4) * 2;
|
||||
// buffer_lines_size -= (3 + 4) * 2; Warum ?
|
||||
buffer_lines_origin = g_realloc(buffer_lines_origin, buffer_lines_size * sizeof(GLuint));
|
||||
|
||||
show_arrows_array(arrows, arrows_nb, address, -1, 0, site, x, y, z);
|
||||
|
@ -803,7 +802,7 @@ void main_test_graphics (void)
|
|||
* are always defined (whether arrows are drawn or not). */
|
||||
arrows_write_terminations (space_X, space_Y, space_Z);
|
||||
|
||||
// arrows_nb = set_arrow (arrows, arrows_nb, 0, 0, 0, 0, 0);
|
||||
arrows_nb = set_arrow (arrows, arrows_nb, 0, 0, 0, 0, 0);
|
||||
arrows_nb = set_arrow (arrows, arrows_nb, 8, 1, 3, 0, 0);
|
||||
arrows_nb = set_arrow (arrows, arrows_nb, 0, 1, 1, 0, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue