al_get_d3d_texture_size(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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, literally 0 and 0. 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 🌈


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