comparison src/redraw_man.h @ 16:e17e12b112c4

A simple animation using rdman_redraw_changed().
author Thinker K.F. Li <thinker@branda.to>
date Fri, 01 Aug 2008 18:20:28 +0800
parents c2ce186a5c37
children 0f3baa488a62
comparison
equal deleted inserted replaced
15:c2ce186a5c37 16:e17e12b112c4
19 * 19 *
20 * Dirty flag is clear when the transformation matrix of a coord 20 * Dirty flag is clear when the transformation matrix of a coord
21 * object been recomputed or when a geo_t objects been redrawed. 21 * object been recomputed or when a geo_t objects been redrawed.
22 */ 22 */
23 typedef struct _redraw_man { 23 typedef struct _redraw_man {
24 #ifdef GEO_ORDER
24 unsigned int next_geo_order; 25 unsigned int next_geo_order;
26 #endif
25 int n_geos; 27 int n_geos;
26 STAILQ(geo_t) all_geos; 28 STAILQ(geo_t) all_geos;
27 29
28 unsigned int next_coord_order; 30 unsigned int next_coord_order;
29 int n_coords; 31 int n_coords;
56 shape_t *shape, coord_t *coord); 58 shape_t *shape, coord_t *coord);
57 extern int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape); 59 extern int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape);
58 extern coord_t *rdman_coord_new(redraw_man_t *rdman, coord_t *parent); 60 extern coord_t *rdman_coord_new(redraw_man_t *rdman, coord_t *parent);
59 extern int rdman_coord_free(redraw_man_t *rdman, coord_t *coord); 61 extern int rdman_coord_free(redraw_man_t *rdman, coord_t *coord);
60 extern int rdman_coord_changed(redraw_man_t *rdman, coord_t *coord); 62 extern int rdman_coord_changed(redraw_man_t *rdman, coord_t *coord);
63 extern int rdman_shape_changed(redraw_man_t *rdman, shape_t *shape);
61 extern int rdman_redraw_changed(redraw_man_t *rdman); 64 extern int rdman_redraw_changed(redraw_man_t *rdman);
62 extern int rdman_redraw_all(redraw_man_t *rdman); 65 extern int rdman_redraw_all(redraw_man_t *rdman);
63 66
64 67
65 #endif /* __REDRAW_MAN_H_ */ 68 #endif /* __REDRAW_MAN_H_ */