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)
- Can anyone tell me why this isnt working? (Codeblocks/Allegro5.2)
- 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
Other recent discussions:
- Can't delete pointers of ALLEGRO_BITMAP from std::map
- Allegro on NuGet!
- al_install_joystick() segfaults on some Windows systems
- Old crash in d3d_shutdown still there...
- Allegro 5.0.10 memory leak?
- [A5]use custom memory allocator in allegro carefully
- [OSX 10.9] Audio somehow freezes program a few seconds on exit
- EGGDialog: Allegro 4-flavoured dialogs in Allegro 5
- Seg fault when creating bitmap outside of main
- Help with installing system