sandbox
Loading...
Searching...
No Matches
point_light.hpp
1// SPDX-License-Identifier: MIT
2#ifndef LIBSBX_SCENES_COMPONENTS_POINT_LIGHT_HPP_
3#define LIBSBX_SCENES_COMPONENTS_POINT_LIGHT_HPP_
4
6
7namespace sbx::scenes {
8
10
11public:
12
13 point_light(math::color color, std::float_t radius)
14 : _color{color},
15 _radius{radius} { }
16
17 auto color() const noexcept -> const math::color& {
18 return _color;
19 }
20
21 auto radius() const noexcept -> std::float_t {
22 return _radius;
23 }
24
25private:
26
27 math::color _color;
28 std::float_t _radius;
29
30}; // class point_light
31
32} // namespace sbx::scenes
33
34#endif // LIBSBX_SCENES_COMPONENTS_POINT_LIGHT_HPP_
RGBA color value type.
Definition: color.hpp:48
Definition: point_light.hpp:9
RGBA color representation and utilities.