libanim

diff src/anim.h @ 60:8f7193d00555

set/get currently active animation name and minor enhancements in the example
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 Dec 2013 11:29:42 +0200
parents 9758004136f8
children 09e267e7ed4a
line diff
     1.1 --- a/src/anim.h	Fri Dec 27 10:58:23 2013 +0200
     1.2 +++ b/src/anim.h	Fri Dec 27 11:29:42 2013 +0200
     1.3 @@ -128,6 +128,14 @@
     1.4  /* set the extrapolator for the (first) currently active animation */
     1.5  void anm_set_extrapolator(struct anm_node *node, enum anm_extrapolator ex);
     1.6  
     1.7 +/* set the name of the currently active animation of this node only */
     1.8 +void anm_set_node_active_animation_name(struct anm_node *node, const char *name);
     1.9 +/* recursively set the name of the currently active animation for this node
    1.10 + * and all it's descendants */
    1.11 +void anm_set_active_animation_name(struct anm_node *node, const char *name);
    1.12 +/* get the name of the currently active animation of this node */
    1.13 +const char *anm_get_active_animation_name(struct anm_node *node);
    1.14 +
    1.15  void anm_set_position(struct anm_node *node, vec3_t pos, anm_time_t tm);
    1.16  vec3_t anm_get_node_position(struct anm_node *node, anm_time_t tm);
    1.17