DOKK / manpages / debian 11 / allegro4-doc / hline.3alleg4.en
hline(3alleg4) Allegro manual hline(3alleg4)

hline - Draws a horizontal line onto the bitmap. Allegro game programming library.

#include <allegro.h>

void hline(BITMAP *bmp, int x1, int y, int x2, int color);

Draws a horizontal line onto the bitmap, from point (x1, y) to (x2, y).

Note: hline() is implemented as an alias to another function. See ALLEGRO_NO_VHLINE_ALIAS in the `Differences between platforms' section for details.

vline(3alleg4), line(3alleg4), drawing_mode(3alleg4), makecol(3alleg4), exsprite(3alleg4)

version 4.4.3 Allegro