]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/userdata.hxx
Stuart Buchanan: Fix a bug in the random object placement where the model selected...
[simgear.git] / simgear / scene / tgdb / userdata.hxx
index e5a870e3ae4bc03604c2c80d72efa818b3e8ecea..fa5209e679024d29b3d9933531b6c3b989c97e76 100644 (file)
@@ -26,6 +26,7 @@
 #define _SG_USERDATA_HXX
 
 #include <simgear/compiler.h>
+#include <simgear/math/sg_random.h>
 
 #include <osg/Node>
 
@@ -42,6 +43,14 @@ void sgUserDataInit(SGPropertyNode *p);
 /**
  * Get a random model.
  */
-osg::Node* sgGetRandomModel(SGMatModel *obj);
+osg::Node* sgGetRandomModel(SGMatModel *obj, mt seed);
+
+namespace simgear
+{
+/**
+ * Get the property root for the simulation
+ */
+SGPropertyNode* getPropertyRoot();
+}
 
 #endif // _SG_USERDATA_HXX