My Project
Client
trunk
ParaEngineClient
util
ScopedLock.h
1
#pragma once
2
3
namespace
ParaEngine
4
{
6
class
ScopedBoolean_Lock
7
{
8
public
:
9
ScopedBoolean_Lock
(
bool
* pBoolValue) :
10
m_pBoolValue(pBoolValue)
11
{
12
if
(m_pBoolValue)
13
*m_pBoolValue =
true
;
14
}
15
~
ScopedBoolean_Lock
() {
16
if
(m_pBoolValue)
17
*m_pBoolValue =
false
;
18
}
19
private
:
20
bool
* m_pBoolValue;
21
};
22
}
23
24
ParaEngine
different physics engine has different winding order.
Definition:
EventBinding.h:32
ParaEngine::ScopedBoolean_Lock
simple scoped lock for a boolean pointer.
Definition:
ScopedLock.h:6
Generated by
1.8.12