exupdate(3alleg4)
π exupdate β Allegro manual, section 3 π
okay bestie, sit down, hydrate, and let me tell you about exupdate from the Allegro game programming library. this is a manual page for section 3, and it's genuinely so fun, i'm obsessed. π¦
β¨ NAME β¨
exupdate β supporting different screen update methods in a single program. Allegro game programming library. periodt. π
πΈ SYNOPSIS πΈ
#include <allegro.h>
Example exupdate
like. that's it. that's the whole thing. short and iconic. π
π« DESCRIPTION π«
okay so this program is literally a demo of how to support double buffering, page flipping, and triple buffering as options within a single program β yes, all in one, no cap β and also how to make things run at a constant rate no matter what the speed of your computer is. the way that your machine's speed just doesn't matter? iconic. β¨
π heads up: you have to run this example from the command line, bestie. no double-clicking your way out of this one.
you have to pass as the first parameter a number that represents the type of video update you want:
1β double buffering with memory bitmaps2β page flipping3β triple buffering4β double buffering with system bitmaps
after this, a dialog lets you select a screen resolution π (yes, a whole dialog, it's giving very much "choose your own adventure"), and finally you will see a kaleidoscopic animation, along with a frames per second counter on the top left of the screen. fps counter in the corner? main character energy fr fr. π
π«Ά SEE ALSO π«Ά
BITMAP(3alleg4)END_OF_FUNCTION(3alleg4)END_OF_MAIN(3alleg4)LOCK_FUNCTION(3alleg4)LOCK_VARIABLE(3alleg4)PALETTE(3alleg4)SCREEN_H(3alleg4)SCREEN_W(3alleg4)acquire_bitmap(3alleg4)allegro_error(3alleg4)allegro_init(3alleg4)allegro_message(3alleg4)bitmap_color_depth(3alleg4)blit(3alleg4)clear_bitmap(3alleg4)create_bitmap(3alleg4)create_system_bitmap(3alleg4)create_video_bitmap(3alleg4)desktop_palette(3alleg4)destroy_bitmap(3alleg4)enable_triple_buffer(3alleg4)fixcos(3alleg4)fixed(3alleg4)fixmul(3alleg4)fixsin(3alleg4)fixtoi(3alleg4)font(3alleg4)ftofix(3alleg4)generate_332_palette(3alleg4)gfx_capabilities(3alleg4)gfx_mode_select_ex(3alleg4)install_int_ex(3alleg4)install_keyboard(3alleg4)install_mouse(3alleg4)install_timer(3alleg4)keypressed(3alleg4)line(3alleg4)makecol(3alleg4)poll_scroll(3alleg4)release_bitmap(3alleg4)request_video_bitmap(3alleg4)screen(3alleg4)set_color_depth(3alleg4)set_gfx_mode(3alleg4)set_palette(3alleg4)show_video_bitmap(3alleg4)textout_ex(3alleg4)textprintf_ex(3alleg4)triangle(3alleg4)vsync(3alleg4)xor_mode(3alleg4)
and that's the whole page, bestie. this one comes to you from Allegro, version 4.4.3, and the manual page itself is exupdate(3alleg4) β you're welcome, go forth and triple buffer responsibly ππ§ββοΈ
π¦ 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