Main Page
Class Hierarchy
Compound List
Compound Members
Include
PxSceneLock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
3
*
4
* NVIDIA CORPORATION and its licensors retain all intellectual property
5
* and proprietary rights in and to this software, related documentation
6
* and any modifications thereto. Any use, reproduction, disclosure or
7
* distribution of this software and related documentation without an express
8
* license agreement from NVIDIA CORPORATION is strictly prohibited.
9
*/
10
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
11
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
12
13
14
#ifndef PX_PHYSICS_NX_SCENELOCK
15
#define PX_PHYSICS_NX_SCENELOCK
16
20
#include "
PxPhysXConfig.h
"
21
#include "
PxScene.h
"
22
23
#ifndef PX_DOXYGEN
24
namespace
physx
25
{
26
#endif
27
38
class
PxSceneReadLock
39
{
40
PxSceneReadLock
(
const
PxSceneReadLock
&);
41
PxSceneReadLock
& operator=(
const
PxSceneReadLock
&);
42
43
public
:
44
51
PxSceneReadLock
(
PxScene
& scene,
const
char
* file=
NULL
,
PxU32
line=0)
52
: mScene(scene)
53
{
54
mScene.lockRead(file, line);
55
}
56
57
~
PxSceneReadLock
()
58
{
59
mScene.unlockRead();
60
}
61
62
private
:
63
64
PxScene
&
mScene
;
65
};
66
77
class
PxSceneWriteLock
78
{
79
PxSceneWriteLock
(
const
PxSceneWriteLock
&);
80
PxSceneWriteLock
& operator=(
const
PxSceneWriteLock
&);
81
82
public
:
83
90
PxSceneWriteLock
(
PxScene
& scene,
const
char
* file=
NULL
,
PxU32
line=0)
91
: mScene(scene)
92
{
93
mScene.lockWrite(file, line);
94
}
95
96
~
PxSceneWriteLock
()
97
{
98
mScene.unlockWrite();
99
}
100
101
private
:
102
103
PxScene
&
mScene
;
104
};
105
106
107
#ifndef PX_DOXYGEN
108
}
// namespace physx
109
#endif
110
112
#endif
Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.
www.nvidia.com