DragonFly On-Line Manual Pages
al_install_system(3) al_install_system(3)
NAME
al_install_system - Allegro 5 API
SYNOPSIS
#include <allegro5/allegro.h>
bool al_install_system(int version, int (*atexit_ptr)(void (*)(void)))
DESCRIPTION
Initialize the Allegro system. No other Allegro functions can be
called before this (with one or two exceptions).
The version field should always be set to ALLEGRO_VERSION_INT.
If atexit_ptr is non-NULL, and if hasn't been done already,
al_uninstall_system(3) will be registered as an atexit function.
Returns true if Allegro was successfully initialized by this function
call (or already was initialized previously), false if Allegro cannot
be used.
SEE ALSO
al_init(3)
Allegro reference manual al_install_system(3)