WIP: Fonction 'erase_arrow' première ébauche.
This commit is contained in:
parent
945e7be9ad
commit
41200d1afe
|
@ -642,7 +642,7 @@ static void compute_buffers_sizes(int model_space_size_x,
|
|||
|
||||
// buffer_lines_size += 16 + 20; // draw a small cube with diagonals
|
||||
|
||||
// buffer_lines_size -= 2; TEST !
|
||||
buffer_lines_size -= 2;
|
||||
|
||||
if (1) printf("allocated buffers sizes :%4d/3 = %3d vertices, %4d/3 = %3d colors,\
|
||||
%4d/2 = %3d lines, %4d/3 = %3d plans.\n",
|
||||
|
@ -689,11 +689,11 @@ static bool erase_arrow (GLuint *arrows, int arrows_nb, long address,
|
|||
*(arrows + address + 3) = *(arrows + (arrows_nb - 1) * 5 + 3);
|
||||
*(arrows + address + 4) = *(arrows + (arrows_nb - 1) * 5 + 4);
|
||||
|
||||
*(arrows + (arrows_nb - 1) * 5 + 0) = 0; // est-ce bien utile ?
|
||||
*(arrows + (arrows_nb - 1) * 5 + 1) = 0;
|
||||
*(arrows + (arrows_nb - 1) * 5 + 2) = 0;
|
||||
*(arrows + (arrows_nb - 1) * 5 + 3) = 0;
|
||||
*(arrows + (arrows_nb - 1) * 5 + 4) = 0;
|
||||
/* *(arrows + (arrows_nb - 1) * 5 + 0) = 0; // est-ce bien utile ? */
|
||||
/* *(arrows + (arrows_nb - 1) * 5 + 1) = 0; */
|
||||
/* *(arrows + (arrows_nb - 1) * 5 + 2) = 0; */
|
||||
/* *(arrows + (arrows_nb - 1) * 5 + 3) = 0; */
|
||||
/* *(arrows + (arrows_nb - 1) * 5 + 4) = 0; */
|
||||
|
||||
arrows_nb --;
|
||||
buffer_lines_size -= 14;
|
||||
|
@ -815,6 +815,10 @@ void graphics_init_buffers(const void *gl_area)
|
|||
|
||||
set_arrow(arrows, arrows_nb, 0, 4, 3, 0, 0);
|
||||
set_arrow(arrows, arrows_nb, 0, 5, 3, 0, 1);
|
||||
set_arrow(arrows, arrows_nb, 0, 5, 2, 1, 1);
|
||||
set_arrow(arrows, arrows_nb, 0, 4, 2, 1, 0);
|
||||
set_arrow(arrows, arrows_nb, 0, 2, 2, 1, 1);
|
||||
set_arrow(arrows, arrows_nb, 0, 3, 2, 2, 1);
|
||||
|
||||
draw_some_arrows (buffer_lines_origin, s,
|
||||
model_space_size_z * model_space_size_y, model_space_size_z,
|
||||
|
|
Loading…
Reference in New Issue