21 INLINE DirectionalLight::CData::
23 _specular_color(1.0f, 1.0f, 1.0f, 1.0f),
24 _point(0.0f, 0.0f, 0.0f),
34 INLINE DirectionalLight::CData::
35 CData(
const DirectionalLight::CData ©) :
36 _specular_color(copy._specular_color),
38 _direction(copy._direction)
51 return cdata->_specular_color;
63 cdata->_specular_color = color;
92 cdata->_point = point;
106 return cdata->_direction;
117 cdata->_direction = direction;
void set_point(const LPoint3 &point)
Sets the point in space at which the light is located.
const LPoint3 & get_point() const
Returns the point in space at which the light is located.
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
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_specular_color(const LColor &color)
Sets the color of specular highlights generated by the light.
void set_direction(const LVector3 &direction)
Sets the direction in which the light is aimed.
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
This is the base class for all three-component vectors and points.
const LVector3 & get_direction() const
Returns the direction in which the light is aimed.