goat3d
diff src/xform_node.h @ 95:da100bf13f7f
[goat3d] implemented animation loading
[goatview] working on the animation controls
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 19 May 2014 06:42:40 +0300 |
parents | dad392c710df |
children |
line diff
1.1 --- a/src/xform_node.h Sun May 18 19:58:47 2014 +0300 1.2 +++ b/src/xform_node.h Mon May 19 06:42:40 2014 +0300 1.3 @@ -69,6 +69,9 @@ 1.4 virtual XFormNode *get_parent(); 1.5 virtual const XFormNode *get_parent() const; 1.6 1.7 + virtual XFormNode *get_root(); 1.8 + virtual const XFormNode *get_root() const; 1.9 + 1.10 // children management 1.11 virtual void add_child(XFormNode *child); 1.12 virtual void remove_child(XFormNode *child); 1.13 @@ -95,6 +98,8 @@ 1.14 virtual void set_animation_name(const char *name); 1.15 virtual const char *get_animation_name() const; 1.16 1.17 + virtual bool get_timeline_bounds(long *start, long *end); 1.18 + 1.19 // raw keyframe retrieval without interpolation 1.20 // NOTE: trackid parameters correspond to the values of the unnamed enumeration at the top 1.21