gui_get_screen(3)
π gui_get_screen(3) π
okay bestie, welcome to the Allegro manual β yes THE Allegro game programming library β and today's main character is a lil function called gui_get_screen. it's short, it's sweet, it's giving "i just tell you where the pixels are going" π
β¨ NAME β¨
gui_get_screen β returns the bitmap surface the GUI routines draw to. π
(also: it lives in the Allegro game programming library, if that wasn't obvious from the neon sign above π¦)
πΈ SYNOPSIS πΈ
#include <allegro.h>
BITMAP *gui_get_screen(void);
no arguments, no drama, just vibes and a return value π«Ά
π DESCRIPTION π
okay so here's the tea: this function hands you back the current bitmap surface that the GUI routines are gonna use for drawing. that's it. that's the whole job. iconic behavior, honestly π
and like β two things you need to know, no cap:
- if you previously called
gui_set_screen(NULL), this function will returnscreen. so yeah, it's got your back and falls back to the default. π - it will never return
NULL. never ever. not once. so don't go doing aif (result == NULL)vibe check on it, because it's not happening, bestie πβ¨
π SEE ALSO π
gui_set_screen(3)β the one that actually sets the thing. the duo. the ship. iykyk π
and that's the whole page, gorgeous. this little legend comes to you courtesy of Allegro, and it's version 4.4.3 β so like, respect the vintage, it ate and left no crumbs π β¨ mwah, go draw something pretty ππ¦
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms