Panda3D
 All Classes Functions Variables Enumerations
physxCcdSkeletonDesc.h
1 // Filename: physxCcdSkeletonDesc.h
2 // Created by: enn0x (01May12)
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 PHYSXCCDSKELETONDESC_H
16 #define PHYSXCCDSKELETONDESC_H
17 
18 #include "pandabase.h"
19 #include "nodePath.h"
20 #include "luse.h"
21 
22 #include "physx_includes.h"
23 
24 ////////////////////////////////////////////////////////////////////
25 // Class : PhysxCcdSkeletonDesc
26 // Description :
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSX PhysxCcdSkeletonDesc {
29 
30 PUBLISHED:
31  INLINE PhysxCcdSkeletonDesc();
32  INLINE ~PhysxCcdSkeletonDesc();
33 
34  INLINE bool is_valid() const;
35 
36  void set_num_vertices(unsigned int n);
37  void set_vertex(unsigned int idx, const LPoint3f &vert);
38 
39  void set_num_triangles(unsigned int n);
40  void set_triangle(unsigned int idx,
41  unsigned int i1, unsigned int i2, unsigned int i3);
42 
43  void set_from_node_path(const NodePath &np);
44 
45 public:
46  const NxSimpleTriangleMesh &get_desc() const;
47 
48 private:
49  NxVec3 *_vertices;
50  NxU32 *_triangles;
51  NxSimpleTriangleMesh _desc;
52 };
53 
54 #include "physxCcdSkeletonDesc.I"
55 
56 #endif // PHYSXCCDSKELETONDESC_H
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165