comparison src/animate.h @ 52:59a295651480

Add action mb_chgcolor_t to change color of paints.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 09 Aug 2008 22:16:23 +0800
parents f3818d996f4f
children ab028c9f0930
comparison
equal deleted inserted replaced
51:5f5bd3ac9316 52:59a295651480
1 #ifndef __ANIMATE_H_ 1 #ifndef __ANIMATE_H_
2 #define __ANIMATE_H_ 2 #define __ANIMATE_H_
3 3
4 #include "mb_types.h" 4 #include "mb_types.h"
5 #include "mb_timer.h" 5 #include "mb_timer.h"
6 #include "paint.h"
6 7
7 typedef struct _mb_progm mb_progm_t; 8 typedef struct _mb_progm mb_progm_t;
8 typedef struct _mb_word mb_word_t; 9 typedef struct _mb_word mb_word_t;
9 typedef struct _mb_action mb_action_t; 10 typedef struct _mb_action mb_action_t;
10 typedef struct _mb_progm_state mb_progm_state_t; 11 typedef struct _mb_progm_state mb_progm_state_t;
17 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman, 18 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman,
18 mb_timeval_t *now); 19 mb_timeval_t *now);
19 extern void mb_progm_abort(mb_progm_t *progm, mb_tman_t *tman); 20 extern void mb_progm_abort(mb_progm_t *progm, mb_tman_t *tman);
20 extern mb_action_t *mb_shift_new(co_aix x, co_aix y, coord_t *coord, 21 extern mb_action_t *mb_shift_new(co_aix x, co_aix y, coord_t *coord,
21 mb_word_t *word); 22 mb_word_t *word);
23 extern mb_action_t *mb_chgcolor_new(co_comp_t r, co_comp_t g,
24 co_comp_t b, co_comp_t a,
25 paint_t *paint, mb_word_t *word);
22 26
23 27
24 #endif /* __ANIMATE_H_ */ 28 #endif /* __ANIMATE_H_ */