|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Typedefs | |
| using | tpbrt::texture_idx_t = tpbrt_texture_idx_t |
| Texture index type. | |
| using | tpbrt::texture_fbm_params = texture_noise_params< texture_class::FBM > |
| C++ wrapper for tpbrt_texture_fbm_params_t. | |
| using | tpbrt::texture_wrinkled_params = texture_noise_params< texture_class::WRINKLED > |
| C++ wrapper for tpbrt_texture_wrinkled_params_t. | |
| using | tpbrt::texture_windy_params = texture_noise_params< texture_class::WINDY > |
| C++ wrapper for tpbrt_texture_windy_params_t. | |
| using | tpbrt::texture_mapping_spherical_params = texture_mapping_transform_params< texture_mapping::SPHERICAL > |
| C++ wrapper for tpbrt_texture_mapping_spherical_params_t. | |
| using | tpbrt::texture_mapping_cylindrical_params = texture_mapping_transform_params< texture_mapping::CYLINDRICAL > |
| C++ wrapper for tpbrt_texture_mapping_cylindrical_params_t. | |
Enumerations | |
| enum class | tpbrt::texture_handle_value_type : uchar_t { tpbrt::texture_handle_value_type::TEXTURE_IDX = TPBRT_TEXTURE_HANDLE_VALUE_TYPE_TEXTURE_IDX , tpbrt::texture_handle_value_type::SPECTRUM = TPBRT_TEXTURE_HANDLE_VALUE_TYPE_SPECTRUM , tpbrt::texture_handle_value_type::MAX_NUM = TPBRT_TEXTURE_HANDLE_VALUE_TYPE_MAX_NUM } |
| Texture handle value types. More... | |
| enum class | tpbrt::texture_type : uchar_t { tpbrt::texture_type::FLOAT = TPBRT_TEXTURE_TYPE_FLOAT , tpbrt::texture_type::SPECTRUM = TPBRT_TEXTURE_TYPE_SPECTRUM , tpbrt::texture_type::MAX_NUM = TPBRT_TEXTURE_TYPE_MAX_NUM } |
| Textures types. More... | |
| enum class | tpbrt::texture_class : uchar_t { tpbrt::texture_class::BILERP = TPBRT_TEXTURE_CLASS_BILERP , tpbrt::texture_class::CHECKER_BOARD = TPBRT_TEXTURE_CLASS_CHECKER_BOARD , tpbrt::texture_class::CONSTANT = TPBRT_TEXTURE_CLASS_CONSTANT , tpbrt::texture_class::DIRECTION_MIX = TPBRT_TEXTURE_CLASS_DIRECTION_MIX , tpbrt::texture_class::DOTS = TPBRT_TEXTURE_CLASS_DOTS , tpbrt::texture_class::FBM = TPBRT_TEXTURE_CLASS_FBM , tpbrt::texture_class::IMAGE_MAP = TPBRT_TEXTURE_CLASS_IMAGE_MAP , tpbrt::texture_class::MARBLE = TPBRT_TEXTURE_CLASS_MARBLE , tpbrt::texture_class::MIX = TPBRT_TEXTURE_CLASS_MIX , tpbrt::texture_class::PTEX = TPBRT_TEXTURE_CLASS_PTEX , tpbrt::texture_class::SCALE = TPBRT_TEXTURE_CLASS_SCALE , tpbrt::texture_class::WINDY = TPBRT_TEXTURE_CLASS_WINDY , tpbrt::texture_class::WRINKLED = TPBRT_TEXTURE_CLASS_WRINKLED , tpbrt::texture_class::MAX_NUM = TPBRT_TEXTURE_CLASS_MAX_NUM } |
| Texture classes. More... | |
| enum class | tpbrt::texture_wrap : uchar_t { tpbrt::texture_wrap::REPEAT = TPBRT_TEXTURE_WRAP_REPEAT , tpbrt::texture_wrap::BLACK = TPBRT_TEXTURE_WRAP_BLACK , tpbrt::texture_wrap::CLAMP = TPBRT_TEXTURE_WRAP_CLAMP , tpbrt::texture_wrap::MAX_NUM = TPBRT_TEXTURE_WRAP_MAX_NUM } |
| Texture wrap types. More... | |
| enum class | tpbrt::texture_filter : uchar_t { tpbrt::texture_filter::BILINEAR = TPBRT_TEXTURE_FILTER_BILINEAR , tpbrt::texture_filter::EWA = TPBRT_TEXTURE_FILTER_EWA , tpbrt::texture_filter::TRILINEAR = TPBRT_TEXTURE_FILTER_TRILINEAR , tpbrt::texture_filter::POINT = TPBRT_TEXTURE_FILTER_POINT , tpbrt::texture_filter::MAX_NUM = TPBRT_TEXTURE_FILTER_MAX_NUM } |
| Texture filter types. More... | |
| enum class | tpbrt::texture_encoding : uchar_t { tpbrt::texture_encoding::SRGB = TPBRT_TEXTURE_ENCODING_SRGB , tpbrt::texture_encoding::LINEAR = TPBRT_TEXTURE_ENCODING_LINEAR , tpbrt::texture_encoding::GAMMA = TPBRT_TEXTURE_ENCODING_GAMMA , tpbrt::texture_encoding::MAX_NUM = TPBRT_TEXTURE_ENCODING_MAX_NUM } |
| Texture encoding types. More... | |
| enum class | tpbrt::texture_mapping : uchar_t { tpbrt::texture_mapping::UV = TPBRT_TEXTURE_MAPPING_UV , tpbrt::texture_mapping::SPHERICAL = TPBRT_TEXTURE_MAPPING_SPHERICAL , tpbrt::texture_mapping::CYLINDRICAL = TPBRT_TEXTURE_MAPPING_CYLINDRICAL , tpbrt::texture_mapping::PLANAR = TPBRT_TEXTURE_MAPPING_PLANAR , tpbrt::texture_mapping::MAX_NUM = TPBRT_TEXTURE_MAPPING_MAX_NUM } |
| Texture mapping types. More... | |
Functions | |
| constexpr std::string_view | tpbrt::to_string (const texture_handle_value_type type) noexcept |
| Converts texture_handle_value_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const texture_type type) noexcept |
| Converts texture_type enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const texture_class class_val) noexcept |
| Converts texture_class enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const texture_wrap wrap) noexcept |
| Converts texture_wrap enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const texture_filter filter) noexcept |
| Converts texture_filter enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const texture_encoding encoding) noexcept |
| Converts texture_encoding enum value to string. | |
| constexpr std::string_view | tpbrt::to_string (const texture_mapping mapping) noexcept |
| Converts texture_mapping enum value to string. | |
| result< texture > | tpbrt::get_texture (const textures_list list, const texture_handle handle) noexcept |
| Returns texture to which handle is provided. | |
| result< texture > | tpbrt::get_texture (const textures_list list, const std::string_view name) noexcept |
| Returns texture with given name. | |
Variables | |
| constexpr auto | tpbrt::TextureInvalidIdx = TPBRT_TEXTURE_IDX_INVALID |
| Invalid texture index. | |
| using tpbrt::texture_idx_t = typedef tpbrt_texture_idx_t |
Texture index type.
| using tpbrt::texture_fbm_params = typedef texture_noise_params<texture_class::FBM> |
C++ wrapper for tpbrt_texture_fbm_params_t.
| using tpbrt::texture_wrinkled_params = typedef texture_noise_params<texture_class::WRINKLED> |
C++ wrapper for tpbrt_texture_wrinkled_params_t.
| using tpbrt::texture_windy_params = typedef texture_noise_params<texture_class::WINDY> |
C++ wrapper for tpbrt_texture_windy_params_t.
| using tpbrt::texture_mapping_spherical_params = typedef texture_mapping_transform_params<texture_mapping::SPHERICAL> |
C++ wrapper for tpbrt_texture_mapping_spherical_params_t.
| using tpbrt::texture_mapping_cylindrical_params = typedef texture_mapping_transform_params<texture_mapping::CYLINDRICAL> |
C++ wrapper for tpbrt_texture_mapping_cylindrical_params_t.
|
strong |
|
strong |
|
strong |
Texture classes.
|
strong |
|
strong |
Texture filter types.
|
strong |
|
strong |
|
constexprnoexcept |
Converts texture_handle_value_type enum value to string.
| type | Texture handle value type. |
|
constexprnoexcept |
Converts texture_type enum value to string.
| type | Texture type. |
|
constexprnoexcept |
Converts texture_class enum value to string.
| class_val | Texture class. |
|
constexprnoexcept |
Converts texture_wrap enum value to string.
| wrap | Texture wrap. |
|
constexprnoexcept |
Converts texture_filter enum value to string.
| filter | Texture filter. |
|
constexprnoexcept |
Converts texture_encoding enum value to string.
| encoding | Texture encoding. |
|
constexprnoexcept |
Converts texture_mapping enum value to string.
| mapping | Texture mapping. |
|
inlinenoexcept |
Returns texture to which handle is provided.
| list | List of textures in which texture given by handle should be. |
| handle | Handle to texture. |
|
inlinenoexcept |
Returns texture with given name.
| list | List of textures in which searched texture should be. |
| name | Name of the searched texture. |
|
inlineconstexpr |
Invalid texture index.