Panda3D
panda
src
physx
physxConvexMesh.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 physxConvexMesh.h
10
* @author enn0x
11
* @date 2009-10-13
12
*/
13
14
#ifndef PHYSXCONVEXMESH_H
15
#define PHYSXCONVEXMESH_H
16
17
#include "
pandabase.h
"
18
19
#include "
physxObject.h
"
20
#include "
physx_includes.h
"
21
22
/**
23
* A Convex Mesh. Internally represented as a list of convex polygons. The
24
* number of polygons is limited to 256.
25
*/
26
class
EXPCL_PANDAPHYSX
PhysxConvexMesh
:
public
PhysxObject
{
27
28
PUBLISHED:
29
unsigned
int
get_reference_count()
const
;
30
31
PUBLISHED:
32
void
release();
33
34
INLINE
void
ls()
const
;
35
INLINE
void
ls(std::ostream &out,
int
indent_level=0)
const
;
36
37
public
:
38
INLINE
PhysxConvexMesh
();
39
INLINE ~
PhysxConvexMesh
();
40
41
INLINE NxConvexMesh *ptr()
const
{
return
_ptr; };
42
43
void
link(NxConvexMesh *meshPtr);
44
void
unlink();
45
46
private
:
47
NxConvexMesh *_ptr;
48
49
public
:
50
static
TypeHandle
get_class_type() {
51
return
_type_handle;
52
}
53
static
void
init_type() {
54
PhysxObject::init_type();
55
register_type
(_type_handle,
"PhysxConvexMesh"
,
56
PhysxObject::get_class_type());
57
}
58
virtual
TypeHandle
get_type()
const
{
59
return
get_class_type();
60
}
61
virtual
TypeHandle
force_init_type() {
62
init_type();
63
return
get_class_type();
64
}
65
66
private
:
67
static
TypeHandle
_type_handle;
68
};
69
70
#include "
physxConvexMesh.I
"
71
72
#endif // PHYSXCONVEXMESH_H
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
register_type
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition:
register_type.I:22
PhysxObject
Definition:
physxObject.h:28
PhysxConvexMesh
A Convex Mesh.
Definition:
physxConvexMesh.h:26
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:81
physxConvexMesh.I
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physxObject.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
physx_includes.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Sat Jan 11 2020 15:15:29 for Panda3D by
1.8.17