diff 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
line wrap: on
line diff
--- a/include/mb_redraw_man.h	Tue Dec 16 21:24:26 2008 +0800
+++ b/include/mb_redraw_man.h	Wed Dec 17 08:10:51 2008 +0800
@@ -168,5 +168,17 @@
 #define rdman_get_redraw_subject(rdman) ((rdman)->redraw)
 #define rdman_get_root(rdman) ((rdman)->root_coord)
 
+/*! \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.
+ *
+ */
+mb_sprite_t *sprite_load(const char *name, redraw_man_t *rdman, coord_t *root);
+
+/*! \brief Set the search path of dymanic object loading.
+ *
+ */
+void sprite_set_search_path(char *path);
 
 #endif /* __REDRAW_MAN_H_ */