Material library that stores the material properties for objects defined in an Asset.
More...
#include <GREM/core/formats/obj.hpp>
|
| void | load (StringView mtlString) |
| | Add materials parsed from an MTL string to the material library.
|
Material library that stores the material properties for objects defined in an Asset.
◆ parse()
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
-
| obj::Error | on failure to parse the material library. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
◆ load()
| void grem::obj::mtl::Library::load |
( |
StringView | mtlString | ) |
|
Add materials parsed from an MTL string to the material library.
- Parameters
-
| mtlString | read-only view over the MTL string to parse. |
- Exceptions
-
| obj::Error | on failure to parse the material library. |
| std::length_error | if an internal size limit was exceeded. |
| std::bad_array_new_length | if an internal size limit was exceeded. |
| std::bad_alloc | on allocation failure. |
◆ materials
List of materials belonging to this library.
The documentation for this struct was generated from the following file: