Panda3D
 All Classes Functions Variables Enumerations
bulletTriangleMesh.I
1 // Filename: bulletTriangleMesh.I
2 // Created by: enn0x (09Feb10)
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: BulletTriangleMesh::Destructor
18 // Access: Published
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE BulletTriangleMesh::
22 ~BulletTriangleMesh() {
23 
24  delete _mesh;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: BulletTriangleMesh::ptr
29 // Access: Public
30 // Description:
31 ////////////////////////////////////////////////////////////////////
32 btTriangleMesh *BulletTriangleMesh::
33 ptr() const {
34 
35  return _mesh;
36 }
37 
38 ////////////////////////////////////////////////////////////////////
39 // Function: ostream::Put To Operator
40 // Description:
41 ////////////////////////////////////////////////////////////////////
42 INLINE ostream &
43 operator << (ostream &out, const BulletTriangleMesh &obj) {
44 
45  obj.output(out);
46  return out;
47 }
48