Panda3D
panda
src
physx
physxTriggerReport.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 physxTriggerReport.h
10
* @author enn0x
11
* @date 2009-09-19
12
*/
13
14
#ifndef PHYSXTRIGGERREPORT_H
15
#define PHYSXTRIGGERREPORT_H
16
17
#include "
pandabase.h
"
18
#include "
pStatCollector.h
"
19
20
#include "
physx_includes.h
"
21
22
/**
23
* Implementation of the NxUserTriggerReport interface.
24
*/
25
class
EXPCL_PANDAPHYSX
PhysxTriggerReport
:
public
NxUserTriggerReport {
26
27
public
:
28
INLINE
PhysxTriggerReport
();
29
INLINE ~
PhysxTriggerReport
();
30
31
void
enable();
32
void
disable();
33
bool
is_enabled()
const
;
34
35
void
onTrigger(NxShape &triggerShape, NxShape &otherShape, NxTriggerFlag status);
36
37
private
:
38
bool
_enabled;
39
static
PStatCollector
_pcollector;
40
};
41
42
#include "
physxTriggerReport.I
"
43
44
#endif // PHYSXTRIGGERREPORT_H
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxTriggerReport.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PStatCollector
A lightweight class that represents a single element that may be timed and/or counted via stats.
Definition:
pStatCollector.h:43
PhysxTriggerReport
Implementation of the NxUserTriggerReport interface.
Definition:
physxTriggerReport.h:25
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
pStatCollector.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Mon Sep 14 2020 15:07:05 for Panda3D by
1.8.20