1draw_compiled_sprite(3) Allegro manual draw_compiled_sprite(3)
2
3
4
6 draw_compiled_sprite - Draws a compiled sprite. Allegro game program‐
7 ming library.
8
10 #include <allegro.h>
11
12
13 void draw_compiled_sprite(BITMAP *bmp, const COMPILED_SPRITE *sprite,
14 int x, int y);
15
17 Draws a compiled sprite onto a bitmap at the specified position. The
18 sprite must have been compiled for the correct type of bitmap (linear
19 or planar). This function does not support clipping.
20
21 Hint: if not being able to clip compiled sprites is a problem, a neat
22 trick is to set up a work surface (memory bitmap, mode-X virtual
23 screen, or whatever) a bit bigger than you really need, and use the
24 middle of it as your screen. That way you can draw slightly off the
25 edge without any trouble...
26
27
28
29
31 get_compiled_sprite(3), draw_sprite(3), draw_rle_sprite(3), bit‐
32 map_mask_color(3)
33
34
35
36Allegro version 4.2.3 draw_compiled_sprite(3)