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

Data Structures

struct  tpbrt::filter_gaussian_params
 C++ wrapper for tpbrt_filter_gaussian_params_t. More...
 
struct  tpbrt::filter_mitchell_params
 C++ wrapper for tpbrt_filter_mitchell_params_t. More...
 
struct  tpbrt::filter_sinc_params
 C++ wrapper for tpbrt_filter_sinc_params_t. More...
 
struct  tpbrt::filter
 C++ wrapper for tpbrt_filter_t. More...
 

Enumerations

enum class  tpbrt::filter_type : uchar_t {
  tpbrt::filter_type::BOX = TPBRT_FILTER_TYPE_BOX , tpbrt::filter_type::GAUSSIAN = TPBRT_FILTER_TYPE_GAUSSIAN , tpbrt::filter_type::MITCHELL = TPBRT_FILTER_TYPE_MITCHELL , tpbrt::filter_type::SINC = TPBRT_FILTER_TYPE_SINC ,
  tpbrt::filter_type::TRIANGLE = TPBRT_FILTER_TYPE_TRIANGLE , tpbrt::filter_type::MAX_NUM = TPBRT_FILTER_TYPE_MAX_NUM
}
 Filter type. More...
 

Functions

constexpr std::string_view tpbrt::to_string (const filter_type type) noexcept
 Converts filter_type enum value to string.
 

Detailed Description

Enumeration Type Documentation

◆ filter_type

enum class tpbrt::filter_type : uchar_t
strong

Filter type.

Enumerator
BOX 

Box filter.

GAUSSIAN 

Gaussian filter.

MITCHELL 

Mitchell filter.

SINC 

Sinc filter.

TRIANGLE 

Triangle filter.

MAX_NUM 

Count of available filter types.

Function Documentation

◆ to_string()

constexpr std::string_view tpbrt::to_string ( const filter_type  type)
constexprnoexcept

Converts filter_type enum value to string.

Parameters
typeFilter type.
Returns
String value of filter type.