2 ex_allegro_4_8c example
gullradriel edited this page 2026-10-09 00:51:57 +02:00

ex_allegro_4.c

Allegro 4 compatibility layer: a scene drawn with Allegro 4 calls Draws primitives, masked / flipped / rotated / stretched sprites, alpha and constant opacity blending, text and direct pixel access, all through the Allegro 4 API of n_allegro_4.h, and checks a few pixels back. Escape quits. -s renders one frame, saves it to ex_allegro_4.png and exits, which is how the layer is checked without anyone watching. It needs a display: without one it skips with exit code 0, run it under xvfb-run to exercise it headless.