|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Typedefs | |
| using | tpbrt::area_light_idx_t = tpbrt_area_light_idx_t |
| Area light index type. | |
| using | tpbrt::lights_sources_list = array< tpbrt_lights_sources_list_t, light_source, &tpbrt_lights_sources_list_t::lights > |
| C++ wrapper for tpbrt_lights_sources_list_t. | |
Enumerations | |
| enum class | tpbrt::light_source_type : uchar_t { tpbrt::light_source_type::DISTANT = TPBRT_LIGHT_SOURCE_TYPE_DISTANT , tpbrt::light_source_type::GONIOMETRIC = TPBRT_LIGHT_SOURCE_TYPE_GONIOMETRIC , tpbrt::light_source_type::INFINITE = TPBRT_LIGHT_SOURCE_TYPE_INFINITE , tpbrt::light_source_type::POINT = TPBRT_LIGHT_SOURCE_TYPE_POINT , tpbrt::light_source_type::PROJECTION = TPBRT_LIGHT_SOURCE_TYPE_PROJECTION , tpbrt::light_source_type::SPOT = TPBRT_LIGHT_SOURCE_TYPE_SPOT , tpbrt::light_source_type::MAX_NUM = TPBRT_LIGHT_SOURCE_TYPE_MAX_NUM } |
| Light source type. More... | |
| enum class | tpbrt::area_light_type : uchar_t { tpbrt::area_light_type::DIFFUSE = TPBRT_AREA_LIGHT_TYPE_DIFFUSE , tpbrt::area_light_type::MAX_NUM = TPBRT_AREA_LIGHT_TYPE_MAX_NUM } |
| Area light type. More... | |
Functions | |
| constexpr std::string_view | tpbrt::to_string (const light_source_type type) noexcept |
| Converts light_source_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const area_light_type type) noexcept |
| Converts area_light_type enum value to string. | |
| result< area_light > | tpbrt::get_area_light (const area_lights_list list, const area_light_handle handle) noexcept |
| Returns area light to which handle is provided. | |
Variables | |
| constexpr auto | tpbrt::AreaLightInvalidIdx = TPBRT_AREA_LIGHT_IDX_INVALID |
| Invalid area light index. | |
| using tpbrt::area_light_idx_t = typedef tpbrt_area_light_idx_t |
Area light index type.
| using tpbrt::lights_sources_list = typedef array<tpbrt_lights_sources_list_t, light_source, &tpbrt_lights_sources_list_t::lights> |
C++ wrapper for tpbrt_lights_sources_list_t.
|
strong |
|
strong |
|
constexprnoexcept |
Converts light_source_type enum value to string.
| type | Light source type. |
|
constexprnoexcept |
Converts area_light_type enum value to string.
| type | Area light type. |
|
inlinenoexcept |
Returns area light to which handle is provided.
| list | List of area lights in which area light given by handle should be. |
| handle | Handle to area light. |
|
inlineconstexpr |
Invalid area light index.