Panda3D

Loading...
Searching...
No Matches
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 */
17INLINE SphereLight::CData::
18CData() :
19 _radius(0.01f)
20{
21}
22
23/**
24 *
25 */
26INLINE SphereLight::CData::
27CData(const SphereLight::CData &copy) :
28 _radius(copy._radius)
29{
30}
31
32/**
33 * Returns the radius of the sphere.
34 */
35INLINE 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 */
44INLINE void SphereLight::
45 set_radius(PN_stdfloat radius) {
46 CDWriter cdata(_cycler);
47 cdata->_radius = radius;
48}
SphereLight::get_radius
get_radius
Returns the radius of the sphere.
Definition sphereLight.h:43
SphereLight::set_radius
set_radius
Sets the radius of the sphere.
Definition sphereLight.h:43