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

Data Structures

struct  tpbrt::transform_handle
 C++ wrapper for tpbrt_transform_handle_t. More...
 
struct  tpbrt::transform_animated
 C++ wrapper for tpbrt_transform_animated_t. More...
 
struct  tpbrt::transforms_list
 C++ wrapper for tpbrt_transforms_list_t. More...
 

Typedefs

using tpbrt::transform_idx_t = tpbrt_transform_idx_t
 Transform index.
 

Functions

result< mat4 > tpbrt::get_transform (const transforms_list list, const transform_handle handle) noexcept
 Returns transform to which handle is provided.
 

Variables

constexpr auto tpbrt::TransformInvalidIdx = TPBRT_TRANSFORM_IDX_INVALID
 Invalid transform index.
 

Detailed Description

Typedef Documentation

◆ transform_idx_t

Transform index.

Function Documentation

◆ get_transform()

result< mat4 > tpbrt::get_transform ( const transforms_list  list,
const transform_handle  handle 
)
inlinenoexcept

Returns transform to which handle is provided.

Parameters
listList of transforms in which transform given by handle should be.
handleHandle to transform.
Returns
Result with the transform or with error code (most likely error::NOT_FOUND).

Variable Documentation

◆ TransformInvalidIdx

constexpr auto tpbrt::TransformInvalidIdx = TPBRT_TRANSFORM_IDX_INVALID
inlineconstexpr

Invalid transform index.