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

PBRT texture representation. More...

#include <tinypbrt/detail/texture.h>

Data Fields

tpbrt_texture_idx_t idx
 Texture index.
 
tpbrt_texture_type_t type: 3
 Texture type.
 
tpbrt_texture_class_t tex_class: 5
 Texture class.
 
tpbrt_texture_mapping_t mapping: 4
 Texture mapping.
 
tpbrt_string_t name
 Texture name.
 
union { 
 
   tpbrt_texture_mapping_uv_params_t   uv 
 UV texture mapping parameters. More...
 
   tpbrt_texture_mapping_spherical_params_t   spherical 
 Spherical texture mapping parameters. More...
 
   tpbrt_texture_mapping_cylindrical_params_t   cylindrical 
 Cylindrical texture mapping parameters. More...
 
   tpbrt_texture_mapping_planar_params_t   planar 
 Planar texture mapping parameters. More...
 
} mapping_as 
 Value dependent on mapping value.
 
union { 
 
   tpbrt_texture_bilerp_params_t   bilerp 
 Bilerp texture parameters. More...
 
   tpbrt_texture_checkerboard_params_t   checkerboard 
 Checkerboard texture parameters. More...
 
   tpbrt_texture_constant_params_t   constant 
 Constant texture parameters. More...
 
   tpbrt_texture_direction_mix_params_t   direction_mix 
 Direction mix texture parameters. More...
 
   tpbrt_texture_dots_params_t   dots 
 Dots texture parameters. More...
 
   tpbrt_texture_fbm_params_t   fbm 
 FBM texture parameters. More...
 
   tpbrt_texture_wrinkled_params_t   wrinkled 
 Wrinkled texture parameters. More...
 
   tpbrt_texture_windy_params_t   windy 
 Windy texture parameters. More...
 
   tpbrt_texture_image_map_params_t   image_map 
 Image map texture parameters. More...
 
   tpbrt_texture_marble_params_t   marble 
 Marble texture parameters. More...
 
   tpbrt_texture_mix_params_t   mix 
 Mix texture parameters. More...
 
   tpbrt_texture_ptex_params_t   ptex 
 PTEX texture parameters. More...
 
   tpbrt_texture_scale_params_t   scale 
 Scale texture parameters. More...
 
} as 
 Value dependent on tex_class value.
 

Detailed Description

PBRT texture representation.

Examples
examples/materials/main.c, and examples/scene_info/main.c.

Field Documentation

◆ idx

tpbrt_texture_idx_t tpbrt_texture_t::idx

Texture index.

◆ type

tpbrt_texture_type_t tpbrt_texture_t::type

◆ tex_class

tpbrt_texture_class_t tpbrt_texture_t::tex_class

◆ mapping

tpbrt_texture_mapping_t tpbrt_texture_t::mapping

Texture mapping.

◆ name

tpbrt_string_t tpbrt_texture_t::name

◆ uv

tpbrt_texture_mapping_uv_params_t tpbrt_texture_t::uv

UV texture mapping parameters.

Examples
examples/materials/main.c.

◆ spherical

tpbrt_texture_mapping_spherical_params_t tpbrt_texture_t::spherical

Spherical texture mapping parameters.

◆ cylindrical

tpbrt_texture_mapping_cylindrical_params_t tpbrt_texture_t::cylindrical

Cylindrical texture mapping parameters.

◆ planar

tpbrt_texture_mapping_planar_params_t tpbrt_texture_t::planar

Planar texture mapping parameters.

◆ [union]

union { ... } tpbrt_texture_t::mapping_as

Value dependent on mapping value.

Examples
examples/materials/main.c.

◆ bilerp

tpbrt_texture_bilerp_params_t tpbrt_texture_t::bilerp

Bilerp texture parameters.

◆ checkerboard

tpbrt_texture_checkerboard_params_t tpbrt_texture_t::checkerboard

Checkerboard texture parameters.

Examples
examples/materials/main.c.

◆ constant

tpbrt_texture_constant_params_t tpbrt_texture_t::constant

Constant texture parameters.

◆ direction_mix

tpbrt_texture_direction_mix_params_t tpbrt_texture_t::direction_mix

Direction mix texture parameters.

◆ dots

tpbrt_texture_dots_params_t tpbrt_texture_t::dots

Dots texture parameters.

◆ fbm

tpbrt_texture_fbm_params_t tpbrt_texture_t::fbm

FBM texture parameters.

◆ wrinkled

tpbrt_texture_wrinkled_params_t tpbrt_texture_t::wrinkled

Wrinkled texture parameters.

◆ windy

tpbrt_texture_windy_params_t tpbrt_texture_t::windy

Windy texture parameters.

◆ image_map

tpbrt_texture_image_map_params_t tpbrt_texture_t::image_map

Image map texture parameters.

◆ marble

tpbrt_texture_marble_params_t tpbrt_texture_t::marble

Marble texture parameters.

◆ mix

tpbrt_texture_mix_params_t tpbrt_texture_t::mix

Mix texture parameters.

◆ ptex

tpbrt_texture_ptex_params_t tpbrt_texture_t::ptex

PTEX texture parameters.

◆ scale

tpbrt_texture_scale_params_t tpbrt_texture_t::scale

Scale texture parameters.

◆ [union]

union { ... } tpbrt_texture_t::as

Value dependent on tex_class value.

Examples
examples/materials/main.c.

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