Material library that stores the material properties for objects defined in a Scene.
More...
#include <donut/obj.hpp>
|
| static Library | parse (std::string_view mtlString) |
| | Parse a material library from an MTL string.
|
| |
Material library that stores the material properties for objects defined in a Scene.
◆ parse()
| static Library donut::obj::mtl::Library::parse |
( |
std::string_view |
mtlString | ) |
|
|
static |
Parse a material library from an MTL string.
- Parameters
-
| mtlString | read-only view over the MTL string to parse. |
- Returns
- the parsed material library.
- Exceptions
-
| Error | on failure to parse any element of the material library. |
| std::bad_alloc | on allocation failure. |
◆ materials
| std::vector<Material> donut::obj::mtl::Library::materials {} |
List of materials belonging to this library.
The documentation for this struct was generated from the following file: