Mercurial > MadButterfly
comparison include/mb_types.h @ 209:6f63aa67ed83
Define types for sprite shared object.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 10 Dec 2008 17:15:26 +0800 |
parents | e01acb80f0e7 |
children | 3fadd2f2742e |
comparison
equal
deleted
inserted
replaced
208:e01acb80f0e7 | 209:6f63aa67ed83 |
---|---|
218 * A sprite include graphics comprise an object. For example, a tank, in | 218 * A sprite include graphics comprise an object. For example, a tank, in |
219 * example tank, is comprised a set of graphics that is represented as a | 219 * example tank, is comprised a set of graphics that is represented as a |
220 * sprite. | 220 * sprite. |
221 */ | 221 */ |
222 struct _mb_sprite { | 222 struct _mb_sprite { |
223 void (*free)(struct _mb_sprite *); | 223 void (*free)(mb_sprite_t *); |
224 mb_obj_t *(*get_obj_with_name)(const char *id); | 224 mb_obj_t *(*get_obj_with_name)(mb_sprite_t *sprite, const char *id); |
225 }; | 225 }; |
226 | 226 |
227 #endif /* __MB_TYPES_H_ */ | 227 #endif /* __MB_TYPES_H_ */ |