load_pcx_pf(3alleg4)

load_pcx_pf3alleg4

Packfile version of load_pcx. allegro game programming library.

Usage

#include <allegro.h>

BITMAP *load_pcx_pf(PACKFILE *f, RGB *pal);

Overview

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.