Hard23: 40 Allegro Learning
Recently, I am interested in Allegro, so I will write, I hope everyone can learn together and make progress together.
Allegro is a C / C gaming library, free, open source, initial author's Shawn Hargreaves, he supports DOS, UNIX (Linux, FreeBSD, Irix, Solaris, Darwin), Windows, QNX, Beos and Macos X. provides a lot Graphics, sound, player input (keyboard, mouse, game handle), timer, etc. It supports fixed-point and floating point math functions, 3D functions, file management functions, data file compression, and GUI. Cross-Platform Support
Unix (Linux, Freebsd, Irix, Solaris, Darwin) Windows (MSVC, Mingw, Cygwin, Borland) Beos QNX Macos X DOS (DJGPP, WATCOM)
Graphic functions
Vector Drawing:
Pixels, Lines, Rectangles, Circles, Ellipses, Arcs, Bezier Splines Shape Fill, With OR WITHOUT PATTERN POLYGONS: FLAT, GOURAUD, TEXTURED (3D) and TRANSLUCENT SPRITES:
masked, compressed and compiled sprites blitting, rotation, stretching, reduction, alpha blending, Gouraud shading native support for BMP, LBM, PCX and TGA files (others supported with library extensions) Color palettes:
Color Palette Manipulation (Reading, Writing, Conversion) Conversion of Color Formats RGB <-> HSV TEXT:
Support for Different EncoDings and Conversion, Default IS UTF-8 Bitmap Fonts (Masking, Colouring, Alignment) Misc:
Draw Directly On The Screen OR On Any-Size Memory Bitmaps Hardware Scrolling and Triple Buffering (Where Available), Mode-x Split Screen Animation Functions for FLI / FLC Format
Graphic drivers
UNIX:
X WINDOW, DGA, FBCON SVGALIB VBE / AF MODE-X VGA Windows:
DirectX (Windowed or Full-Screen) GDI Macos X:
Quartz (Windowed or Full-Screen) Beos:
BWindowscreen BdirectWindow DOS:
VGA 13h mode mode-X (23 VGA resolution plus unchained 640x400 extended mode) SVGA modes in 8, 15, 16, 24 and 32 bits per pixel linear VBE 2.0 framebuffer access hardware acceleration through VBE / AF API if supported additional graphic drivers through FreeBE / AF Project OpenGL: The Allegrogl Addon Allows To Use OpenGL Graphics with allegro.
Sound Functions
MIDI:
native MIDI music format support (with 64 simultaneous effects) dynamic control / response to music note on, note off, main volume, pan, pitch bend, and program change uses General MIDI patches you can read in wavetable patches for MIDI files (SF2 and Gus Patches) Wave:
Native Support of Wav And Voc File Formats (Playing Looped Forward, Backwards or Bidirectional) Streaming Audio Modify Volume, Pan, Pitch, ETC DURING Play
Sound Drivers
UNIX:
OSS ALSA (0.5 / 0.9 / 1.0) ESD Arts Jack SGI Al Windows:
DirectSound Waveout Midi System Drivers Macos X:
Core Audio Sound Manager Core Audio Midi QuickTime Midi DOS:
Adlib, SB, SB Pro, SB16, AWE32 MPU-401 Ess Audiodrive Ensoniq Soundscape Windows Sound System
Math Functions
Fixed Point Arithmetic and Trigonometric Routines Precalculate Trigonometric Tables Vector / Matrix / Quaternions 3D Manipulation (Translation, Rotation, Scaling, Projection)
MISC
mouse, keyboard and joystick management high resolution interrupt timers (resolution of 10, 5 or less ms depending on platform) vertical retrace simulation manipulate configuration files manipulate compressed files in LZSS format manipulate multi-object resource-like compressed datafiles tool for creating datafiles (grabber SIMPLE GUI for Dialogs and File Selector