|
tinypbrt 1.1.1
pbrt-v4 scene file parser for C11 with a header-only C++20 wrapper
|
Data Structures | |
| struct | tpbrt_scene_t |
| PBRT scene representation. More... | |
Functions | |
| tpbrt_error_t | tpbrt_scene_load_from_file (const tpbrt_char_t *filepath, tpbrt_scene_t *out_scene) |
| Loads scene from given file. | |
| tpbrt_error_t | tpbrt_scene_load_from_memory (const tpbrt_char_t *data, const tpbrt_char_t *working_directory, tpbrt_scene_t *out_scene) |
| Loads scene from memory (provided string). | |
| void | tpbrt_scene_free (tpbrt_scene_t *scene) |
| Free all scene resources. | |
| tpbrt_error_t tpbrt_scene_load_from_file | ( | const tpbrt_char_t * | filepath, |
| tpbrt_scene_t * | out_scene | ||
| ) |
Loads scene from given file.
| filepath | Filepath to scene file. |
| out_scene | Pointer to result scene structure. |
| tpbrt_error_t tpbrt_scene_load_from_memory | ( | const tpbrt_char_t * | data, |
| const tpbrt_char_t * | working_directory, | ||
| tpbrt_scene_t * | out_scene | ||
| ) |
Loads scene from memory (provided string).
| data | Scene string (must end with '\0'). |
| working_directory | Directory which will be used if Include or Import will be used. |
| out_scene | Pointer to result scene structure. |
| void tpbrt_scene_free | ( | tpbrt_scene_t * | scene | ) |
Free all scene resources.
Nothing happens if TPBRT_NULL is provided.
| scene | Scene resources to free. |