File: al_init_image_addon.3

package info (click to toggle)
allegro5 2%3A5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,032 kB
  • sloc: ansic: 120,340; cpp: 15,707; objc: 4,805; python: 2,915; java: 2,195; sh: 887; xml: 86; makefile: 49; perl: 37; pascal: 24
file content (32 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.TH "al_init_image_addon" "3" "" "Allegro reference manual" ""
.SH NAME
.PP
al_init_image_addon \- Allegro 5 API
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <allegro5/allegro_image.h>

bool\ al_init_image_addon(void)
\f[]
.fi
.SH DESCRIPTION
.PP
Initializes the image addon.
This registers bitmap format handlers for al_load_bitmap(3),
al_load_bitmap_f(3), al_save_bitmap(3), al_save_bitmap_f(3).
.PP
The following types are built into the Allegro image addon and
guaranteed to be available: BMP, DDS, PCX, TGA.
Every platform also supports JPEG and PNG via external dependencies.
.PP
Other formats may be available depending on the operating system and
installed libraries, but are not guaranteed and should not be assumed to
be universally available.
.PP
The DDS format is only supported to load from, and only if the DDS file
contains textures compressed in the DXT1, DXT3 and DXT5 formats.
Note that when loading a DDS file, the created bitmap will always be a
video bitmap and will have the pixel format matching the format in the
file.