Panda3D
 All Classes Functions Variables Enumerations
rigidBodyCombiner.I
1 // Filename: rigidBodyCombiner.I
2 // Created by: drose (22Feb07)
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: RigidBodyCombiner::VDUnifier::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE RigidBodyCombiner::VDUnifier::
22 VDUnifier(const VertexTransform *transform, const GeomVertexData *orig) :
23  _transform(transform),
24  _orig(orig)
25 {
26 }
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: RigidBodyCombiner::VDUnifier::operator <
30 // Access: Public
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE bool RigidBodyCombiner::VDUnifier::
34 operator < (const RigidBodyCombiner::VDUnifier &other) const {
35  if (_transform != other._transform) {
36  return _transform < other._transform;
37  }
38  return _orig < other._orig;
39 }
This is an abstract base class that holds a pointer to some transform, computed in some arbitrary way...
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...