1 /***********************************************************
2 * Artsoft Retro-Game Library *
3 *----------------------------------------------------------*
4 * (c) 1995-2002 Artsoft Entertainment *
6 * Detmolder Strasse 189 *
9 * e-mail: info@artsoft.org *
10 *----------------------------------------------------------*
12 ***********************************************************/
20 /* values for animation mode (frame order and direction) */
22 #define ANIM_LOOP (1 << 0)
23 #define ANIM_LINEAR (1 << 1)
24 #define ANIM_PINGPONG (1 << 2)
25 #define ANIM_PINGPONG2 (1 << 3)
26 #define ANIM_REVERSE (1 << 4)
27 #define ANIM_RANDOM (1 << 5)
29 /* values for toon animation direction */
30 #define ANIMDIR_LEFT 1
31 #define ANIMDIR_RIGHT 2
33 #define ANIMDIR_DOWN 8
36 #define ANIMPOS_LEFT 1
37 #define ANIMPOS_RIGHT 2
39 #define ANIMPOS_DOWN 8
40 #define ANIMPOS_UPPER 16
46 void (*update_function)(void);
47 void (*prepare_backbuffer_function)(void);
48 boolean (*redraw_needed_function)(void);
50 struct ToonInfo *toons;
56 int frame_delay_value;
73 Bitmap *bitmap; /* dynamically initialized */
77 int getAnimationFrame(int, int, int, int, int);
79 void InitToonScreen(Bitmap *, void (*update_function)(void),
80 void (*prepare_backbuffer_function)(void),
81 boolean (*redraw_needed_function)(void),
82 struct ToonInfo *, int, int, int, int, int, int);
83 void InitAnimation(void);
84 void StopAnimation(void);
85 void DoAnimation(void);