tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
Loading...
Searching...
No Matches
tpbrt::area_light Struct Reference

C++ wrapper for tpbrt_area_light_t. More...

#include <tinypbrt/detail/cpp/light.hpp>

Public Member Functions

constexpr area_light_idx_t idx () const noexcept
 Returns idx value.
 
constexpr float_t scale () const noexcept
 Returns scale value.
 
constexpr opt_float power () const noexcept
 Returns power value.
 
constexpr area_light_type type () const noexcept
 Returns type value.
 
constexpr bool_t is_diffuse () const noexcept
 Returns true if type is diffuse.
 
constexpr std::optional< area_light_diffuse_params > as_diffuse () const noexcept
 Returns diffuse parameters (std::nullopt if the type is different).
 
constexpr variant_type to_variant () const noexcept
 Conversion to variant.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

Member Function Documentation

◆ idx()

constexpr area_light_idx_t tpbrt::area_light::idx ( ) const
inlineconstexprnoexcept

Returns idx value.

◆ scale()

constexpr float_t tpbrt::area_light::scale ( ) const
inlineconstexprnoexcept

Returns scale value.

◆ power()

constexpr opt_float tpbrt::area_light::power ( ) const
inlineconstexprnoexcept

Returns power value.

◆ type()

constexpr area_light_type tpbrt::area_light::type ( ) const
inlineconstexprnoexcept

Returns type value.

◆ is_diffuse()

constexpr bool_t tpbrt::area_light::is_diffuse ( ) const
inlineconstexprnoexcept

Returns true if type is diffuse.

◆ as_diffuse()

constexpr std::optional< area_light_diffuse_params > tpbrt::area_light::as_diffuse ( ) const
inlineconstexprnoexcept

Returns diffuse parameters (std::nullopt if the type is different).

◆ to_variant()

constexpr variant_type tpbrt::area_light::to_variant ( ) const
inlineconstexprnoexcept

Conversion to variant.

◆ reflect()

constexpr auto tpbrt::area_light::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


The documentation for this struct was generated from the following file: