diff options
author | Constantin Riß <constantin.riss@dre.de> | 2009-12-23 17:51:38 +0100 |
---|---|---|
committer | Constantin Riß <constantin.riss@dre.de> | 2009-12-23 17:51:38 +0100 |
commit | d2abe4f728824ef708dd1f316f4f211fb799251d (patch) | |
tree | f5fdb1b4f2d51fea974d93d1ec8a4882e4b495f1 /BSPTree.h | |
parent | 6cc98762e5e0c18e4b2c1cbe29d42ae485774609 (diff) | |
parent | 90b27bca4d75df07adbe9939a40eafb5c785f903 (diff) | |
download | c3d-d2abe4f728824ef708dd1f316f4f211fb799251d.tar c3d-d2abe4f728824ef708dd1f316f4f211fb799251d.zip |
Merge branch 'master' of git://git.gamezock.de/c3d
Diffstat (limited to 'BSPTree.h')
-rw-r--r-- | BSPTree.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -69,6 +69,11 @@ class BSPTree { public: BSPTree(const std::list<Triangle> &triangles); + + BSPTree(const BSPTree &tree) : frontTree(0), backTree(0) { + *this = tree; + } + virtual ~BSPTree() { if(frontTree) delete frontTree; @@ -77,6 +82,8 @@ class BSPTree { delete backTree; } + BSPTree& operator=(const BSPTree &tree); + template<typename T> void visit(const T& visitor, const vmml::vec3f &p) { doVisit<const T>(visitor, p); |