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

NAME

6       load_tga_pf  -  Packfile  version of load_tga. Allegro game programming
7       library.
8

SYNOPSIS

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

DESCRIPTION

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