Mercurial > MadButterfly
diff include/mb_redraw_man.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 | b42ee279669e |
line wrap: on
line diff
--- a/include/mb_redraw_man.h Thu Jan 22 18:10:47 2009 +0800 +++ b/include/mb_redraw_man.h Fri Jan 23 23:00:23 2009 +0800 @@ -5,6 +5,7 @@ #include "mb_tools.h" #include "mb_types.h" #include "mb_observer.h" +#include "mb_img_ldr.h" typedef struct _redraw_man redraw_man_t; @@ -79,6 +80,9 @@ * \see rdman_attach_backend() */ mb_prop_store_t props; + mb_img_ldr_t *img_ldr; /*!< \brief Image Loader. + * This is initialized by backend. + */ }; extern int redraw_man_init(redraw_man_t *rdman, cairo_t *cr, @@ -190,6 +194,8 @@ rdman_get_gen_geos(rdman)->num #define rdman_clear_shape_gl(rdman) \ DARRAY_CLEAN(rdman_get_gen_geos(rdman)) +#define rdman_prop_store(rdman) ((rdman)->props) +#define rdman_img_ldr(rdman) ((rdman)->img_ldr) /*! \brief Attach backend to the redraw manager so that we can hide the backend from the users. * @@ -197,9 +203,10 @@ #define rdman_attach_backend(rdman,backend) (((rdman)->rt)=(backend)) /*! \brief Load sprite dymanicly from the shared object module. * - * The search path can be changed by sprite_set_search_path. The name can have a relative path in the front of it. - * This function will search the object in the current working directory and then search the system search path. - * + * The search path can be changed by sprite_set_search_path. The name + * can have a relative path in the front of it. + * This function will search the object in the current working directory + * and then search the system search path. */ mb_sprite_t *sprite_load(const char *name, redraw_man_t *rdman, coord_t *root);