exflip(3)
π exflip(3) β the Allegro manual, but make it cute
okay bestie, so this is exflip, straight out of the Allegro game programming library manual. it's a lil example program, not some scary library function, and it's here to show you the difference between double buffering and page flipping. yes literally that. come on. β¨
πΈ NAME πΈ
exflip β Comparison of double buffering and page flipping. it's part of the Allegro game programming library. π
β¨ SYNOPSIS β¨
#include <allegro.h>
Example exflip
π¦ DESCRIPTION π¦
so here's the tea π β this program moves a circle across the screen. that's the whole vibe. and the way it does it? it does it twice, in two different ways, so you can see the difference with your own two eyes:
- first with a double buffer
- and then using page flips
that's it. that's the program. a circle. going across. two ways. iconic behaviour honestly π
π₯ SEE ALSO π₯
the whole friend group, no cap β every one of these is linked up:
BITMAP(3)END_OF_MAIN(3)SCREEN_H(3)SCREEN_W(3)allegro_error(3)allegro_init(3)allegro_message(3)blit(3)circlefill(3)clear_keybuf(3)clear_to_color(3)create_bitmap(3)create_video_bitmap(3)desktop_palette(3)destroy_bitmap(3)font(3)install_keyboard(3)install_timer(3)keypressed(3)makecol(3)retrace_count(3)screen(3)set_gfx_mode(3)set_palette(3)show_video_bitmap(3)textprintf_ex(3)
okay that's the whole page, ily, go read the source π«Ά
this lil gem is from the Allegro manual, version 4.4.3, and it's filed under exflip(3) β mwah, 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