comparison include/mb_redraw_man.h @ 1051:8679b03f72e8

Move declaration about sprite to a separated header file.
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 24 Nov 2010 14:19:00 +0800
parents 83f39fdfbdaa
children 1f93f38688c2
comparison
equal deleted inserted replaced
1050:83f39fdfbdaa 1051:8679b03f72e8
218 218
219 /*! \brief Attach backend to the redraw manager so that we can hide the backend from the users. 219 /*! \brief Attach backend to the redraw manager so that we can hide the backend from the users.
220 * 220 *
221 */ 221 */
222 #define rdman_attach_backend(rdman,backend) (((rdman)->rt)=(backend)) 222 #define rdman_attach_backend(rdman,backend) (((rdman)->rt)=(backend))
223 /*! \brief Load sprite dymanicly from the shared object module.
224 *
225 * The search path can be changed by sprite_set_search_path. The name
226 * can have a relative path in the front of it.
227 * This function will search the object in the current working directory
228 * and then search the system search path.
229 */
230 extern mb_sprite_t *sprite_load(const char *name, redraw_man_t *rdman,
231 coord_t *root);
232
233 /*! \brief Set the search path of dymanic object loading.
234 *
235 */
236 extern void sprite_set_search_path(const char *path);
237 223
238 extern paint_t *rdman_img_ldr_load_paint(redraw_man_t *rdman, 224 extern paint_t *rdman_img_ldr_load_paint(redraw_man_t *rdman,
239 const char *img_id); 225 const char *img_id);
240 226
241
242 #endif /* __REDRAW_MAN_H_ */ 227 #endif /* __REDRAW_MAN_H_ */