Eh bééh voilà : on peut s'amuser
This commit is contained in:
parent
24ffed7223
commit
98b77ec4d9
|
@ -892,7 +892,7 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
|||
write_space_ridges (offset_vertex, offset_colors, offset_lines, space_X, space_Y, space_Z);
|
||||
|
||||
offset_vertex = 8, offset_colors = 8, offset_lines = 12;
|
||||
write_space_faces_grids (offset_vertex, offset_colors, offset_lines, space_X, space_Y, space_Z, 1);
|
||||
write_space_faces_grids (offset_vertex, offset_colors, offset_lines, space_X, space_Y, space_Z, 0);
|
||||
|
||||
/* ARROWS */
|
||||
/* NB The 12 vertices required to draw 6 arrows in each cube
|
||||
|
|
|
@ -41,6 +41,15 @@ void write_space_ridges (long offset_vertex, long offset_colors, long offset_lin
|
|||
|
||||
graphics_write_vertex (+ x / max, + y / max, + z / max);
|
||||
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
graphics_write_color (0.9f, 0.4f, 0.2f);
|
||||
|
||||
graphics_write_line ( 0, 1); graphics_write_line ( 7, 4);
|
||||
graphics_write_line ( 0, 2); graphics_write_line ( 7, 5);
|
||||
graphics_write_line ( 0, 3); graphics_write_line ( 7, 6);
|
||||
|
@ -100,8 +109,8 @@ void write_space_faces_grids (long offset_vertex, long offset_colors, long offse
|
|||
graphics_write_line (offset_vertex + i * 4 + 3, offset_vertex + i * 4 + 0);
|
||||
}
|
||||
|
||||
offset_vertex += (y - 2) * 4;
|
||||
offset_colors += (y - 2) * 4;
|
||||
offset_vertex += (y - 1) * 4;
|
||||
offset_colors += (y - 1) * 4;
|
||||
|
||||
for (i = 1; i < z; i++) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue