load_pcx_pf (3) - Linux Manuals
load_pcx_pf: Packfile version of load_pcx. Allegro game programming library.
Command to display load_pcx_pf
manual in Linux: $ man 3 load_pcx_pf
NAME
load_pcx_pf - Packfile version of load_pcx. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
BITMAP *load_pcx_pf(PACKFILE *f, RGB *pal);
DESCRIPTION
A version of load_pcx() which reads from a packfile. Example:
PACKFILE *packfile;
BITMAP *bmp;
packfile = pack_fopen("mybitmap.pcx", F_READ);
if (!packfile)
abort_on_error("Couldn't open mybitmap.pcx");
bmp = load_bmp_pf(packfile, pal);
if (!bmp)
abort_on_error("Error loading mybitmap.pcx");
RETURN VALUE
Returns a pointer to the bitmap or NULL on error. Remember that you are
responsible for destroying the bitmap when you are finished with it to
avoid memory leaks.
Pages related to load_pcx_pf
- load_pcx (3) - Loads a PCX bitmap from a file. Allegro game programming library.
- load_bios_font (3) - Loads a 8x8 or 8x16 BIOS format font. Allegro game programming library.
- load_bitmap (3) - Loads any supported bitmap from a file. Allegro game programming library.
- load_bitmap_font (3) - Grabs a font from a bitmap file. Allegro game programming library.
- load_bmp (3) - Loads a BMP bitmap from a file. Allegro game programming library.
- load_bmp_pf (3) - Packfile version of load_bmp. Allegro game programming library.
- load_dat_font (3) - Loads a FONT from an Allegro datafile.
- load_datafile (3) - Loads a datafile into memory. Allegro game programming library.
- load_datafile_callback (3) - Loads a datafile into memory, calling a hook per object. Allegro game programming library.