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

C++ wrapper for tpbrt_texture_mapping_spherical_params_t, shared by the spherical and cylindrical mappings. More...

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

Public Member Functions

constexpr transform_handle transform () const noexcept
 Returns transform value.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Static Public Attributes

static constexpr texture_mapping TextureMapping = Mapping
 Mapping described by these parameters.
 

Detailed Description

template<texture_mapping Mapping>
struct tpbrt::texture_mapping_transform_params< Mapping >

C++ wrapper for tpbrt_texture_mapping_spherical_params_t, shared by the spherical and cylindrical mappings.

The mapping is a template parameter, so both mappings get their own type (see texture_noise_params).

Template Parameters
MappingTexture mapping (SPHERICAL or CYLINDRICAL).

Member Function Documentation

◆ transform()

template<texture_mapping Mapping>
constexpr transform_handle tpbrt::texture_mapping_transform_params< Mapping >::transform ( ) const
inlineconstexprnoexcept

Returns transform value.

◆ reflect()

template<texture_mapping Mapping>
constexpr auto tpbrt::texture_mapping_transform_params< Mapping >::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.

Field Documentation

◆ TextureMapping

template<texture_mapping Mapping>
constexpr texture_mapping tpbrt::texture_mapping_transform_params< Mapping >::TextureMapping = Mapping
staticconstexpr

Mapping described by these parameters.


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