RLE_SPRITE(3)

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

🌸 RLE_SPRITE(3) β€” Allegro manual, bestie 🌸

✨ NAME ✨

RLE_SPRITE β€” Stores the contents of an RLE sprite. Allegro game programming library. iconic, fr fr.

πŸ’– SYNOPSIS πŸ’–

#include <allegro.h>

typedef struct RLE_SPRITE

πŸ¦‹ DESCRIPTION πŸ¦‹

The struct is giving:

int w, h;           - width and height in pixels
int color_depth;    - color depth of the image

So w and h are width and height in pixels, and color_depth is the color depth of the image. slay.

RLE sprites store the image in a simple run-length encoded format, where repeated zero pixels are replaced by a single length count, and strings of non-zero pixels are preceded by a counter giving the length of the solid run. Read chapter "RLE sprites" for a description of the restrictions and how to obtain/use this structure. iykyk.

πŸ‘‘ SEE ALSO πŸ‘‘


Allegro manual, version 4.4.3 β€” that's the footer tea, bestie. periodt πŸ’…πŸ«Ά

πŸ“¦ where this page comes from