libanim
diff src/anim.h @ 5:2cf7284d2bbb
added anm_get_node_matrix and anm_get_node_inv_matrix functions to calculate
node matrices without taking the hierarchy into account...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 27 Feb 2013 21:38:33 +0200 |
parents | 69654793abc3 |
children | 3c2428cb38f7 |
line diff
1.1 --- a/src/anim.h Wed Feb 27 20:54:19 2013 +0200 1.2 +++ b/src/anim.h Wed Feb 27 21:38:33 2013 +0200 1.3 @@ -95,6 +95,14 @@ 1.4 void anm_set_pivot(struct anm_node *node, vec3_t pivot); 1.5 vec3_t anm_get_pivot(struct anm_node *node); 1.6 1.7 +/* these calculate the matrix and inverse matrix of this node alone */ 1.8 +void anm_get_node_matrix(struct anm_node *node, mat4_t mat, anm_time_t tm); 1.9 +void anm_get_node_inv_matrix(struct anm_node *node, mat4_t mat, anm_time_t tm); 1.10 + 1.11 +/* These calculate the matrix and inverse matrix of this node taking hierarchy 1.12 + * into account. The results are cached in thread-specific storage and returned 1.13 + * if there's no change in time or tracks from the last query... 1.14 + */ 1.15 void anm_get_matrix(struct anm_node *node, mat4_t mat, anm_time_t tm); 1.16 void anm_get_inv_matrix(struct anm_node *node, mat4_t mat, anm_time_t tm); 1.17