]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/bvh/BVHNode.cxx
hla: Provide a directly property based api for property data element.
[simgear.git] / simgear / scene / bvh / BVHNode.cxx
index 5d8f39f3a03c8e61e2a78639c48caa1ff0146925..d4b1ca5f44284ea43e14d03d2a8425f46f6cf5be 100644 (file)
@@ -18,6 +18,7 @@
 #include "BVHNode.hxx"
 
 #include <algorithm>
+#include <simgear/structure/SGAtomic.hxx>
 #include <simgear/math/SGGeometry.hxx>
 
 namespace simgear {
@@ -31,6 +32,13 @@ BVHNode::~BVHNode()
 {
 }
 
+BVHNode::Id
+BVHNode::getNewId()
+{
+    static SGAtomic id(0);
+    return ++id;
+}
+
 void
 BVHNode::addParent(BVHNode* parent)
 {