al_load_bitmap(3alleg5)

al_load_bitmap3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro.h>
ALLEGRO_BITMAP *al_load_bitmap(const char *filename)

Overview

Loads an image file into a new ALLEGRO_BITMAP(3alleg5). The file type is determined by al_identify_bitmap(3alleg5), using the extension as a fallback in case identification is not possible.

Returns NULL on error.

This is the same as calling al_load_bitmap_flags(3alleg5) with a flags parameter of 0.

Note: the core Allegro library does not support any image file formats by default. You must use the allegro_image addon, or register your own format handler.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.