Panda3D
|
00001 // Filename: physxConvexMeshDesc.I 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 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: PhysxConvexMeshDesc::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE PhysxConvexMeshDesc:: 00022 PhysxConvexMeshDesc() { 00023 00024 _desc.flags = NX_CF_COMPUTE_CONVEX; 00025 _desc.pointStrideBytes = sizeof(NxVec3); 00026 _desc.points = NULL; 00027 00028 _vertices = NULL; 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: PhysxConvexMeshDesc::Destructor 00033 // Access: Public 00034 // Description: 00035 //////////////////////////////////////////////////////////////////// 00036 INLINE PhysxConvexMeshDesc:: 00037 ~PhysxConvexMeshDesc() { 00038 00039 if (_vertices) { 00040 delete [] _vertices; 00041 } 00042 } 00043 00044 //////////////////////////////////////////////////////////////////// 00045 // Function: PhysxConvexMeshDesc::is_valid 00046 // Access: Published 00047 // Description: Returns true if the descriptor is valid. 00048 //////////////////////////////////////////////////////////////////// 00049 INLINE bool PhysxConvexMeshDesc:: 00050 is_valid() const { 00051 00052 return _desc.isValid(); 00053 } 00054