extimer(3)
π extimer(3) π
okay so bestie, welcome to the Allegro manual β yes the whole thing, and yes we're doing this one together π«Ά
β¨ NAME β¨
extimer β literally all about using the timer, like the delays and the interrupts. it's part of the Allegro game programming library, no cap π
πΈ SYNOPSIS πΈ
#include <allegro.h>
Example extimer β that's the whole vibe, it's an example program, not some function you call, bestie π
π¦ DESCRIPTION π¦
so this program is out here demonstrating how to use the timer routines, and ngl these things can be a bit of a pain π because you have to be sure you lock all the memory that gets used inside your interrupt handlers. like, all of it. every last byte. if you don't, that's on you and it's giving undefined behaviour energy π
the first part of the example shows a basic use of timing using the blocking function rest() β simple, chill, it just blocks, and that's the whole point β¨
the second part is where it gets iconic π it shows how to use three timers with different frequencies in a non blocking way. three of them. at once. main character energy fr fr π
π SEE ALSO π
like, go read these too, iykyk π
END_OF_FUNCTION(3)END_OF_MAIN(3)LOCK_FUNCTION(3)LOCK_VARIABLE(3)SCREEN_W(3)allegro_error(3)allegro_init(3)allegro_message(3)clear_to_color(3)desktop_palette(3)font(3)install_int(3)install_int_ex(3)install_keyboard(3)install_timer(3)key(3)keypressed(3)makecol(3)readkey(3)rest(3)screen(3)set_gfx_mode(3)set_palette(3)textprintf_centre_ex(3)
π reminder bestie: lock every single variable and function your interrupt handlers touch. no exceptions. that's not me being dramatic, that's just the rules.
so that's the page π this was brought to you by Allegro, version 4.4.3 β that's the source and the version right there, mwah π and it's extimer(3) in section 3, periodt. slay, go lock your memory, bye bestie πβ¨π¦
π¦ 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