Mercurial > MadButterfly
annotate src/animate.h @ 57:ab028c9f0930
Ability to hidden shapes and action of visibility.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 10 Aug 2008 20:25:14 +0800 |
parents | 59a295651480 |
children | d6f9af55b0d0 |
rev | line source |
---|---|
41 | 1 #ifndef __ANIMATE_H_ |
2 #define __ANIMATE_H_ | |
3 | |
42 | 4 #include "mb_types.h" |
5 #include "mb_timer.h" | |
52
59a295651480
Add action mb_chgcolor_t to change color of paints.
Thinker K.F. Li <thinker@branda.to>
parents:
47
diff
changeset
|
6 #include "paint.h" |
42 | 7 |
41 | 8 typedef struct _mb_progm mb_progm_t; |
9 typedef struct _mb_word mb_word_t; | |
10 typedef struct _mb_action mb_action_t; | |
11 typedef struct _mb_progm_state mb_progm_state_t; | |
12 | |
13 extern mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman); | |
14 extern void mb_progm_free(mb_progm_t *progm); | |
15 extern mb_word_t *mb_progm_next_word(mb_progm_t *progm, | |
16 const mb_timeval_t *start, | |
17 const mb_timeval_t *playing); | |
42 | 18 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman, |
19 mb_timeval_t *now); | |
20 extern void mb_progm_abort(mb_progm_t *progm, mb_tman_t *tman); | |
47
f3818d996f4f
change interface of creating a animation action
Thinker K.F. Li <thinker@branda.to>
parents:
42
diff
changeset
|
21 extern mb_action_t *mb_shift_new(co_aix x, co_aix y, coord_t *coord, |
f3818d996f4f
change interface of creating a animation action
Thinker K.F. Li <thinker@branda.to>
parents:
42
diff
changeset
|
22 mb_word_t *word); |
52
59a295651480
Add action mb_chgcolor_t to change color of paints.
Thinker K.F. Li <thinker@branda.to>
parents:
47
diff
changeset
|
23 extern mb_action_t *mb_chgcolor_new(co_comp_t r, co_comp_t g, |
59a295651480
Add action mb_chgcolor_t to change color of paints.
Thinker K.F. Li <thinker@branda.to>
parents:
47
diff
changeset
|
24 co_comp_t b, co_comp_t a, |
59a295651480
Add action mb_chgcolor_t to change color of paints.
Thinker K.F. Li <thinker@branda.to>
parents:
47
diff
changeset
|
25 paint_t *paint, mb_word_t *word); |
42 | 26 |
57
ab028c9f0930
Ability to hidden shapes and action of visibility.
Thinker K.F. Li <thinker@branda.to>
parents:
52
diff
changeset
|
27 enum { VIS_VISIBLE, VIS_HIDDEN }; |
ab028c9f0930
Ability to hidden shapes and action of visibility.
Thinker K.F. Li <thinker@branda.to>
parents:
52
diff
changeset
|
28 extern mb_action_t *mb_visibility_new(int visib, coord_t *coord, |
ab028c9f0930
Ability to hidden shapes and action of visibility.
Thinker K.F. Li <thinker@branda.to>
parents:
52
diff
changeset
|
29 mb_word_t *word); |
ab028c9f0930
Ability to hidden shapes and action of visibility.
Thinker K.F. Li <thinker@branda.to>
parents:
52
diff
changeset
|
30 |
41 | 31 |
32 #endif /* __ANIMATE_H_ */ |