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

Optional float value. More...

#include <tinypbrt/detail/math.h>

Data Fields

tpbrt_float_t value
 Value set only when has_value is TPBRT_TRUE.
 
tpbrt_bool_t has_value: 1
 Indicates if value is set.
 

Detailed Description

Optional float value.

Field Documentation

◆ value

tpbrt_float_t tpbrt_opt_float_t::value

Value set only when has_value is TPBRT_TRUE.

Examples
examples/lights/main.c.

◆ has_value

tpbrt_bool_t tpbrt_opt_float_t::has_value

Indicates if value is set.

Examples
examples/lights/main.c.

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