Panda3D

physxContactReport.h
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file physxContactReport.h
10 * @author enn0x
11 * @date 2009-09-19
12 */
13
14 #ifndef PHYSXCONTACTREPORT_H
15 #define PHYSXCONTACTREPORT_H
16
17 #include "pandabase.h"
18 #include "pStatCollector.h"
19 #include "physx_includes.h"
20
21 /**
22 * Implementation of the NxUserContactReport interface.
23 */
24 class EXPCL_PANDAPHYSX PhysxContactReport : public NxUserContactReport {
25
26 public:
27 INLINE PhysxContactReport();
28 INLINE ~PhysxContactReport();
29
30 void enable();
31 void disable();
32 bool is_enabled() const;
33
34 void onContactNotify(NxContactPair& pair, NxU32 flags);
35
36 private:
37 bool _enabled;
38 static PStatCollector _pcollector;
39 };
40
41 #include "physxContactReport.I"
42
43 #endif // PHYSXCONTACTREPORT_H
PStatCollector
A lightweight class that represents a single element that may be timed and/or counted via stats.
Definition: pStatCollector.h:43
PhysxContactReport
Implementation of the NxUserContactReport interface.
Definition: physxContactReport.h:24
pStatCollector.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxContactReport.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.