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

Go to the source code of this file.

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

Namespaces

namespace  tpbrt
 

Macros

#define _TINYPBRT_SCENE_HPP_
 

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

Macro Definition Documentation

◆ _TINYPBRT_SCENE_HPP_

#define _TINYPBRT_SCENE_HPP_