hline man page

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.

See Also

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

Referenced By

exsprite(3), fastline(3), line(3), vline(3).

Explore man page connections for hline(3).

Allegro version 4.4.2 Allegro manual