Panda3D
physxConvexShapeDesc.h
1 // Filename: physxConvexShapeDesc.h
2 // Created by: enn0x (14Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXCONVEXSHAPEDESC_H
16 #define PHYSXCONVEXSHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxShapeDesc.h"
21 #include "physx_includes.h"
22 
23 class PhysxConvexMesh;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : PhysxConvexShapeDesc
27 // Description : Descriptor class for PhysxConvexShape.
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDAPHYSX PhysxConvexShapeDesc : public PhysxShapeDesc {
30 
31 PUBLISHED:
32  INLINE PhysxConvexShapeDesc();
33  INLINE ~PhysxConvexShapeDesc();
34 
35  INLINE void set_to_default();
36  INLINE bool is_valid() const;
37 
38  void set_mesh(PhysxConvexMesh *mesh);
39 
40 public:
41  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
42  NxConvexShapeDesc _desc;
43 };
44 
45 #include "physxConvexShapeDesc.I"
46 
47 #endif // PHYSXCONVEXSHAPEDESC_H
Descriptor class for PhysxConvexShape.
A Convex Mesh.
Abstract base class for shape descriptors.