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)
28 /* values for toon animation direction */
29 #define ANIMDIR_LEFT 1
30 #define ANIMDIR_RIGHT 2
32 #define ANIMDIR_DOWN 8
35 #define ANIMPOS_LEFT 1
36 #define ANIMPOS_RIGHT 2
38 #define ANIMPOS_DOWN 8
39 #define ANIMPOS_UPPER 16
45 void (*update_function)(void);
46 void (*prepare_backbuffer_function)(void);
47 boolean (*redraw_needed_function)(void);
49 struct ToonInfo *toons;
55 int frame_delay_value;
72 Bitmap *bitmap; /* dynamically initialized */
76 int getAnimationFrame(int, int, int, int, int);
78 void InitToonScreen(Bitmap *, void (*update_function)(void),
79 void (*prepare_backbuffer_function)(void),
80 boolean (*redraw_needed_function)(void),
81 struct ToonInfo *, int, int, int, int, int, int);
82 void InitAnimation(void);
83 void StopAnimation(void);
84 void DoAnimation(void);