Available Allegro examples
With Allegro comes quite a bunch of examples, which go from the simple
introductory `Hello world' to more complicated programs featuring truecolor
blending effects. This chapter describes these examples which you can find
in the allegro/examples folder. You don't have to go through them in the same
order as this documentation, but doing so you will learn the basic functions
and avoid missing any important bit of information.
- exhello - Simple graphical "hello world" program.
- exmem - Drawing onto memory bitmaps and then blitting them to the screen.
- expal - Palette effects and color cycling.
- expat - Using patterned drawing modes and sub-bitmaps.
- exflame - How to write directly to video memory improving performance.
- exdbuf - How to use double buffering to avoid flicker.
- exflip - Comparison of double buffering and page flipping.
- exfixed - Using fixed point maths.
- exfont
- exmouse - Getting input from the mouse.
- extimer - Using the timer (delays and interrupts).
- exkeys - How to get input from the keyboard in different ways.
- exjoy - Detecting, calibrating and using joystick input.
- exsample - Playing digital samples.
- exmidi - Playing MIDI music.
- exgui - Using the GUI routines.
- excustom - Creating custom GUI objects.
- exunicod - Using Unicode string functions.
- exbitmap - Loading and displaying PCX and BMP files.
- exscale - Loading PCX files and bitmap stretching.
- exconfig - Using the configuration routines.
- exdata - Accessing the contents of datafiles.
- exsprite - Datafiles access and sprite animation.
- exexedat - Appending datafiles onto your executable.
- extrans - Lighting and translucency effects.
- extruec - Truecolor pixel format conversions.
- excolmap - Creating graphical effects with color mapping tables.
- exrgbhsv - RGB <-> HSV colorspace conversions.
- exshade - Gouraud shaded sprites.
- exblend - Using translucency in truecolor modes.
- exxfade - Truecolor image loading and fades.
- exalpha - Creating and using 32 bit RGBA sprites.
- exlights - One way to do colored lighting effects in a hicolor video mode.
- ex3d - 3d 'bouncy cubes' demo.
- excamera - Viewing a 3d world from an arbitrary camera position.
- exquat - A comparison between euler angles and quaternions.
- exstars - 3d starfield and lightsourced spaceship.
- exscn3d - Using the 3d scene functions.
- exzbuf - Z-buffered polygons demo.
- exscroll - Mode-X hardware scrolling and split screens.
- ex3buf - Mode-X triple buffering and retrace interrupt simulation.
- ex12bit - How to fake a 12-bit truecolor mode on an 8-bit card.
- exaccel - Using offscreen video memory to store source graphics for VBE/AF.
- exspline - Constructing smooth movement paths from spline curves.
- exsyscur
- exupdate - Supporting different screen update methods in a single program.
- exswitch - Controlling the console switch mode for background running.
- exstream - Playing audio streams.
- expackf - Using custom PACKFILE vtables.