diff options
Diffstat (limited to 'PhysX_3.4/Source/SceneQuery/include/SqPruner.h')
| -rw-r--r-- | PhysX_3.4/Source/SceneQuery/include/SqPruner.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/SceneQuery/include/SqPruner.h b/PhysX_3.4/Source/SceneQuery/include/SqPruner.h index 871962df..9c77b1b5 100644 --- a/PhysX_3.4/Source/SceneQuery/include/SqPruner.h +++ b/PhysX_3.4/Source/SceneQuery/include/SqPruner.h @@ -227,10 +227,19 @@ public: /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** * Steps the accel structure build. + * canDoInit specifies if initialization can happen. It should not initialize build when called from a different thread * returns true if finished */ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// - virtual bool buildStep() = 0; + virtual bool buildStep(bool canDoInit = true) = 0; + + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + /** + * Prepares new tree build + * returns true if new tree is needed + */ + /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + virtual bool prepareBuild() = 0; }; ////////////////////////////////////////////////////////////////////////// |