|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Data Structures | |
| struct | tpbrt::scene_view |
| C++ wrapper for tpbrt_scene_t (a non owning view, e.g. More... | |
| class | tpbrt::scene |
| Scene loaded from a pbrt-v4 file or string, owning all its memory (move only, freed in the destructor). More... | |
Functions | |
| result< scene > | tpbrt::load_scene_from_file (const std::string &filepath) |
| Loads scene from given file. | |
| result< scene > | tpbrt::load_scene_from_memory (const std::string &data, const std::string &working_directory=".") |
| Loads scene from memory (provided string). | |
| result< scene > | tpbrt::load_scene_from_memory (const char_t *const data, const std::string &working_directory=".") |
| Loads scene from memory (provided null-terminated string). | |
Loads scene from given file.
| filepath | Path to scene file. |
|
inline |
Loads scene from memory (provided string).
| data | Scene text. |
| working_directory | Directory used to resolve Include / Import and other relative paths. |
|
inline |
Loads scene from memory (provided null-terminated string).
| data | Scene text (must end with '\0'). |
| working_directory | Directory used to resolve Include / Import and other relative paths. |