COMPILED_SPRITE(3)
β¨ COMPILED_SPRITE β¨
okay bestie, so this is a page from the Allegro manual β like, the actual Allegro game programming library β and today's main character is COMPILED_SPRITE. it stores the contents of a compiled sprite. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
typedef struct COMPILED_SPRITE
π DESCRIPTION π
so here's what's inside the struct, no cap:
short planar;β set if it's a planar (mode-X) sprite πshort color_depth;β the color depth of the image πshort w, h;β the size of the sprite π
and now the wild part: compiled sprites aren't stored as pixels, they're stored as actual machine code instructions that draw a specific image onto a bitmap, using mov instructions with immediate data values. like, the sprite is the code. it's giving main character energy fr fr. π₯
bestie pls go read the chapter "Compiled sprites" β it explains the restrictions and how to obtain/use this structure. iykyk, don't skip it. π«Ά
π¦ SEE ALSO π¦
okay that's the whole page, you ate that π β¨ this was Allegro, version 4.4.3 β mwah, go forth and compile ur sprites, bestie ππ¦π
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms