1load_bmp_pf(3)                  Allegro manual                  load_bmp_pf(3)
2
3
4

NAME

6       load_bmp_pf  -  Packfile  version of load_bmp. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       BITMAP *load_bmp_pf(PACKFILE *f, RGB *pal);
14

DESCRIPTION

16       A version of load_bmp() which reads from a packfile. Example:
17
18          PACKFILE *packfile;
19          BITMAP *bmp;
20
21          packfile = pack_fopen("mybitmap.bmp", F_READ);
22          if (!packfile)
23             abort_on_error("Couldn't open mybitmap.bmp");
24
25          bmp = load_bmp_pf(packfile, pal);
26          if (!bmp)
27             abort_on_error("Error loading mybitmap.bmp");
28

RETURN VALUE

30       Returns a pointer to the bitmap or NULL on error. Remember that you are
31       responsible  for destroying the bitmap when you are finished with it to
32       avoid memory leaks.
33
34

SEE ALSO

36       load_bmp(3), expackf(3)
37
38
39
40Allegro                          version 4.2.3                  load_bmp_pf(3)
Impressum