21 INLINE PointLight::CData::
23 _specular_color(1.0f, 1.0f, 1.0f, 1.0f),
24 _attenuation(1.0f, 0.0f, 0.0f),
25 _point(0.0f, 0.0f, 0.0f)
34 INLINE PointLight::CData::
35 CData(
const PointLight::CData ©) :
36 _specular_color(copy._specular_color),
37 _attenuation(copy._attenuation),
51 return cdata->_specular_color;
63 cdata->_specular_color = color;
77 return cdata->_attenuation;
91 cdata->_attenuation = attenuation;
104 return cdata->_point;
115 cdata->_point = point;
This is the base class for all three-component vectors and points.
const LPoint3 & get_point() const
Returns the point in space at which the light is located.
void set_specular_color(const LColor &color)
Sets the color of specular highlights generated by the light.
void set_attenuation(const LVecBase3 &attenuation)
Sets the terms of the attenuation equation for the light.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
const LColor & get_specular_color() const FINAL
Returns the color of specular highlights generated by the light.
void set_point(const LPoint3 &point)
Sets the point in space at which the light is located.
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
const LVecBase3 & get_attenuation() const FINAL
Returns the terms of the attenuation equation for the light.
This is the base class for all three-component vectors and points.