Panda3D
polylightEffect.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file polylightEffect.I
10  * @author sshodhan
11  * @date 2004-06-02
12  */
13 
14 /**
15  * Use PolylightEffect::make() to construct a new PolylightEffect object.
16  */
17 INLINE PolylightEffect::
18 PolylightEffect() {
19 }
20 
21 /**
22  * Copy Constructor used by the const methods to modify data on a copy and
23  * return a new one
24  */
25 INLINE PolylightEffect::
26 PolylightEffect(const PolylightEffect &copy) :
27  _contribution_type(copy._contribution_type),
28  _weight(copy._weight),
29  _lightgroup(copy._lightgroup),
30  _effect_center(copy._effect_center)
31 {
32 }
33 
34 /**
35  * Get the weight value
36  */
37 INLINE PN_stdfloat PolylightEffect::
38 get_weight() const {
39  return _weight;
40 }
41 
42 /**
43  * Returns CT_all or CT_proximal
44  */
45 INLINE PolylightEffect::ContribType PolylightEffect::
46 get_contrib() const {
47  return _contribution_type;
48 }
49 
50 /**
51  * Return the value of the _effect_center
52  */
53 INLINE LPoint3 PolylightEffect::
55  return _effect_center;
56 }
ContribType get_contrib() const
Returns CT_all or CT_proximal.
LPoint3 get_effect_center() const
Return the value of the _effect_center.
A PolylightEffect can be used on a node to define a LightGroup for that node.
PN_stdfloat get_weight() const
Get the weight value.