diff src/animate.h @ 117:e4e47d2cdbcd

Tank
author Thinker K.F. Li <thinker@branda.to>
date Sun, 14 Sep 2008 18:51:16 +0800
parents 1d74eb3861b7
children 9e2316dc6ecb
line wrap: on
line diff
--- a/src/animate.h	Sun Sep 14 09:42:07 2008 +0800
+++ b/src/animate.h	Sun Sep 14 18:51:16 2008 +0800
@@ -5,19 +5,7 @@
 #include "mb_timer.h"
 #include "paint.h"
 
-/*! \defgroup anim Animation
- * \brief Animation is a set of functions to make graph moving.
- * @{
- */
-typedef struct _mb_progm mb_progm_t;
-typedef struct _mb_word mb_word_t;
-typedef struct _mb_action mb_action_t;
-typedef struct _mb_progm_state mb_progm_state_t;
-
-/*! \defgroup act_support Action Supports.
- * @{
- */
-/*! \brief Basic class of nnimation actions.
+/*! \page def_action How to Define An Action?
  *
  * A action must implement following 4 functions.
  * \li start,
@@ -31,6 +19,22 @@
  * It also means *_new() must have an argument with type of
  * (mb_word_t *).
  */
+
+/*! \defgroup anim Animation
+ * \brief Animation is a set of functions to make graph moving.
+ * @{
+ */
+typedef struct _mb_progm mb_progm_t;
+typedef struct _mb_word mb_word_t;
+typedef struct _mb_action mb_action_t;
+
+/*! \defgroup act_support Action Supports.
+ * @{
+ */
+/*! \brief Basic class of nnimation actions.
+ *
+ * \sa \ref def_action
+ */
 struct _mb_action {
     void (*start)(mb_action_t *act,
 		  const mb_timeval_t *now,
@@ -63,6 +67,8 @@
 extern mb_action_t *mb_chgcolor_new(co_comp_t r, co_comp_t g,
 				    co_comp_t b, co_comp_t a,
 				    paint_t *paint, mb_word_t *word);
+extern mb_action_t *mb_rotate_new(float angle1, float angle2,
+				  coord_t *coord, mb_word_t *word);
 
 enum { VIS_VISIBLE, VIS_HIDDEN };
 extern mb_action_t *mb_visibility_new(int visib, coord_t *coord,