|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
C++ wrapper for tpbrt_texture_t. More...
#include <tinypbrt/detail/cpp/texture.hpp>
Public Types | |
| using | mapping_variant_type = detail::optional_variant< texture_mapping_uv_params, texture_mapping_spherical_params, texture_mapping_cylindrical_params, texture_mapping_planar_params > |
| Type used for better reading mapping tagged union of parameters. | |
Public Member Functions | |
| constexpr texture_idx_t | idx () const noexcept |
| Returns idx value. | |
| constexpr string | name () const noexcept |
| Returns name value. | |
| constexpr texture_type | type () const noexcept |
| Returns type value. | |
| constexpr texture_class | tex_class () const noexcept |
| Returns tex_class value. | |
| constexpr bool_t | is_bilerp () const noexcept |
| Returns true if type is bilerp. | |
| constexpr bool_t | is_checkerboard () const noexcept |
| Returns true if type is checkerboard. | |
| constexpr bool_t | is_constant () const noexcept |
| Returns true if type is constant. | |
| constexpr bool_t | is_direction_mix () const noexcept |
| Returns true if type is direction_mix. | |
| constexpr bool_t | is_dots () const noexcept |
| Returns true if type is dots. | |
| constexpr bool_t | is_fbm () const noexcept |
| Returns true if type is fbm. | |
| constexpr bool_t | is_wrinkled () const noexcept |
| Returns true if type is wrinkled. | |
| constexpr bool_t | is_windy () const noexcept |
| Returns true if type is windy. | |
| constexpr bool_t | is_image_map () const noexcept |
| Returns true if type is image_map. | |
| constexpr bool_t | is_marble () const noexcept |
| Returns true if type is marble. | |
| constexpr bool_t | is_mix () const noexcept |
| Returns true if type is mix. | |
| constexpr bool_t | is_ptex () const noexcept |
| Returns true if type is ptex. | |
| constexpr bool_t | is_scale () const noexcept |
| Returns true if type is scale. | |
| constexpr std::optional< texture_bilerp_params > | as_bilerp () const noexcept |
| Returns texture parameters as bilerp. | |
| constexpr std::optional< texture_checkerboard_params > | as_checkerboard () const noexcept |
| Returns texture parameters as checkerboard. | |
| constexpr std::optional< texture_constant_params > | as_constant () const noexcept |
| Returns texture parameters as constant. | |
| constexpr std::optional< texture_direction_mix_params > | as_direction_mix () const noexcept |
| Returns texture parameters as direction_mix. | |
| constexpr std::optional< texture_dots_params > | as_dots () const noexcept |
| Returns texture parameters as dots. | |
| constexpr std::optional< texture_fbm_params > | as_fbm () const noexcept |
| Returns texture parameters as fbm. | |
| constexpr std::optional< texture_wrinkled_params > | as_wrinkled () const noexcept |
| Returns texture parameters as wrinkled. | |
| constexpr std::optional< texture_windy_params > | as_windy () const noexcept |
| Returns texture parameters as windy. | |
| constexpr std::optional< texture_image_map_params > | as_image_map () const noexcept |
| Returns texture parameters as image_map. | |
| constexpr std::optional< texture_marble_params > | as_marble () const noexcept |
| Returns texture parameters as marble. | |
| constexpr std::optional< texture_mix_params > | as_mix () const noexcept |
| Returns texture parameters as mix. | |
| constexpr std::optional< texture_ptex_params > | as_ptex () const noexcept |
| Returns texture parameters as ptex. | |
| constexpr std::optional< texture_scale_params > | as_scale () const noexcept |
| Returns texture parameters as scale. | |
| constexpr variant_type | to_variant () const noexcept |
| Conversion to variant. | |
| constexpr texture_mapping | mapping () const noexcept |
| Returns mapping value. | |
| constexpr bool_t | is_mapping_uv () const noexcept |
| Returns true if type is uv. | |
| constexpr bool_t | is_mapping_spherical () const noexcept |
| Returns true if type is spherical. | |
| constexpr bool_t | is_mapping_cylindrical () const noexcept |
| Returns true if type is cylindrical. | |
| constexpr bool_t | is_mapping_planar () const noexcept |
| Returns true if type is planar. | |
| constexpr std::optional< texture_mapping_uv_params > | mapping_as_uv () const noexcept |
| Returns texture mapping parameters as uv. | |
| constexpr std::optional< texture_mapping_spherical_params > | mapping_as_spherical () const noexcept |
| Returns texture mapping parameters as spherical. | |
| constexpr std::optional< texture_mapping_cylindrical_params > | mapping_as_cylindrical () const noexcept |
| Returns texture mapping parameters as cylindrical. | |
| constexpr std::optional< texture_mapping_planar_params > | mapping_as_planar () const noexcept |
| Returns texture mapping parameters as planar. | |
| constexpr mapping_variant_type | mapping_to_variant () const noexcept |
| Conversion to variant. | |
| template<class Visitor > | |
| constexpr auto | visit_mapping (Visitor &&visitor) const |
| Visits mapping parameters. | |
| constexpr auto | reflect () const noexcept |
| Conversion to tuple. | |
C++ wrapper for tpbrt_texture_t.
| using tpbrt::texture::mapping_variant_type = detail::optional_variant<texture_mapping_uv_params, texture_mapping_spherical_params, texture_mapping_cylindrical_params, texture_mapping_planar_params> |
Type used for better reading mapping tagged union of parameters.
|
inlineconstexprnoexcept |
Returns idx value.
|
inlineconstexprnoexcept |
Returns name value.
|
inlineconstexprnoexcept |
Returns type value.
|
inlineconstexprnoexcept |
Returns tex_class value.
|
inlineconstexprnoexcept |
Returns true if type is bilerp.
|
inlineconstexprnoexcept |
Returns true if type is checkerboard.
|
inlineconstexprnoexcept |
Returns true if type is constant.
|
inlineconstexprnoexcept |
Returns true if type is direction_mix.
|
inlineconstexprnoexcept |
Returns true if type is dots.
|
inlineconstexprnoexcept |
Returns true if type is fbm.
|
inlineconstexprnoexcept |
Returns true if type is wrinkled.
|
inlineconstexprnoexcept |
Returns true if type is windy.
|
inlineconstexprnoexcept |
Returns true if type is image_map.
|
inlineconstexprnoexcept |
Returns true if type is marble.
|
inlineconstexprnoexcept |
Returns true if type is mix.
|
inlineconstexprnoexcept |
Returns true if type is ptex.
|
inlineconstexprnoexcept |
Returns true if type is scale.
|
inlineconstexprnoexcept |
Returns texture parameters as bilerp.
|
inlineconstexprnoexcept |
Returns texture parameters as checkerboard.
|
inlineconstexprnoexcept |
Returns texture parameters as constant.
|
inlineconstexprnoexcept |
Returns texture parameters as direction_mix.
|
inlineconstexprnoexcept |
Returns texture parameters as dots.
|
inlineconstexprnoexcept |
Returns texture parameters as fbm.
|
inlineconstexprnoexcept |
Returns texture parameters as wrinkled.
|
inlineconstexprnoexcept |
Returns texture parameters as windy.
|
inlineconstexprnoexcept |
Returns texture parameters as image_map.
|
inlineconstexprnoexcept |
Returns texture parameters as marble.
|
inlineconstexprnoexcept |
Returns texture parameters as mix.
|
inlineconstexprnoexcept |
Returns texture parameters as ptex.
|
inlineconstexprnoexcept |
Returns texture parameters as scale.
|
inlineconstexprnoexcept |
Conversion to variant.
|
inlineconstexprnoexcept |
Returns mapping value.
|
inlineconstexprnoexcept |
Returns true if type is uv.
|
inlineconstexprnoexcept |
Returns true if type is spherical.
|
inlineconstexprnoexcept |
Returns true if type is cylindrical.
|
inlineconstexprnoexcept |
Returns true if type is planar.
|
inlineconstexprnoexcept |
Returns texture mapping parameters as uv.
|
inlineconstexprnoexcept |
Returns texture mapping parameters as spherical.
|
inlineconstexprnoexcept |
Returns texture mapping parameters as cylindrical.
|
inlineconstexprnoexcept |
Returns texture mapping parameters as planar.
|
inlineconstexprnoexcept |
Conversion to variant.
|
inlineconstexpr |
Visits mapping parameters.
|
inlineconstexprnoexcept |
Conversion to tuple.