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

Go to the source code of this file.

Data Structures

struct  tpbrt::texture_handle
 C++ wrapper for tpbrt_texture_handle_t. More...
 
struct  tpbrt::texture_bilerp_params
 C++ wrapper for tpbrt_texture_bilerp_params_t. More...
 
struct  tpbrt::texture_checkerboard_params
 C++ wrapper for tpbrt_texture_checkerboard_params_t. More...
 
struct  tpbrt::texture_constant_params
 C++ wrapper for tpbrt_texture_constant_params_t. More...
 
struct  tpbrt::texture_direction_mix_params
 C++ wrapper for tpbrt_texture_direction_mix_params_t. More...
 
struct  tpbrt::texture_dots_params
 C++ wrapper for tpbrt_texture_dots_params_t. More...
 
struct  tpbrt::texture_noise_params< Class >
 C++ wrapper for tpbrt_texture_fbm_params_t, shared by the fbm, wrinkled and windy textures. More...
 
struct  tpbrt::texture_image_map_params
 C++ wrapper for tpbrt_texture_image_map_params_t. More...
 
struct  tpbrt::texture_marble_params
 C++ wrapper for tpbrt_texture_marble_params_t. More...
 
struct  tpbrt::texture_mix_params
 C++ wrapper for tpbrt_texture_mix_params_t. More...
 
struct  tpbrt::texture_ptex_params
 C++ wrapper for tpbrt_texture_ptex_params_t. More...
 
struct  tpbrt::texture_scale_params
 C++ wrapper for tpbrt_texture_scale_params_t. More...
 
struct  tpbrt::texture_mapping_uv_params
 C++ wrapper for tpbrt_texture_mapping_uv_params_t. More...
 
struct  tpbrt::texture_mapping_transform_params< Mapping >
 C++ wrapper for tpbrt_texture_mapping_spherical_params_t, shared by the spherical and cylindrical mappings. More...
 
struct  tpbrt::texture_mapping_planar_params
 C++ wrapper for tpbrt_texture_mapping_planar_params_t. More...
 
struct  tpbrt::texture
 C++ wrapper for tpbrt_texture_t. More...
 
struct  tpbrt::textures_list
 C++ wrapper for tpbrt_textures_list_t. More...
 

Namespaces

namespace  tpbrt
 

Macros

#define _TINYPBRT_TEXTURE_HPP_
 

Typedefs

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.
 

Macro Definition Documentation

◆ _TINYPBRT_TEXTURE_HPP_

#define _TINYPBRT_TEXTURE_HPP_