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. 1 β€” double buffering with memory bitmaps
  2. 2 β€” page flipping
  3. 3 β€” triple buffering
  4. 4 β€” 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 🫢


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 πŸ’œπŸ§šβ€β™€οΈ