WIP: Bon. Là, tout est pour lemieux dans le meilleur des mondes (et pourtant,...).
This commit is contained in:
parent
45b9ac399c
commit
aee593e6c3
|
@ -819,8 +819,6 @@ bool graphics_shutdown(const void *gl_area)
|
|||
|
||||
void main_test_graphics (void)
|
||||
{
|
||||
long weight = 0, site = 0, stx = zzz * yyy, sty = zzz, stz = 1, arrow_offset = 0;
|
||||
|
||||
if (0) printf("buffer_vertex_offset_before_grid = %d\n", buffer_vertex_size / 3);
|
||||
|
||||
// assert : l'emplacement des flèches est contraint
|
||||
|
@ -830,7 +828,7 @@ void main_test_graphics (void)
|
|||
GLuint arrows[] = {
|
||||
1, 0, 0, 0, 0,
|
||||
// 1, 1, 0, 0, 0,
|
||||
1, 1, 0, 0, 0,
|
||||
// 1, 1, 0, 0, 0,
|
||||
// 1, 0, 2, 0, 0,
|
||||
1, 1, 1, 0, 0,
|
||||
1, 1, 2, 0, 0,
|
||||
|
@ -850,6 +848,8 @@ void main_test_graphics (void)
|
|||
int arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5;
|
||||
|
||||
get_model_data_and_user_preferences(arrows, arrows_nb);
|
||||
long weight = 0, site = 0,
|
||||
stx = zzz * yyy, sty = zzz, stz = 1, arrow_offset = 0;
|
||||
|
||||
/* GRID */
|
||||
grid_write_intersections (xxx, yyy, zzz);
|
||||
|
@ -863,20 +863,20 @@ void main_test_graphics (void)
|
|||
int offset_after_grids = buffer_vertex_size / 3;
|
||||
int buffer_lines_size_after_cubes = buffer_lines_size;
|
||||
|
||||
int offset_up_to_this_cube_coords = 0, x,y,z;
|
||||
int offset_up_to_this_cube_coords = 0, x, y, z;
|
||||
|
||||
/* ARROWS */
|
||||
|
||||
arrows_write_terminations (xxx, yyy, zzz); // Independent of the number of arrows
|
||||
|
||||
set_arrow (arrows, arrows_nb, 0, 0, 0, 0, 0); arrows_nb --;
|
||||
set_arrow (arrows, arrows_nb, 0, 0, 7, 0, 0); arrows_nb --;
|
||||
// set_arrow (arrows, arrows_nb, 0, 1, 1, 0, 0); arrows_nb --;
|
||||
// set_arrow (arrows, arrows_nb, 0, 1, 0, 0, 0); arrows_nb --;
|
||||
// set_arrow (arrows, arrows_nb, 0, 0, 0, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb --;
|
||||
// set_arrow (arrows, arrows_nb, 0, 0, 7, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb --;
|
||||
// set_arrow (arrows, arrows_nb, 0, 1, 1, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb --;
|
||||
// set_arrow (arrows, arrows_nb, 0, 1, 0, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb --;
|
||||
|
||||
// set_arrow (arrows, arrows_nb, 1, 0, 1, 0, 0); arrows_nb ++;
|
||||
// set_arrow (arrows, arrows_nb, 1, 1, 1, 0, 0); arrows_nb ++;
|
||||
// set_arrow (arrows, arrows_nb, 1, 0, 0, 0, 0); arrows_nb ++;
|
||||
// set_arrow (arrows, arrows_nb, 1, 0, 1, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb ++;
|
||||
// set_arrow (arrows, arrows_nb, 1, 1, 1, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb ++;
|
||||
// set_arrow (arrows, arrows_nb, 1, 0, 0, 0, 0); arrows_nb = sizeof(arrows) / sizeof(arrows[0]) / 5; // arrows_nb ++;
|
||||
|
||||
for (int i = 0; i < arrows_nb; i++) {
|
||||
weight = arrows[i * 5 + 0];
|
||||
|
|
Loading…
Reference in New Issue