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

Library for parsing pbrt-v4 files. More...

Modules

 Accelerator
 
 Camera
 
 Color
 
 Common
 
 Coordinates
 
 Integrator
 
 Math
 
 Sampler
 
 Shape
 
 Error
 
 Film
 
 Filter
 
 Integrator
 
 Light
 
 Material
 
 Math
 
 Media
 
 Object
 
 Object Instance
 
 Options
 
 Sampler
 
 Scattering
 
 Scene
 
 Shape
 
 Texture
 
 Transform
 

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]; }).
 

Detailed Description

Library for parsing pbrt-v4 files.

More information about the pbrt-v4 file format can be found at https://pbrt.org/fileformat-v4.

Macro Definition Documentation

◆ TPBRT_NULL

◆ TPBRT_FALSE

#define TPBRT_FALSE   0

False value.

◆ TPBRT_TRUE

#define TPBRT_TRUE   1

True value.

◆ TPBRT_ANONYMOUS_UNION

#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).