al_get_d3d_texture_size(3alleg5)
β¨ al_get_d3d_texture_size β¨
okay so bestie, welcome to the Allegro 5 API reference manual, page al_get_d3d_texture_size(3alleg5), and yes this one is specifically for the Direct3D girlies π ngl the whole page is tiny but it's doing its lil job and I respect it π
πΈ NAME πΈ
al_get_d3d_texture_size β Allegro 5 API. that's the whole name section, she's short and sweet π«Ά
π¦ SYNOPSIS π¦
#include <allegro5/allegro_direct3d.h>
bool al_get_d3d_texture_size(ALLEGRO_BITMAP *bitmap, int *width, int *height)
like look at her. two pointers, one bool, iconic. β¨
π DESCRIPTION π
okay so what this one does is it retrieves the size of the Direct3D texture that's being used for the bitmap. that's it. that's the whole vibe. π§
it returns true on success and false on failure β classic bool behaviour, no cap, she ate π
β οΈ important detail alert: if the bitmap is not a Direct3D bitmap, you get a width and height of zero back. like, literally0and0. so if your sizes are looking sus and both came back zero, that's your sign, bestie π
β SINCE β
5.1.0 β she's been here since 5.1.0, a real one fr fr π
π SEE ALSO π
al_get_d3d_texture_position(3alleg5)β the sibling, go read her too π¦
and that's the page!! thanks for coming to my ted talk π
this has been the Allegro reference manual, al_get_d3d_texture_size(3alleg5) β mwah, bye bestie, go check that bitmap is actually Direct3D before you come for me πβ¨π
π¦ 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