comparison src/coord.c @ 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 41f0907b27ac
comparison
equal deleted inserted replaced
15:c2ce186a5c37 16:e17e12b112c4
33 if(visit->parent) 33 if(visit->parent)
34 mul_matrix(visit->parent->aggr_matrix, 34 mul_matrix(visit->parent->aggr_matrix,
35 visit->matrix, visit->aggr_matrix); 35 visit->matrix, visit->aggr_matrix);
36 else 36 else
37 memcpy(visit->aggr_matrix, visit->matrix, sizeof(visit->matrix)); 37 memcpy(visit->aggr_matrix, visit->matrix, sizeof(visit->matrix));
38 }
39
40 void compute_aggr_of_coord(coord_t *coord) {
41 compute_transform_function(coord);
38 } 42 }
39 43
40 /*! \brief Update aggregate matrices of elements under a sub-tree. 44 /*! \brief Update aggregate matrices of elements under a sub-tree.
41 * 45 *
42 * A subtree is specified by the root of it. All elements in the subtree 46 * A subtree is specified by the root of it. All elements in the subtree