ex3buf(3alleg4)
β¨ ex3buf β¨
okay bestie, welcome to ex3buf from the Allegro manual (that's the 3alleg4 crowd, iykyk) π this one is all about Mode-X triple buffering and retrace interrupt simulation, and it's part of the Allegro game programming library π
πΈ SYNOPSIS πΈ
#include <allegro.h>
Example ex3buf
π¦ DESCRIPTION π¦
So like, this program is a whole demo of triple buffering in action β¨ Several triangles get displayed, rotating and bouncing all over the screen, and they just keep doing their little thing until you press a key π
ngl though, a heads-up: on some platforms you can't get real hardware triple buffering. The Allegro code stays literally exactly the same β nothing changes there β but most likely the graphic driver will emulate it for you instead π
π unfortunately, in those emulated cases you can't expect the animation to be completely smooth and flicker free. it's giving "we tried our best" energy. periodt.
π₯ SEE ALSO π₯
BITMAP(3alleg4)END_OF_MAIN(3alleg4)SCREEN_H(3alleg4)SCREEN_W(3alleg4)acquire_bitmap(3alleg4)allegro_error(3alleg4)allegro_init(3alleg4)allegro_message(3alleg4)clear_bitmap(3alleg4)clear_keybuf(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)gfx_capabilities(3alleg4)install_keyboard(3alleg4)install_mouse(3alleg4)install_timer(3alleg4)itofix(3alleg4)keypressed(3alleg4)poll_scroll(3alleg4)release_bitmap(3alleg4)request_video_bitmap(3alleg4)screen(3alleg4)set_gfx_mode(3alleg4)set_palette(3alleg4)textout_ex(3alleg4)triangle(3alleg4)ustrzcpy(3alleg4)
k that's the whole page bestie, go forth and buffer those triangles π this icon of a manpage is brought to you by Allegro, version 4.4.3 π π«Ά mwah, slay, bye β¨ππ
π¦ 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