1al_init_image_addon(3) al_init_image_addon(3)
2
3
4
6 al_init_image_addon - Allegro 5 API
7
9 #include <allegro5/allegro_image.h>
10
11 bool al_init_image_addon(void)
12
14 Initializes the image addon. This registers bitmap format handlers for
15 al_load_bitmap(3), al_load_bitmap_f(3), al_save_bitmap(3), al_save_bit‐
16 map_f(3).
17
18 The following types are built into the Allegro image addon and guaran‐
19 teed to be available: BMP, DDS, PCX, TGA. Every platform also supports
20 JPEG and PNG via external dependencies.
21
22 Other formats may be available depending on the operating system and
23 installed libraries, but are not guaranteed and should not be assumed
24 to be universally available.
25
26 The DDS format is only supported to load from, and only if the DDS file
27 contains textures compressed in the DXT1, DXT3 and DXT5 formats. Note
28 that when loading a DDS file, the created bitmap will always be a video
29 bitmap and will have the pixel format matching the format in the file.
30
31
32
33Allegro reference manual al_init_image_addon(3)