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

PBRT media representation. More...

#include <tinypbrt/detail/media.h>

Data Fields

tpbrt_media_idx_t idx
 Media index.
 
tpbrt_transform_handle_t transform
 Transform handle.
 
tpbrt_string_t name
 Media name.
 
union { 
 
   tpbrt_media_cloud_params_t   cloud 
 Cloud media parameters. More...
 
   tpbrt_media_homogeneous_params_t   homogeneous 
 Homogeneous media parameters. More...
 
   tpbrt_media_uniform_grid_params_t   uniform_grid 
 Uniform grid media parameters. More...
 
   tpbrt_media_rgb_grid_params_t   rgb_grid 
 Rgb grid media parameters. More...
 
   tpbrt_media_nano_vdb_params_t   nano_vdb 
 Nano vdb media parameters. More...
 
} as 
 Value dependent on type value.
 
tpbrt_media_type_t type: 4
 Media value type.
 

Detailed Description

PBRT media representation.

Examples
examples/scene_info/main.c.

Field Documentation

◆ idx

tpbrt_media_idx_t tpbrt_media_t::idx

Media index.

◆ transform

tpbrt_transform_handle_t tpbrt_media_t::transform

Transform handle.

◆ name

tpbrt_string_t tpbrt_media_t::name

Media name.

Examples
examples/scene_info/main.c.

◆ cloud

tpbrt_media_cloud_params_t tpbrt_media_t::cloud

Cloud media parameters.

◆ homogeneous

tpbrt_media_homogeneous_params_t tpbrt_media_t::homogeneous

Homogeneous media parameters.

◆ uniform_grid

tpbrt_media_uniform_grid_params_t tpbrt_media_t::uniform_grid

Uniform grid media parameters.

◆ rgb_grid

tpbrt_media_rgb_grid_params_t tpbrt_media_t::rgb_grid

Rgb grid media parameters.

◆ nano_vdb

tpbrt_media_nano_vdb_params_t tpbrt_media_t::nano_vdb

Nano vdb media parameters.

◆ [union]

union { ... } tpbrt_media_t::as

Value dependent on type value.

◆ type

tpbrt_media_type_t tpbrt_media_t::type

Media value type.

Examples
examples/scene_info/main.c.

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