00001 // Filename: bulletTriangleMesh.I 00002 // Created by: enn0x (09Feb10) 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: BulletTriangleMesh::Destructor 00018 // Access: Published 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE BulletTriangleMesh:: 00022 ~BulletTriangleMesh() { 00023 00024 delete _mesh; 00025 } 00026 00027 //////////////////////////////////////////////////////////////////// 00028 // Function: BulletTriangleMesh::ptr 00029 // Access: Public 00030 // Description: 00031 //////////////////////////////////////////////////////////////////// 00032 btTriangleMesh *BulletTriangleMesh:: 00033 ptr() const { 00034 00035 return _mesh; 00036 } 00037 00038 //////////////////////////////////////////////////////////////////// 00039 // Function: ostream::Put To Operator 00040 // Description: 00041 //////////////////////////////////////////////////////////////////// 00042 INLINE ostream & 00043 operator << (ostream &out, const BulletTriangleMesh &obj) { 00044 00045 obj.output(out); 00046 return out; 00047 } 00048