exflip(3alleg4)
π exflip β the Allegro manual, but make it cute
okay bestie, so this is exflip, a page from the Allegro manual (that's 3alleg4, the Allegro game programming library section). it's a lil demo program that shows you the diff between double buffering and page flipping, and honestly? it's giving pedagogy. it's giving "watch me move this circle." slay.
β¨ NAME β¨
exflip β Comparison of double buffering and page flipping. Allegro game programming library.
like, that's literally it. that's the whole vibe. π¦
β¨ SYNOPSIS β¨
#include <allegro.h>
Example exflip
no cap, that's the whole synopsis. one include, one example. minimalism is the moment. π
β¨ DESCRIPTION β¨
okay so picture this: this program moves a circle across the screen. π
and it does it twice, bestie, on purpose, because the whole point is the comparison:
- first it does it with a double buffer π
- and then it does it using page flips π
that's the entire demo. two techniques, one circle, one screen, and you get to see them side by side. it's lowkey iconic as a teaching moment. π
β¨ SEE ALSO β¨
the whole friend group, fr fr β go read these next:
BITMAP(3alleg4)END_OF_MAIN(3alleg4)SCREEN_H(3alleg4)SCREEN_W(3alleg4)allegro_error(3alleg4)allegro_init(3alleg4)allegro_message(3alleg4)blit(3alleg4)circlefill(3alleg4)clear_keybuf(3alleg4)clear_to_color(3alleg4)create_bitmap(3alleg4)create_video_bitmap(3alleg4)desktop_palette(3alleg4)destroy_bitmap(3alleg4)font(3alleg4)install_keyboard(3alleg4)install_timer(3alleg4)keypressed(3alleg4)makecol(3alleg4)retrace_count(3alleg4)screen(3alleg4)set_gfx_mode(3alleg4)set_palette(3alleg4)show_video_bitmap(3alleg4)textprintf_ex(3alleg4)
π«Ά that's the whole page, bestie. nothing hidden, nothing skipped, every single reference accounted for. you're welcome.
okay and before you go β this lil beauty came to you courtesy of Allegro, version 4.4.3 β¨ so go forth, move that circle, and remember: double buffer first, then page flip. periodt. πππΈπ§
π¦ 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