1load_bmp_pf(3) Allegro manual load_bmp_pf(3)
2
3
4
6 load_bmp_pf - Packfile version of load_bmp. Allegro game programming
7 library.
8
10 #include <allegro.h>
11
12
13 BITMAP *load_bmp_pf(PACKFILE *f, RGB *pal);
14
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
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
36 load_bmp(3), expackf(3)
37
38
39
40Allegro version 4.2.3 load_bmp_pf(3)