forked from coronalabs/corona
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRtt_PhysicsContact.h
62 lines (42 loc) · 1.47 KB
/
Rtt_PhysicsContact.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: [email protected]
//
//////////////////////////////////////////////////////////////////////////////
#ifndef _Rtt_PhysicsContact_H__
#define _Rtt_PhysicsContact_H__
#ifdef Rtt_PHYSICS
#include "Core/Rtt_ResourceHandle.h"
// ----------------------------------------------------------------------------
class b2Contact;
struct lua_State;
namespace Rtt
{
class UserdataWrapper;
// ----------------------------------------------------------------------------
class PhysicsContact
{
public:
typedef PhysicsContact Self;
public:
static const char kMetatableName[];
public:
static UserdataWrapper *CreateWrapper( const ResourceHandle< lua_State >& luaStateHandle, b2Contact *contact );
public:
static b2Contact* GetContact( lua_State *L, int index );
public:
static void Initialize( lua_State *L );
// Metatable methods
public:
static int ValueForKey( lua_State *L );
static int SetValueForKey( lua_State *L );
static int Finalizer( lua_State *L );
};
// ----------------------------------------------------------------------------
} // namespace Rtt
// ----------------------------------------------------------------------------
#endif // Rtt_PHYSICS
#endif // _Rtt_PhysicsContact_H__