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

Data Structures

struct  tpbrt::object
 C++ wrapper for tpbrt_object_t. More...
 
struct  tpbrt::object_handle
 C++ wrapper for tpbrt_object_handle_t. More...
 
struct  tpbrt::objects_list
 C++ wrapper for tpbrt_objects_list_t. More...
 

Typedefs

using tpbrt::object_idx_t = tpbrt_object_idx_t
 Object index type.
 

Functions

result< object > tpbrt::get_object (const objects_list list, const object_handle handle) noexcept
 Returns object to which handle is provided.
 
result< object > tpbrt::get_object (const objects_list list, const std::string_view name) noexcept
 Returns object with given name.
 

Variables

constexpr auto tpbrt::ObjectInvalidIdx = TPBRT_OBJECT_IDX_INVALID
 Invalid object index.
 

Detailed Description

Typedef Documentation

◆ object_idx_t

Object index type.

Function Documentation

◆ get_object() [1/2]

result< object > tpbrt::get_object ( const objects_list  list,
const object_handle  handle 
)
inlinenoexcept

Returns object to which handle is provided.

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

◆ get_object() [2/2]

result< object > tpbrt::get_object ( const objects_list  list,
const std::string_view  name 
)
inlinenoexcept

Returns object with given name.

Parameters
listList of objects in which searched object should be.
nameName of the searched object.
Returns
Result with the object or with error code (most likely error::NOT_FOUND).

Variable Documentation

◆ ObjectInvalidIdx

constexpr auto tpbrt::ObjectInvalidIdx = TPBRT_OBJECT_IDX_INVALID
inlineconstexpr

Invalid object index.