libdonut  2.3.2
Application framework for cross-platform game development in C++20
Static Public Member Functions | Public Attributes | List of all members
donut::obj::mtl::Library Struct Reference

Material library that stores the material properties for objects defined in a Scene. More...

#include <donut/obj.hpp>

Static Public Member Functions

static Library parse (std::string_view mtlString)
 Parse a material library from an MTL string. More...
 

Public Attributes

std::vector< Materialmaterials {}
 List of materials belonging to this library. More...
 

Detailed Description

Material library that stores the material properties for objects defined in a Scene.

Member Function Documentation

◆ parse()

static Library donut::obj::mtl::Library::parse ( std::string_view  mtlString)
static

Parse a material library from an MTL string.

Parameters
mtlStringread-only view over the MTL string to parse.
Returns
the parsed material library.
Exceptions
Erroron failure to parse any element of the material library.
std::bad_allocon allocation failure.

Member Data Documentation

◆ 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: