Panda3D
physxTriangleMeshShapeDesc.h
1 // Filename: physxTriangleMeshShapeDesc.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 PHYSXTRIANGLEMESHSHAPEDESC_H
16 #define PHYSXTRIANGLEMESHSHAPEDESC_H
17 
18 #include "pandabase.h"
19 
20 #include "physxShapeDesc.h"
21 #include "physx_includes.h"
22 
23 class PhysxTriangleMesh;
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : PhysxTriangleMeshShapeDesc
27 // Description : Descriptor class for PhysxTriangleMeshShape.
28 ////////////////////////////////////////////////////////////////////
29 class EXPCL_PANDAPHYSX PhysxTriangleMeshShapeDesc : public PhysxShapeDesc {
30 
31 PUBLISHED:
33  INLINE ~PhysxTriangleMeshShapeDesc();
34 
35  INLINE void set_to_default();
36  INLINE bool is_valid() const;
37 
38  void set_mesh(PhysxTriangleMesh *mesh);
39 
40 public:
41  NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
42  NxTriangleMeshShapeDesc _desc;
43 };
44 
45 #include "physxTriangleMeshShapeDesc.I"
46 
47 #endif // PHYSXTRIANGLEMESHSHAPEDESC_H
Descriptor class for PhysxTriangleMeshShape.
Abstract base class for shape descriptors.