RAII wrapper for the PxScene write lock.
More...
#include <PxSceneLock.h>
RAII wrapper for the PxScene write lock.
Use this class as follows to lock the scene for writing by the current thread for the duration of the enclosing scope:
PxSceneWriteLock lock(sceneRef);
- See also
- PxScene::lockWrite(), PxScene::unlockWrite(), PxSceneFlag::eREQUIRE_RW_LOCK
◆ PxSceneWriteLock() [1/2]
◆ PxSceneWriteLock() [2/2]
PxSceneWriteLock::PxSceneWriteLock |
( |
PxScene & |
scene, |
|
|
const char * |
file = NULL , |
|
|
PxU32 |
line = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
scene | The scene to lock for writing |
file | Optional string for debugging purposes |
line | Optional line number for debugging purposes |
◆ ~PxSceneWriteLock()
PxSceneWriteLock::~PxSceneWriteLock |
( |
| ) |
|
|
inline |
◆ operator=()
◆ mScene
The documentation for this class was generated from the following file: