summaryrefslogtreecommitdiffstats
path: root/BSPTree.h
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2009-12-23 17:51:38 +0100
committerConstantin Riß <constantin.riss@dre.de>2009-12-23 17:51:38 +0100
commitd2abe4f728824ef708dd1f316f4f211fb799251d (patch)
treef5fdb1b4f2d51fea974d93d1ec8a4882e4b495f1 /BSPTree.h
parent6cc98762e5e0c18e4b2c1cbe29d42ae485774609 (diff)
parent90b27bca4d75df07adbe9939a40eafb5c785f903 (diff)
downloadc3d-d2abe4f728824ef708dd1f316f4f211fb799251d.tar
c3d-d2abe4f728824ef708dd1f316f4f211fb799251d.zip
Merge branch 'master' of git://git.gamezock.de/c3d
Diffstat (limited to 'BSPTree.h')
-rw-r--r--BSPTree.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/BSPTree.h b/BSPTree.h
index 50f18df..c005507 100644
--- a/BSPTree.h
+++ b/BSPTree.h
@@ -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);