|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Typedefs | |
| using | tpbrt::material_idx_t = tpbrt_material_idx_t |
| Material index type. | |
Enumerations | |
| enum class | tpbrt::material_type : uchar_t { tpbrt::material_type::COATED_DIFFUSE = TPBRT_MATERIAL_TYPE_COATED_DIFFUSE , tpbrt::material_type::COATED_CONDUCTOR = TPBRT_MATERIAL_TYPE_COATED_CONDUCTOR , tpbrt::material_type::CONDUCTOR = TPBRT_MATERIAL_TYPE_CONDUCTOR , tpbrt::material_type::DIELECTRIC = TPBRT_MATERIAL_TYPE_DIELECTRIC , tpbrt::material_type::DIFFUSE = TPBRT_MATERIAL_TYPE_DIFFUSE , tpbrt::material_type::DIFFUSE_TRANSMISSION = TPBRT_MATERIAL_TYPE_DIFFUSE_TRANSMISSION , tpbrt::material_type::HAIR = TPBRT_MATERIAL_TYPE_HAIR , tpbrt::material_type::INTERFACE = TPBRT_MATERIAL_TYPE_INTERFACE , tpbrt::material_type::MEASURED = TPBRT_MATERIAL_TYPE_MEASURED , tpbrt::material_type::MIX = TPBRT_MATERIAL_TYPE_MIX , tpbrt::material_type::SUBSURFACE = TPBRT_MATERIAL_TYPE_SUBSURFACE , tpbrt::material_type::THIN_DIELECTRIC = TPBRT_MATERIAL_TYPE_THIN_DIELECTRIC , tpbrt::material_type::MAX_NUM = TPBRT_MATERIAL_TYPE_MAX_NUM } |
| Material types. More... | |
| enum class | tpbrt::material_bump_map_type : uchar_t { tpbrt::material_bump_map_type::NONE = TPBRT_MATERIAL_BUMP_MAP_TYPE_NONE , tpbrt::material_bump_map_type::DISPLACEMENT = TPBRT_MATERIAL_BUMP_MAP_TYPE_DISPLACEMENT , tpbrt::material_bump_map_type::NORMAL_MAP = TPBRT_MATERIAL_BUMP_MAP_TYPE_NORMAL_MAP , tpbrt::material_bump_map_type::MAX_NUM = TPBRT_MATERIAL_BUMP_MAP_TYPE_MAX_NUM } |
| Material bump map types. More... | |
| enum class | tpbrt::material_conductor_value_type : uchar_t { tpbrt::material_conductor_value_type::ETA_K = TPBRT_MATERIAL_CONDUCTOR_VALUE_TYPE_ETA_K , tpbrt::material_conductor_value_type::REFLECTANCE = TPBRT_MATERIAL_CONDUCTOR_VALUE_TYPE_REFLECTANCE , tpbrt::material_conductor_value_type::MAX_NUM = TPBRT_MATERIAL_CONDUCTOR_VALUE_TYPE_MAX_NUM } |
| Conductor material value type. More... | |
| enum class | tpbrt::material_subsurface_scattering_value : uchar_t { tpbrt::material_subsurface_scattering_value::SIGMA = TPBRT_MATERIAL_SUBSURFACE_SCATTERING_VALUE_SIGMA , tpbrt::material_subsurface_scattering_value::BUILTIN = TPBRT_MATERIAL_SUBSURFACE_SCATTERING_VALUE_BUILTIN , tpbrt::material_subsurface_scattering_value::MAX_NUM = TPBRT_MATERIAL_SUBSURFACE_SCATTERING_VALUE_MAX_NUM } |
| Subsurface material scattering value type. More... | |
Functions | |
| constexpr std::string_view | tpbrt::to_string (const material_type type) noexcept |
| Converts material_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const material_bump_map_type type) noexcept |
| Converts material_bump_map_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const material_conductor_value_type type) noexcept |
| Converts material_conductor_value_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const material_subsurface_scattering_value scattering_value) noexcept |
| Converts material_subsurface_scattering_value enum value to string. | |
| result< material > | tpbrt::get_material (const materials_list list, const material_handle handle) noexcept |
| Returns material to which handle is provided. | |
| result< material > | tpbrt::get_material (const materials_list list, const std::string_view name) noexcept |
| Returns material with given name. | |
Variables | |
| constexpr auto | tpbrt::MaterialInvalidIdx = TPBRT_MATERIAL_IDX_INVALID |
| Invalid material index. | |
| using tpbrt::material_idx_t = typedef tpbrt_material_idx_t |
Material index type.
|
strong |
Material types.
|
strong |
|
strong |
|
strong |
|
constexprnoexcept |
Converts material_type enum value to string.
| type | Material type. |
|
constexprnoexcept |
Converts material_bump_map_type enum value to string.
| type | Material bump map type. |
|
constexprnoexcept |
Converts material_conductor_value_type enum value to string.
| type | Material conductor value type. |
|
constexprnoexcept |
Converts material_subsurface_scattering_value enum value to string.
| scattering_value | Material scattering value. |
|
inlinenoexcept |
Returns material to which handle is provided.
| list | List of materials in which material given by handle should be. |
| handle | Handle to material. |
|
inlinenoexcept |
Returns material with given name.
| list | List of materials in which searched material should be. |
| name | Name of the searched material. |
|
inlineconstexpr |
Invalid material index.