|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
C++ wrapper for tpbrt_light_source_t. More...
#include <tinypbrt/detail/cpp/light.hpp>
Public Member Functions | |
| constexpr transform_handle | transform () const noexcept |
| Returns transform value. | |
| constexpr float_t | scale () const noexcept |
| Returns scale value. | |
| constexpr opt_float | power_illuminance () const noexcept |
| Returns power_illuminance value. | |
| constexpr media_handle | interior_media_handle () const noexcept |
| Returns interior_media_handle value. | |
| constexpr media_handle | exterior_media_handle () const noexcept |
| Returns exterior_media_handle value. | |
| constexpr light_source_type | type () const noexcept |
| Returns type value. | |
| constexpr bool_t | is_distant () const noexcept |
| Returns true if type is distant. | |
| constexpr bool_t | is_goniometric () const noexcept |
| Returns true if type is goniometric. | |
| constexpr bool_t | is_infinite () const noexcept |
| Returns true if type is infinite. | |
| constexpr bool_t | is_point () const noexcept |
| Returns true if type is point. | |
| constexpr bool_t | is_projection () const noexcept |
| Returns true if type is projection. | |
| constexpr bool_t | is_spot () const noexcept |
| Returns true if type is spot. | |
| constexpr std::optional< light_source_distant_params > | as_distant () const noexcept |
| Returns light parameters as distant. | |
| constexpr std::optional< light_source_goniometric_params > | as_goniometric () const noexcept |
| Returns light parameters as goniometric. | |
| constexpr std::optional< light_source_infinite_params > | as_infinite () const noexcept |
| Returns light parameters as infinite. | |
| constexpr std::optional< light_source_point_params > | as_point () const noexcept |
| Returns light parameters as point. | |
| constexpr std::optional< light_source_projection_params > | as_projection () const noexcept |
| Returns light parameters as projection. | |
| constexpr std::optional< light_source_spot_params > | as_spot () const noexcept |
| Returns light parameters as spot. | |
| constexpr variant_type | to_variant () const noexcept |
| Conversion to variant. | |
| constexpr auto | reflect () const noexcept |
| Conversion to tuple. | |
C++ wrapper for tpbrt_light_source_t.
|
inlineconstexprnoexcept |
Returns transform value.
|
inlineconstexprnoexcept |
Returns scale value.
|
inlineconstexprnoexcept |
Returns power_illuminance value.
|
inlineconstexprnoexcept |
Returns interior_media_handle value.
|
inlineconstexprnoexcept |
Returns exterior_media_handle value.
|
inlineconstexprnoexcept |
Returns type value.
|
inlineconstexprnoexcept |
Returns true if type is distant.
|
inlineconstexprnoexcept |
Returns true if type is goniometric.
|
inlineconstexprnoexcept |
Returns true if type is infinite.
|
inlineconstexprnoexcept |
Returns true if type is point.
|
inlineconstexprnoexcept |
Returns true if type is projection.
|
inlineconstexprnoexcept |
Returns true if type is spot.
|
inlineconstexprnoexcept |
Returns light parameters as distant.
|
inlineconstexprnoexcept |
Returns light parameters as goniometric.
|
inlineconstexprnoexcept |
Returns light parameters as infinite.
|
inlineconstexprnoexcept |
Returns light parameters as point.
|
inlineconstexprnoexcept |
Returns light parameters as projection.
|
inlineconstexprnoexcept |
Returns light parameters as spot.
|
inlineconstexprnoexcept |
Conversion to variant.
|
inlineconstexprnoexcept |
Conversion to tuple.