Mercurial > MadButterfly
view include/mb_so.h @ 269:c96f38ad4bb6
Fix mis-behavior of translate_path_data() on arc.
- Arc in a path in svg2code_ex is not showed.
- translate_path_data() in svg2code.py was modified for calling
binary version new method for path shape.
- rdman_shape_path_new_from_binary()
- Code to translate path data does not handle arc in a right way.
- Copy calc_center_and_x_aix() from shape_path.c to svg2code.py and
change name _calc_ellipse_of_arc()
- _calc_ellipse_of_arc() handle arc data for translate_path_data()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 25 Jan 2009 00:20:34 +0800 |
parents | 6f63aa67ed83 |
children | 586e50f82c1f |
line wrap: on
line source
/*! \file * \brief Define types for sprite shared objects. * * A sprite shared object includes definitions of multiple sprite factories. * Sprite factories are used to create sprites for MadButterfly. * * \see http://en.wikipedia.org/wiki/Sprite_(computer_graphics) */ #ifndef __MB_SO_H_ #define __MB_SO_H_ /*! \brief Name of the variable that define contents in a shared object. */ #define MB_SPRITE_SO_SYM "mb_sprite_so_def" typedef struct _mb_sprite_so mb_sprite_so_t; typedef struct _sprite_factory sprite_factory_t; /*! \brief Define content of a sprite shared object. * * The type of symbol with name, defined by \ref MB_SPRITE_SO_SYM, in * a sprite shared object. It define content of a sprite object, a.k.a. * an array of sprite factories (\ref sprite_factory_t). */ struct _mb_sprite_so { const char *soname; int num_factories; sprite_factory_t *factories; }; /*! \brief Define a factory to create sprites. */ struct _sprite_factory { const char *name; sprite_t *(*new)(coord_t*); }; #endif /* __MB_SO_H_ */