ALLEGRO_BITMAP_WRAP(3alleg5)
β¨ ALLEGRO_BITMAP_WRAP β¨
okay bestie, welcome to the Allegro 5 API β this page lives in the Allegro reference manual, and it's about ALLEGRO_BITMAP_WRAP, which is genuinely iconic if you're the kind of girl who thinks about texture coordinates at 2am (me, it's me π
).
πΈ NAME πΈ
ALLEGRO_BITMAP_WRAP β the Allegro 5 API, but make it about wrapping π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
typedef enum ALLEGRO_BITMAP_WRAP {
π DESCRIPTION π
so basically, this enum controls how the pixel color gets determined when you're querying a texture and the texture coordinates are outside the usual bounds. like, you asked for a spot that's off the edge of the texture. what happens next? that's this. no cap π«Ά
ALLEGRO_BITMAP_WRAP_DEFAULTβ the default behavior, the one that just shows up with no effort (main character energy fr). This corresponds toALLEGRO_BITMAP_WRAP_REPEATwhen you're using the primitives addon, andALLEGRO_BITMAP_WRAP_CLAMPotherwise. so it's giving shapeshifter, lowkey πALLEGRO_BITMAP_WRAP_REPEATβ the texture coordinates get shifted to the opposite edge that they go past. so you walk off the right side and boom, you're back on the left. revolving door vibes πALLEGRO_BITMAP_WRAP_CLAMPβ the texture coordinates get clamped to the edges that they go past. you go past the edge? okay bestie, you live on the edge now. held in place, respectfully πALLEGRO_BITMAP_WRAP_MIRRORβ the texture coordinates get mirrored across the edges that they go past. it's the same as repeat except it's flipped, like looking in a mirror. obsessed β¨
heads up babes, these are literally the only four values in the enum β nothing else is hiding in here, promise π
and that's the whole page, you ate it π this was ALLEGRO_BITMAP_WRAP(3alleg5) from the Allegro reference manual β go forth and wrap those coordinates, bestie. mwah π
ππ¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms