comparison include/mb_types.h @ 260:29acbd8a0dd0

Integrate sh_image with svg2code.py. diff -r e8a784a306d0 examples/svg2code_ex/dsc_3241.png Binary file examples/svg2code_ex/dsc_3241.png has changed diff -r e8a784a306d0 examples/svg2code_ex/dsc_3241.png Binary file examples/svg2code_ex/dsc_3241.png has changed
author Thinker K.F. Li <thinker@branda.to>
date Fri, 23 Jan 2009 23:00:23 +0800
parents 50d253d0fcba
children 2469f8d23658
comparison
equal deleted inserted replaced
259:e8a784a306d0 260:29acbd8a0dd0
61 61
62 /*! \brief Base of paint types. 62 /*! \brief Base of paint types.
63 * 63 *
64 * Paints should be freed by users by calling rdman_paint_free() of 64 * Paints should be freed by users by calling rdman_paint_free() of
65 * the paint. 65 * the paint.
66 *
67 * To define a foo paint, it should define a rdman_paint_foo_new()
68 * function. It return a paint object.
66 * 69 *
67 * \todo move member functions to a seperate structure and setup a 70 * \todo move member functions to a seperate structure and setup a
68 * singleton for each paint type. 71 * singleton for each paint type.
69 */ 72 */
70 struct _paint { 73 struct _paint {
271 #define sh_set_flags(sh, mask) geo_set_flags(sh_get_geo(sh), mask) 274 #define sh_set_flags(sh, mask) geo_set_flags(sh_get_geo(sh), mask)
272 #define sh_clear_flags(sh, mask) geo_clear_flags(sh_get_geo(sh), mask) 275 #define sh_clear_flags(sh, mask) geo_clear_flags(sh_get_geo(sh), mask)
273 #define sh_pos_is_in(sh, x, y) geo_pos_is_in(sh_get_geo(sh), x, y) 276 #define sh_pos_is_in(sh, x, y) geo_pos_is_in(sh_get_geo(sh), x, y)
274 #define sh_get_area(sh) geo_get_area(sh_get_geo(sh)) 277 #define sh_get_area(sh) geo_get_area(sh_get_geo(sh))
275 #define sh_get_coord(sh) ((sh)->coord) 278 #define sh_get_coord(sh) ((sh)->coord)
279 #define sh_get_fill(sh) ((sh)->fill)
280 #define sh_get_stroke(sh) ((sh)->stroke)
276 281
277 282
278 /*! \brief A sprite is a set of graphics that being an object in animation. 283 /*! \brief A sprite is a set of graphics that being an object in animation.
279 * 284 *
280 * A sprite include graphics comprise an object. For example, a tank, in 285 * A sprite include graphics comprise an object. For example, a tank, in