Panda3D
softEggGroupUserData.I
1 // Filename: softEggGroupUserData.I
2 // Created by: masad (25Sep03)
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: SoftEggGroupUserData::Constructor
18 // Access: Public
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE SoftEggGroupUserData::
22 SoftEggGroupUserData() {
23  _vertex_color = false;
24  _double_sided = false;
25 }
26 
27 
28 ////////////////////////////////////////////////////////////////////
29 // Function: SoftEggGroupUserData::Copy constructor
30 // Access: Public
31 // Description:
32 ////////////////////////////////////////////////////////////////////
33 INLINE SoftEggGroupUserData::
34 SoftEggGroupUserData(const SoftEggGroupUserData &copy) :
35  EggUserData(copy),
36  _vertex_color(copy._vertex_color),
37  _double_sided(copy._double_sided)
38 {
39 }
40 
41 
42 ////////////////////////////////////////////////////////////////////
43 // Function: SoftEggGroupUserData::Copy assignment operator
44 // Access: Public
45 // Description:
46 ////////////////////////////////////////////////////////////////////
47 INLINE void SoftEggGroupUserData::
48 operator = (const SoftEggGroupUserData &copy) {
49  EggUserData::operator = (copy);
50  _vertex_color = copy._vertex_color;
51  _double_sided = copy._double_sided;
52 }
This is a base class for a user-defined data type to extend egg structures in processing code...
Definition: eggUserData.h:34
This class contains extra user data which is piggybacked onto EggGroup objects for the purpose of the...