al_install_system
bool al_install_system(int version, int (*atexit_ptr)(void (*)(void)))
Introduced in 5.0.0
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 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
Most helpful discussions:
- C++/CLI wrapper (1)
- al_init crash (1)
- Mingw do not find Allegro lib
- al_draw_text problem
- Audio waveform with unexpected frequency behavior
- Calling al_install_audio from a DLL?
- struggling with initialisation using CMake on arch
- al_uninstall_system excutes a function called "shutdown" if present
- Improving Performance on a Pi 3
- Can anyone tell me why this isnt working? (Codeblocks/Allegro5.2)
Other recent discussions:
- Allegro 5.2.2 Setup
- "System none" initialization on Allegro 5
- al_dtor_list is NULL, crash in al_create_timer
- Allegro 5.2.0 released!
- al_install_system fails inside shared library
- Java + Allegro = jalleg?
- [5.2] Windows does not compile without ALLEGRO_UNSTABLE
- Can't delete pointers of ALLEGRO_BITMAP from std::map
- Allegro on NuGet!
- al_install_joystick() segfaults on some Windows systems