Panda3D
|
00001 // Filename: physxConvexMeshDesc.h 00002 // Created by: enn0x (11Oct09) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef PHYSXCONVEXMESHDESC_H 00016 #define PHYSXCONVEXMESHDESC_H 00017 00018 #include "pandabase.h" 00019 #include "luse.h" 00020 #include "nodePath.h" 00021 00022 #include "physx_includes.h" 00023 00024 //////////////////////////////////////////////////////////////////// 00025 // Class : PhysxConvexMeshDesc 00026 // Description : 00027 //////////////////////////////////////////////////////////////////// 00028 class EXPCL_PANDAPHYSX PhysxConvexMeshDesc { 00029 00030 PUBLISHED: 00031 INLINE PhysxConvexMeshDesc(); 00032 INLINE ~PhysxConvexMeshDesc(); 00033 00034 INLINE bool is_valid() const; 00035 00036 void set_num_vertices(unsigned int n); 00037 void set_vertex(unsigned int idx, const LPoint3f &vert); 00038 void set_from_node_path(const NodePath &np); 00039 00040 public: 00041 const NxConvexMeshDesc &get_desc() const; 00042 00043 private: 00044 NxVec3 *_vertices; 00045 NxConvexMeshDesc _desc; 00046 }; 00047 00048 #include "physxConvexMeshDesc.I" 00049 00050 #endif // PHYSXCONVEXMESHDESC_H