Allegro Manual
API
Using Allegro
Structures and types defined by Allegro
Unicode routines
Configuration routines
Mouse routines
Timer routines
Keyboard routines
Joystick routines
Graphics modes
Bitmap objects
Loading image files
Palette routines
Truecolor pixel formats
Drawing primitives
Blitting and sprites
RLE sprites
Compiled sprites
Fonts
Text output
Polygon rendering
Transparency and patterned drawing
Converting between color formats
Direct access to video memory
FLIC routines
Sound init routines
Mixer routines
Digital sample routines
Music routines (MIDI)
Audio stream routines
Recording routines
File and compression routines
Datafile routines
Fixed point math routines
3D math routines
Quaternion math routines
GUI routines
Using Allegro
See readme.txt for a general introduction, copyright details, and information about how to install Allegro and link your program with it.
install_allegro
- Initialise the Allegro library.
allegro_init
- Macro to initialise the Allegro library.
allegro_exit
- Closes down the Allegro system.
END_OF_MAIN
- Macro to put after your main() function.
allegro_id
- String containing date and version number of Allegro.
allegro_error
- Stores the last Allegro error message.
ALLEGRO_VERSION
- Defined to the major version of Allegro.
ALLEGRO_SUB_VERSION
- Defined to the middle version of Allegro.
ALLEGRO_WIP_VERSION
- Defined to the minor version of Allegro.
ALLEGRO_VERSION_STR
- Defined to a string with the full Allegro version number.
ALLEGRO_DATE_STR
- Defined to a string with the year Allegro was released.
ALLEGRO_DATE
- Defined to a number with the release date of Allegro.
AL_ID
- Converts four 8 bit values to a packed 32 bit integer ID.
MAKE_VERSION
- Create a 32 bit integer from the Allegro version
os_type
- Stores the detected type of the OS.
os_version
os_revision
- Version of the OS currently running.
os_multitasking
- Indicates if the OS is multitasking.
allegro_message
- Used mainly to show error messages to users.
set_window_title
- Sets the window title of the Allegro program.
set_close_button_callback
- Handles the user clicking on the close button of the window.
desktop_color_depth
- Finds out the desktop color depth.
get_desktop_resolution
- Finds out the desktop resolution.
check_cpu
- Detects the CPU type.
cpu_vendor
- Contains the CPU vendor name.
cpu_family
- Contains the CPU type.
cpu_model
- Contains the Intel CPU submodel.
cpu_capabilities
- Contains the capability flags of the CPU.