exupdate(3)
π exupdate(3) π
okay so bestie, welcome to the Allegro manual, and today's main character is exupdate β a lil example program that's honestly giving "I contain multitudes" energy. β¨
πΈ SYNOPSIS πΈ
#include <allegro.h>
Example exupdate
π¦ DESCRIPTION π¦
So here's the vibe. This program is a whole demo of how to support double buffering, page flipping, and triple buffering as options β all inside a single program. Yes, one program, multiple update methods, no chaos (okay, maybe a little chaos, but the good kind π ).
And it also shows you how to make things run at a constant rate no matter what the speed of your computer is. Frame rate said "I don't care how fast your machine is, we're keeping it consistent" β periodt.
β οΈ Real talk though: you have to run this example from the command line, and you have to pass a number as the first parameter. That number is the type of video update you want:
1β double buffering with memory bitmaps2β page flipping3β triple buffering4β double buffering with system bitmaps
After that, a dialog pops up so you can select a screen resolution π. And then β the payoff β you get a kaleidoscopic animation, with a frames per second counter chilling in the top left of the screen. It's giving screensaver but make it β¨artβ¨.
π SEE ALSO π
The whole friend group, alphabetically (and also not, but whatever, here they all are):
BITMAP(3)END_OF_FUNCTION(3)END_OF_MAIN(3)LOCK_FUNCTION(3)LOCK_VARIABLE(3)PALETTE(3)SCREEN_H(3)SCREEN_W(3)acquire_bitmap(3)allegro_error(3)allegro_init(3)allegro_message(3)bitmap_color_depth(3)blit(3)clear_bitmap(3)create_bitmap(3)create_system_bitmap(3)create_video_bitmap(3)desktop_palette(3)destroy_bitmap(3)enable_triple_buffer(3)fixcos(3)fixed(3)fixmul(3)fixsin(3)fixtoi(3)font(3)ftofix(3)generate_332_palette(3)gfx_capabilities(3)gfx_mode_select_ex(3)install_int_ex(3)install_keyboard(3)install_mouse(3)install_timer(3)keypressed(3)line(3)makecol(3)poll_scroll(3)release_bitmap(3)request_video_bitmap(3)screen(3)set_color_depth(3)set_gfx_mode(3)set_palette(3)show_video_bitmap(3)textout_ex(3)textprintf_ex(3)triangle(3)vsync(3)xor_mode(3)
and that's the whole page, bestie π«Ά go forth and buffer responsibly π
this iconic little page comes to you from Allegro, version 4.4.3, dated exupdate(3) β mwah, no notes, stan forever πβ¨
π¦ 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