goat3d
diff src/goat3d_impl.h @ 75:76dea247f75c
in progress
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 08 May 2014 00:50:16 +0300 |
parents | ab66cdabf6f2 |
children |
line diff
1.1 --- a/src/goat3d_impl.h Tue May 06 13:26:52 2014 +0300 1.2 +++ b/src/goat3d_impl.h Thu May 08 00:50:16 2014 +0300 1.3 @@ -26,6 +26,7 @@ 1.4 #include "camera.h" 1.5 #include "material.h" 1.6 #include "node.h" 1.7 +#include "aabox.h" 1.8 1.9 namespace g3dimpl { 1.10 class Scene; 1.11 @@ -65,6 +66,9 @@ 1.12 std::vector<Camera*> cameras; 1.13 std::vector<Node*> nodes; 1.14 1.15 + mutable AABox bbox; 1.16 + mutable bool bbox_valid; 1.17 + 1.18 public: 1.19 goat3d *goat; 1.20 1.21 @@ -104,6 +108,8 @@ 1.22 Node *get_node(const char *name) const; 1.23 int get_node_count() const; 1.24 1.25 + const AABox &get_bounds() const; 1.26 + 1.27 bool load(goat3d_io *io); 1.28 bool save(goat3d_io *io) const; 1.29