exupdate(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– 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. 1 β€” double buffering with memory bitmaps
  2. 2 β€” page flipping
  3. 3 β€” triple buffering
  4. 4 β€” 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):


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