al_draw_line

void al_draw_line(float x1, float y1, float x2, float y2,
   ALLEGRO_COLOR color, float thickness)
Introduced in 5.0.0

Draws a line segment between two points.

Parameters:

See also: al_draw_soft_line

Examples: ex_blend_test, ex_draw, ex_font_justify, ex_fs_resize, ex_fs_window, ex_lines, ex_logo, ex_mixer_pp, ex_multisample, ex_pixelformat, ex_prim, ex_resize, ex_stream_seek, ex_ttf, ex_warp_mouse


Most helpful discussions:

Other recent discussions: