Panda3D
 All Classes Functions Variables Enumerations
eggLoader.I
1 // Filename: eggLoader.I
2 // Created by: drose (13Mar05)
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: EggLoader::PrimitiveUnifier::operator <
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE EggLoader::PrimitiveUnifier::
22 PrimitiveUnifier(const GeomPrimitive *prim) :
23  _type(prim->get_type()),
24  _shade_model(prim->get_shade_model())
25 {
26 }
27 
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: EggLoader::PrimitiveUnifier::operator <
31 // Access: Public
32 // Description:
33 ////////////////////////////////////////////////////////////////////
34 INLINE bool EggLoader::PrimitiveUnifier::
35 operator < (const PrimitiveUnifier &other) const {
36  if (_type != other._type) {
37  return _type < other._type;
38  }
39  return _shade_model < other._shade_model;
40 }
This is an abstract base class for a family of classes that represent the fundamental geometry primit...
Definition: geomPrimitive.h:63