1 /*         ______   ___    ___
2  *        /\  _  \ /\_ \  /\_ \
3  *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___
4  *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
5  *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
6  *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
7  *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
8  *                                           /\____/
9  *                                           \_/__/
10  *
11  *      Compiled sprite routines for some unknown platforms.
12  *
13  *      By Michael Bukin.
14  *
15  *      See readme.txt for copyright information.
16  */
17 
18 
19 #include "allegro.h"
20 
21 
22 
23 /* get_compiled_sprite:
24  *  Creates a compiled sprite based on the specified bitmap.
25  */
get_compiled_sprite(BITMAP * bitmap,int planar)26 COMPILED_SPRITE *get_compiled_sprite(BITMAP *bitmap, int planar)
27 {
28    ASSERT(bitmap);
29    return get_rle_sprite(bitmap);
30 }
31 
32 
33 
34 /* destroy_compiled_sprite:
35  *  Destroys a compiled sprite structure returned by get_compiled_sprite().
36  */
destroy_compiled_sprite(COMPILED_SPRITE * sprite)37 void destroy_compiled_sprite(COMPILED_SPRITE *sprite)
38 {
39    ASSERT(sprite);
40    destroy_rle_sprite(sprite);
41 }
42 
43 
44 
45 /* draw_compiled_sprite:
46  *  Draws a compiled sprite onto the specified bitmap at the specified
47  *  position.
48  */
draw_compiled_sprite(BITMAP * dst,AL_CONST COMPILED_SPRITE * src,int x,int y)49 void draw_compiled_sprite(BITMAP *dst, AL_CONST COMPILED_SPRITE *src, int x, int y)
50 {
51    ASSERT(dst);
52    ASSERT(src);
53    draw_rle_sprite(dst, (COMPILED_SPRITE *)src, x, y);
54 }
55 
56