al_set_new_bitmap_wrap(3alleg5)
π al_set_new_bitmap_wrap β Allegro 5 API π
okay bestie, welcome to the Allegro reference manual β¨ this one's a lil function called al_set_new_bitmap_wrap, and she's lowkey niche but highkey important, so let's get into it π«Ά
π NAME π
al_set_new_bitmap_wrap β Allegro 5 API
literally that's the whole vibe of this page, bestie. one function. one job. slay.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_set_new_bitmap_wrap(ALLEGRO_BITMAP_WRAP u, ALLEGRO_BITMAP_WRAP v)
two args, u and v, both of them ALLEGRO_BITMAP_WRAP typed. that's the whole signature, no cap π
πΈ DESCRIPTION πΈ
so what does she DO? she sets the texture wrapping settings for newly created bitmaps β and yes, specifically on the current thread, okay? like, thread-specific energy. main character but only in her own thread. periodt π
and how do you usually actually use this setting once you've set it? two ways, bestie:
- via the primitives addon β think
al_draw_prim(3alleg5)and friends π§ - or via custom shaders β that's
ALLEGRO_SHADER(3alleg5)if you wanna go look π
β οΈ Note: okay so when we're talking about custom shaders,Direct3DandOpenGLare NOT on the same page about how fine-grained this setting is.Direct3Dsets the wrapping setting for each sampler separately, whileOpenGLsets it per-texture. and the way that this interacts particularly poorly with the primitives addon β which, for backwards compatibility, alters the wrapping setting β is genuinely giving chaos π to minimize this whole mess, use a wrapping setting that's notALLEGRO_BITMAP_WRAP_DEFAULT. fr fr, just don't.
β SINCE β
5.2.8 β she's a newer girlie, born in 5.2.8 π¦
π [Unstable API]: this is an experimental feature. so like, she's cute, she works, but she's still figuring herself out. proceed with that in mind, bestie.
π SEE ALSO π
ALLEGRO_BITMAP_WRAP(3alleg5)β go read her, she explains the wrap values π
and that's the whole page, bestie!! π this was the Allegro reference manual version of al_set_new_bitmap_wrap(3alleg5), so if you ever need her again just pull up the manpage, iykyk πΈ go forth and wrap those textures responsibly, 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