al_init
#define al_init() (al_install_system(ALLEGRO_VERSION_INT, atexit))
Introduced in 5.0.0
Like al_install_system, but automatically passes in the version and uses the atexit function visible in the current compilation unit.
See also: al_install_system
Examples: ex_acodec, ex_acodec_multi, ex_audio_props, ex_audio_simple, ex_bitmap, ex_bitmap_flip, ex_bitmap_target, ex_blend, ex_blend2, ex_blend_bench, ex_blend_test, ex_blit, ex_clip, ex_color, ex_config, ex_convert, ex_curl, ex_d3d, ex_dir, ex_disable_screensaver, ex_display_options, ex_draw, ex_drawpixels, ex_draw_bitmap, ex_dualies, ex_expose, ex_filter, ex_font, ex_font_justify, ex_fs_resize, ex_fs_window, ex_get_path, ex_gldepth, ex_glext, ex_gp2xwiz, ex_haiku, ex_icon, ex_iphone, ex_joystick_events, ex_joystick_hotplugging, ex_kcm_direct, ex_keyboard_events, ex_keyboard_focus, ex_lines, ex_lockbitmap, ex_logo, ex_membmp, ex_memfile, ex_mixer_chain, ex_mixer_pp, ex_monitorinfo, ex_mouse, ex_mouse_cursor, ex_mouse_events, ex_mouse_focus, ex_multisample, ex_multiwin, ex_native_filechooser, ex_nodisplay, ex_noframe, ex_ogre3d, ex_opengl, ex_opengl_pixel_shader, ex_path, ex_path_test, ex_physfs, ex_pixelformat, ex_premulalpha, ex_prim, ex_resize, ex_resize2, ex_rotate, ex_saw, ex_scale, ex_stream_file, ex_stream_seek, ex_subbitmap, ex_synth, ex_threads, ex_threads2, ex_timedwait, ex_timer, ex_transform, ex_ttf, ex_user_events, ex_utf8, ex_vsync, ex_warp_mouse, ex_windows, ex_winfull
Most helpful discussions:
- C++/CLI wrapper (1)
- new forum noob (1)
- Cannot exit fullscreen with ALLEGRO_OPENGL flag
- Allegro 5 - Cannot Destroy Shader
- Redrawing smoothly while display is being resized
- What is the error in following little program
- can't compile after installing
- Weird issue with font, can anybody help?
- Blacking out the display while resizing
- KrampusHack 2016
Other recent discussions:
- [KrampusHack 2016] Dr. Evil F, Xmas edition
- Bitmap behind mappy map
- Statically link Allegro 5 in Ubuntu?
- Vsync-Dependent Game Loop
- About shaders and ALLEGRO_BITMAPS
- [A5] Show & Hide window/display Cross-Platform ?
- Why some Shaders don't work !
- Change adapter un runtime
- Complications when drawing FPS
- Mixing Allegro 5 with OPENGL