Panda3D
Loading...
Searching...
No Matches
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 */
17INLINE PolylightEffect::
18PolylightEffect() {
19}
20
21/**
22 * Copy Constructor used by the const methods to modify data on a copy and
23 * return a new one
24 */
25INLINE PolylightEffect::
26PolylightEffect(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 */
37INLINE PN_stdfloat PolylightEffect::
38get_weight() const {
39 return _weight;
40}
41
42/**
43 * Returns CT_all or CT_proximal
44 */
45INLINE PolylightEffect::ContribType PolylightEffect::
46get_contrib() const {
47 return _contribution_type;
48}
49
50/**
51 * Return the value of the _effect_center
52 */
53INLINE LPoint3 PolylightEffect::
54get_effect_center() const {
55 return _effect_center;
56}
A PolylightEffect can be used on a node to define a LightGroup for that node.
ContribType get_contrib() const
Returns CT_all or CT_proximal.
PN_stdfloat get_weight() const
Get the weight value.
LPoint3 get_effect_center() const
Return the value of the _effect_center.