load_tga_pf (3) - Linux Manuals
load_tga_pf: Packfile version of load_tga. Allegro game programming library.
Command to display load_tga_pf
manual in Linux: $ man 3 load_tga_pf
NAME
load_tga_pf - Packfile version of load_tga. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
BITMAP *load_tga_pf(PACKFILE *f, RGB *pal);
DESCRIPTION
A version of load_tga() which reads from a packfile. Example:
PACKFILE *packfile;
BITMAP *bmp;
packfile = pack_fopen("mybitmap.tga", F_READ);
if (!packfile)
abort_on_error("Couldn't open mybitmap.tga");
bmp = load_bmp_pf(packfile, pal);
if (!bmp)
abort_on_error("Error loading mybitmap.tga");
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_tga_pf
- load_tga (3) - Loads a TGA bitmap from a file. Allegro game programming library.
- load_txt_font (3) - Loads a font script. 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.