al_get_bitmap_width(3alleg5)

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

πŸ’– al_get_bitmap_width πŸ’–

okay bestie, welcome to the al_get_bitmap_width(3alleg5) page β€” yeah that's the manual name, it's giving very "Allegro 5 API" and we're obsessed πŸŽ€


✨ NAME ✨

al_get_bitmap_width β€” the Allegro 5 API function that tells you how wide your bitmap is, no cap 🌸


🌈 SYNOPSIS 🌈

#include <allegro5/allegro.h>

int al_get_bitmap_width(ALLEGRO_BITMAP *bitmap)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, you hand it a bitmap and it literally just returns the width of that bitmap in pixels. that's it. that's the whole vibe. ✨

one number, in pixels, and you're done. iconic behavior honestly πŸ‘‘


reminder bestie: the return type is int, and the thing you pass in is an ALLEGRO_BITMAP * β€” don't forget your #include <allegro5/allegro.h> or it's not gonna know what you're talking about 😭

and that's the whole page, fr fr πŸ’…

this was the Allegro reference manual edition of al_get_bitmap_width(3alleg5) β€” mwah, take care of your pixels, ily πŸ«ΆπŸŒΈπŸ’œ

πŸ“¦ where this page comes from