Panda3D
sphereLight.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 sphereLight.I
10  * @author rdb
11  * @date 2016-04-15
12  */
13 
14 /**
15  *
16  */
17 INLINE SphereLight::CData::
18 CData() :
19  _radius(0.01f)
20 {
21 }
22 
23 /**
24  *
25  */
26 INLINE SphereLight::CData::
27 CData(const SphereLight::CData &copy) :
28  _radius(copy._radius)
29 {
30 }
31 
32 /**
33  * Returns the radius of the sphere.
34  */
35 INLINE PN_stdfloat SphereLight::
36 get_radius() const {
37  CDReader cdata(_cycler);
38  return cdata->_radius;
39 }
40 
41 /**
42  * Sets the radius of the sphere.
43  */
44 INLINE void SphereLight::
45 set_radius(PN_stdfloat radius) {
46  CDWriter cdata(_cycler);
47  cdata->_radius = radius;
48 }
set_radius
Sets the radius of the sphere.
Definition: sphereLight.h:43