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

C++ wrapper for tpbrt_material_mix_params_t. More...

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

Public Types

using materials_type = array< tpbrt_material_handle_t[2], material_handle >
 Type used to read materials parameter.
 

Public Member Functions

constexpr materials_type materials () const noexcept
 Returns materials value.
 
constexpr texture_handle amount () const noexcept
 Returns amount value.
 
constexpr auto reflect () const noexcept
 Conversion to tuple.
 

Detailed Description

C++ wrapper for tpbrt_material_mix_params_t.

Member Typedef Documentation

◆ materials_type

Type used to read materials parameter.

Member Function Documentation

◆ materials()

constexpr materials_type tpbrt::material_mix_params::materials ( ) const
inlineconstexprnoexcept

Returns materials value.

◆ amount()

constexpr texture_handle tpbrt::material_mix_params::amount ( ) const
inlineconstexprnoexcept

Returns amount value.

◆ reflect()

constexpr auto tpbrt::material_mix_params::reflect ( ) const
inlineconstexprnoexcept

Conversion to tuple.


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