Panda3D
 All Classes Functions Variables Enumerations
polylightEffect.I
1 // Filename: polylightEffect.I
2 // Created by: sshodhan (02Jun04)
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: PolylightEffect::Constructor
18 // Access: Protected
19 // Description: Use PolylightEffect::make() to construct a new
20 // PolylightEffect object.
21 ////////////////////////////////////////////////////////////////////
22 INLINE PolylightEffect::
23 PolylightEffect() {
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: PolylightEffect::Constructor
28 // Access: Protected
29 // Description: Copy Constructor used by the const methods
30 // to modify data on a copy and return a new one
31 ////////////////////////////////////////////////////////////////////
32 INLINE PolylightEffect::
33 PolylightEffect(const PolylightEffect &copy) :
34  _contribution_type(copy._contribution_type),
35  _weight(copy._weight),
36  _lightgroup(copy._lightgroup),
37  _effect_center(copy._effect_center)
38 {
39 }
40 
41 ////////////////////////////////////////////////////////////////////
42 // Function: PolylightEffect::get_weight
43 // Access: Published
44 // Description: Get the weight value
45 ////////////////////////////////////////////////////////////////////
46 INLINE PN_stdfloat PolylightEffect::
47 get_weight() const {
48  return _weight;
49 }
50 
51 ////////////////////////////////////////////////////////////////////
52 // Function: PolylightEffect::get_contrib
53 // Access: Published
54 // Description: Returns CT_all or CT_proximal
55 ////////////////////////////////////////////////////////////////////
56 INLINE PolylightEffect::ContribType PolylightEffect::
57 get_contrib() const {
58  return _contribution_type;
59 }
60 
61 ////////////////////////////////////////////////////////////////////
62 // Function: PolylightEffect::get_effect_center
63 // Access: Published
64 // Description: Return the value of the _effect_center
65 ////////////////////////////////////////////////////////////////////
68  return _effect_center;
69 }
LPoint3 get_effect_center() const
Return the value of the _effect_center.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
A PolylightEffect can be used on a node to define a LightGroup for that node.
PN_stdfloat get_weight() const
Get the weight value.
ContribType get_contrib() const
Returns CT_all or CT_proximal.