draw_rle_sprite(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ draw_rle_sprite β€” the Allegro manual, but make it cute ✨

okay bestie, welcome to draw_rle_sprite(3), straight out of the Allegro manual πŸ’– this is the page for the Allegro game programming library, and it's a short one, so let's get into it 🫢


🌸 NAME 🌸

draw_rle_sprite β€” draws an RLE sprite. that's it, that's the whole job πŸ’… (and yeah, it lives in the Allegro game programming library, icon behaviour only)


πŸŽ€ SYNOPSIS πŸŽ€

the way you summon it:

#include <allegro.h>

void draw_rle_sprite(BITMAP *bmp, const RLE_SPRITE *sprite, int x, int y);

look at that signature. bmp, sprite, x, y. clean, simple, no notes πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: draw_rle_sprite draws an RLE sprite onto a bitmap at the specified position. that's the whole vibe β€” you give it where to draw, what to draw, and the coordinates, and it handles the rest ✨

example, because seeing it is believing:

RLE_SPRITE *rle_sprite;
...
draw_rle_sprite(screen, rle_sprite, 100, 100);

see how easy that was?? screen is the bitmap, rle_sprite is the sprite, and 100, 100 is the position. lowkey obsessed πŸ˜­πŸ’–


🌈 SEE ALSO 🌈

go read these next, fr fr, they're all friends:


and that's the page!! πŸŽ€ this was Allegro version 4.4.3, and the page itself is draw_rle_sprite(3) β€” mwah, go draw something iconic bestie πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from