hline(3)

πŸ“¦
version 4.4.3.1 Β· 2 versions
, in fedora 43, fedora 44

πŸ’– hline(3) β€” the Allegro manual, but make it make sense πŸ’–

okay bestie, sit down, hydrate, because we're learning about hline from the Allegro game programming library and it's honestly so much easier than it sounds. πŸŽ€


✨ NAME ✨

hline β€” Draws a horizontal line onto the bitmap. Allegro game programming library. πŸ¦‹


🌸 SYNOPSIS 🌸

#include <allegro.h>

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

πŸ’… DESCRIPTION πŸ’…

So basically, hline() draws a horizontal line onto the bitmap, going from point (x1, y) all the way to point (x2, y). That's it. That's the whole vibe. It's giving "straight line, no thoughts, head empty, horizontal." 😌✨

⚠️ Note, bestie, this one matters: hline() is implemented as an alias to another function. So if you're out here expecting it to be its own special independent little function… no. It's an alias. 🫢 See ALLEGRO_NO_VHLINE_ALIAS in the Differences between platforms section for details β€” that's where the tea is. πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, periodt. πŸ’œ this manual came to you courtesy of Allegro, version 4.4.3 β€” go forth and draw your little horizontal lines, you main character. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from