Mercurial > MadButterfly
comparison include/mb_animate.h @ 1067:7b4e80ab671a openvg
merge from default branch
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Dec 2010 12:25:56 +0800 |
parents | 7ccc094bdbe5 |
children |
comparison
equal
deleted
inserted
replaced
630:bd18951b51d5 | 1067:7b4e80ab671a |
---|---|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- | |
2 // vim: sw=4:ts=8:sts=4 | |
1 #ifndef __ANIMATE_H_ | 3 #ifndef __ANIMATE_H_ |
2 #define __ANIMATE_H_ | 4 #define __ANIMATE_H_ |
3 | 5 |
4 #include "mb_types.h" | 6 #include "mb_types.h" |
5 #include "mb_timer.h" | |
6 #include "mb_paint.h" | 7 #include "mb_paint.h" |
8 #include "mb_backend.h" | |
7 | 9 |
8 /*! \page def_action How to Define An Action? | 10 /*! \page def_action How to Define An Action? |
9 * | 11 * |
10 * A action must implement following 4 functions. | 12 * A action must implement following 4 functions. |
11 * \li start, | 13 * \li start, |
38 extern mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman); | 40 extern mb_progm_t *mb_progm_new(int max_words, redraw_man_t *rdman); |
39 extern void mb_progm_free(mb_progm_t *progm); | 41 extern void mb_progm_free(mb_progm_t *progm); |
40 extern mb_word_t *mb_progm_next_word(mb_progm_t *progm, | 42 extern mb_word_t *mb_progm_next_word(mb_progm_t *progm, |
41 const mb_timeval_t *start, | 43 const mb_timeval_t *start, |
42 const mb_timeval_t *playing); | 44 const mb_timeval_t *playing); |
43 extern void mb_progm_start(mb_progm_t *progm, mb_tman_t *tman, | 45 extern void mb_progm_start(mb_progm_t *progm, mb_timer_man_t *timer_man, |
44 mb_timeval_t *now); | 46 mb_timeval_t *now); |
45 extern void mb_progm_abort(mb_progm_t *progm); | 47 extern void mb_progm_abort(mb_progm_t *progm); |
46 extern subject_t *mb_progm_get_complete(mb_progm_t *progm); | 48 extern subject_t *mb_progm_get_complete(mb_progm_t *progm); |
47 extern void mb_progm_free_completed(mb_progm_t *progm); | 49 extern void mb_progm_free_completed(mb_progm_t *progm); |
48 | 50 |