get_gfx_mode(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– get_gfx_mode(3) πŸ’–

okay bestie, welcome to the Allegro manual β€” yes, that Allegro, the game programming library, and yes we're about to make a whole function sound cute. it's giving "one tiny function, maximum main character energy" ✨


πŸŽ€ NAME πŸŽ€

get_gfx_mode β€” tells you the id of the graphics driver that's currently in use. Allegro game programming library represent πŸ’…


🌸 SYNOPSIS 🌸

#include <allegro.h>

int get_gfx_mode();

like. that's it. that's the whole vibe. no arguments, no drama, no notes 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this function lets you figure out which graphics driver allegro currently has set. that's literally its whole job and it does it flawlessly, no cap.

and if no graphics driver is set at all? she doesn't crash, she doesn't ghost you, she just returns GFX_NONE. icon behavior honestly 😭


⭐ RETURN VALUE ⭐

  • returns the id of the current graphics driver if there is one πŸ’–
  • returns GFX_NONE if none is set πŸ“

that's the whole contract, periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

iykyk 🌈


ngl if you're calling this before setting any graphics mode, don't be shocked when you get GFX_NONE back. she's not being shady, she's being honest πŸ’€

and that's the page!! brought to you by Allegro, version 4.4.3 β€” mwah, love you, go call set_gfx_mode first πŸ’œπŸ§šβ€β™€οΈβœ¨

πŸ“¦ where this page comes from