1is_inside_bitmap(3)             Allegro manual             is_inside_bitmap(3)
2
3
4

NAME

6       is_inside_bitmap  -  Tells  if a point is inside a bitmap. Allegro game
7       programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int is_inside_bitmap(BITMAP *bmp, int x, int y, int clip);
14

DESCRIPTION

16       Returns non-zero if point (x, y) lies inside the bitmap. If  `clip'  is
17       non-zero,  the function compares the coordinates with the clipping rec‐
18       tangle, that is it returns non-zero if the point lies inside the  clip‐
19       ping  rectangle or if clipping is disabled for the bitmap. If `clip' is
20       zero, the function compares the coordinates with the actual  dimensions
21       of the bitmap.
22
23
24
25

SEE ALSO

27       set_clip_rect(3), set_clip_state(3), getpixel(3)
28
29
30
31Allegro                          version 4.4.2             is_inside_bitmap(3)
Impressum