goat3d
diff src/node.h @ 75:76dea247f75c
in progress
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 08 May 2014 00:50:16 +0300 |
parents | dad392c710df |
children |
line diff
1.1 --- a/src/node.h Tue May 06 13:26:52 2014 +0300 1.2 +++ b/src/node.h Thu May 08 00:50:16 2014 +0300 1.3 @@ -20,6 +20,7 @@ 1.4 1.5 #include "xform_node.h" 1.6 #include "object.h" 1.7 +#include "aabox.h" 1.8 1.9 namespace g3dimpl { 1.10 1.11 @@ -27,12 +28,17 @@ 1.12 private: 1.13 Object *obj; 1.14 1.15 + mutable AABox bbox; 1.16 + mutable bool bbox_valid; 1.17 + 1.18 public: 1.19 Node(); 1.20 1.21 void set_object(Object *obj); 1.22 Object *get_object(); 1.23 const Object *get_object() const; 1.24 + 1.25 + const AABox &get_bounds() const; 1.26 }; 1.27 1.28 void delete_node_tree(Node *n);