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_t
 Transform handle. More...
 
struct  tpbrt_transform_animated_t
 Animated transform. More...
 
struct  tpbrt_transforms_list_t
 List of transforms. More...
 

Macros

#define TPBRT_TRANSFORM_IDX_INVALID   TPBRT_IDX_INVALID
 Invalid transform index.
 

Typedefs

typedef tpbrt_idx_t tpbrt_transform_idx_t
 Transform index.
 

Functions

tpbrt_error_t tpbrt_get_transform (const tpbrt_transforms_list_t *transforms, tpbrt_transform_handle_t handle, const tpbrt_mat4_t **transform)
 Returns pointer to transform to which handle is provided.
 

Detailed Description

Macro Definition Documentation

◆ TPBRT_TRANSFORM_IDX_INVALID

#define TPBRT_TRANSFORM_IDX_INVALID   TPBRT_IDX_INVALID

Invalid transform index.

Typedef Documentation

◆ tpbrt_transform_idx_t

Transform index.

Function Documentation

◆ tpbrt_get_transform()

tpbrt_error_t tpbrt_get_transform ( const tpbrt_transforms_list_t *  transforms,
tpbrt_transform_handle_t  handle,
const tpbrt_mat4_t **  transform 
)

Returns pointer to transform to which handle is provided.

Parameters
transformsList of transforms in which transform given by handle should be.
handleHandle to transform.
transformPointer in which pointer to transform will be stored (if not found this will be TPBRT_NULL).
Returns
Returns error code (most possible TPBRT_ERROR_NOT_FOUND, TPBRT_ERROR_NONE).
Examples
examples/export_obj/main.c, examples/lights/main.c, examples/quickstart/main.c, and examples/scene_info/main.c.