void reflecteur_draw(void) { int i = 0; const float red[3] = {1,0,0}; graphic_set_color3fv(red); // in red graphic_set_line_width(REFLECTEUR_LINE_WIDTH); for ( i = 0; i < nb_reflecteur; i++) graphic_draw_segments(tab_r[i].p1.x, tab_r[i].p1.y, tab_r[i].p2.x, tab_r[i].p2.y); }
void photon_drawing() { graphic_set_line_width(2.); graphic_set_color3f(0.0,0.0,0.0); PHOTON_LISTE* element = tete; while(element != NULL) { graphic_draw_circle((element->ph).position.x, (element->ph).position.y, EPSIL_PROJ/2, GRAPHIC_EMPTY); element = element->suivant; } }