1al_reparent_bitmap(3)                                    al_reparent_bitmap(3)
2
3
4

NAME

6       al_reparent_bitmap - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_reparent_bitmap(ALLEGRO_BITMAP *bitmap, ALLEGRO_BITMAP *parent,
12                 int x, int y, int w, int h)
13

DESCRIPTION

15       For  a  sub-bitmap, changes the parent, position and size.  This is the
16       same  as  destroying  the  bitmap  and  re-creating  it  with   al_cre‐
17       ate_sub_bitmap(3) - except the bitmap pointer stays the same.  This has
18       many uses, for example an animation player could return a single bitmap
19       which  can  just  be  re-parented to different animation frames without
20       having to re-draw the contents.  Or a sprite atlas could re-arrange its
21       sprites without having to invalidate all existing bitmaps.
22

SEE ALSO

24       al_create_sub_bitmap(3), al_get_parent_bitmap(3)
25

SINCE

27       5.1.12
28
29
30
31Allegro reference manual                                 al_reparent_bitmap(3)
Impressum