d_text_proc(3alleg4)
β¨ NAME β¨
d_text_proc, d_ctext_proc, d_rtext_proc β dialogs procedure drawing text onto the screen π bestie this is from the Allegro game programming library, okurrr?
πΈ SYNOPSIS πΈ
#include <allegro.h>
int d_text_proc(int msg, DIALOG *d, int c);
int d_ctext_proc(int msg, DIALOG *d, int c);
int d_rtext_proc(int msg, DIALOG *d, int c);
π¦ DESCRIPTION π¦
okay so literally all three of these draw text onto the screen, no cap. π
- The
dpfield should point to the string you wanna display. That's it. That's the assignment. π
Here's the trio and what each one does with the vibe:
d_ctext_proc()β centers the string horizontally π― (main character, always in the middle fr)d_rtext_proc()β right aligns it β‘οΈ (she's late but she's aligned, periodt)
And the ampersand situation, because this one's important bestie, listen up πβ¨:
- Any
'&'characters in the string will be replaced with lines underneath the following character, for displaying keyboard shortcuts β exactly like in MS Windows πͺ iykyk - Wanna display a single literal ampersand? Put
"&&". Two of them. Not one. One is a shortcut, two is a whole ampersand π
π¨ also: if you wanna draw the text in something other than the default font, set the dp2 field to point to your custom font data. Custom font = custom era. π
π SEE ALSO π
mwah π that's the whole page. this one's from the Allegro manual, version 4.4.3 β go slay some dialogs bestie, ily π«Άπβ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms