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

NAME

6       load_pcx_pf  -  Packfile  version of load_pcx. Allegro game programming
7       library.
8

SYNOPSIS

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

DESCRIPTION

16       A version of load_pcx() which reads from a packfile. Example:
17
18          PACKFILE *packfile;
19          BITMAP *bmp;
20
21          packfile = pack_fopen("mybitmap.pcx", F_READ);
22          if (!packfile)
23             abort_on_error("Couldn't open mybitmap.pcx");
24
25          bmp = load_bmp_pf(packfile, pal);
26          if (!bmp)
27             abort_on_error("Error loading mybitmap.pcx");
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_pcx(3), expackf(3)
37
38
39
40Allegro                          version 4.4.2                  load_pcx_pf(3)
Impressum