is_inside_bitmap(3alleg4)

is_inside_bitmap3alleg4

Tells if a point is inside a bitmap. allegro game programming library.

Usage

#include <allegro.h>

int is_inside_bitmap(BITMAP *bmp, int x, int y, int clip);

Overview

Returns non-zero if point (x, y) lies inside the bitmap. If `clip' is non-zero, the function compares the coordinates with the clipping rectangle, that is it returns non-zero if the point lies inside the clipping rectangle or if clipping is disabled for the bitmap. If `clip' is zero, the function compares the coordinates with the actual dimensions of the bitmap.

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.