|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Library for parsing pbrt-v4 files. More...
Macros | |
| #define | TPBRT_NULL NULL |
| NULL value. | |
| #define | TPBRT_FALSE 0 |
| False value. | |
| #define | TPBRT_TRUE 1 |
| True value. | |
| #define | TPBRT_ANONYMOUS_UNION union |
Anonymous union holding anonymous structs (TPBRT_ANONYMOUS_UNION { struct { float x, y; }; float v[2]; }). | |
Library for parsing pbrt-v4 files.
More information about the pbrt-v4 file format can be found at https://pbrt.org/fileformat-v4.
| #define TPBRT_NULL NULL |
NULL value.
| #define TPBRT_FALSE 0 |
False value.
| #define TPBRT_TRUE 1 |
True value.
| #define TPBRT_ANONYMOUS_UNION union |
Anonymous union holding anonymous structs (TPBRT_ANONYMOUS_UNION { struct { float x, y; }; float v[2]; }).
Standard in C11, but anonymous structs are an extension in ISO C++: __extension__ silences -Wpedantic for GCC/Clang when the headers are included from C++ (the C++ wrapper or user code built with -Wpedantic).