Mercurial > MadButterfly
comparison include/mb_redraw_man.h @ 227:a6e559fb76d7
Add dynamic loading function for sprite
author | wycc |
---|---|
date | Wed, 17 Dec 2008 08:10:51 +0800 |
parents | 29e1b2bffe4c |
children | 2637519e2bd7 |
comparison
equal
deleted
inserted
replaced
226:b24d7889cbda | 227:a6e559fb76d7 |
---|---|
166 co_aix x, co_aix y, int *in_stroke); | 166 co_aix x, co_aix y, int *in_stroke); |
167 #define rdman_get_ob_factory(rdman) (&(rdman)->ob_factory) | 167 #define rdman_get_ob_factory(rdman) (&(rdman)->ob_factory) |
168 #define rdman_get_redraw_subject(rdman) ((rdman)->redraw) | 168 #define rdman_get_redraw_subject(rdman) ((rdman)->redraw) |
169 #define rdman_get_root(rdman) ((rdman)->root_coord) | 169 #define rdman_get_root(rdman) ((rdman)->root_coord) |
170 | 170 |
171 /*! \brief Load sprite dymanicly from the shared object module. | |
172 * | |
173 * The search path can be changed by sprite_set_search_path. The name can have a relative path in the front of it. | |
174 * This function will search the object in the current working directory and then search the system search path. | |
175 * | |
176 */ | |
177 mb_sprite_t *sprite_load(const char *name, redraw_man_t *rdman, coord_t *root); | |
178 | |
179 /*! \brief Set the search path of dymanic object loading. | |
180 * | |
181 */ | |
182 void sprite_set_search_path(char *path); | |
171 | 183 |
172 #endif /* __REDRAW_MAN_H_ */ | 184 #endif /* __REDRAW_MAN_H_ */ |