Scene of Object elements defined by an OBJ file.
More...
#include <donut/obj.hpp>
|
static Scene | parse (std::string_view objString) |
| Parse a scene from an OBJ string. More...
|
|
|
std::vector< std::string > | materialLibraryFilenames {} |
| List of relative filepaths of the material libraries associated with this scene. More...
|
|
std::vector< vec3 > | vertices {} |
| List of vertex positions referenced by the face vertices defined in this scene. More...
|
|
std::vector< vec2 > | textureCoordinates {} |
| List of texture coordinates referenced by the face vertices defined in this scene. More...
|
|
std::vector< vec3 > | normals {} |
| List of normal vectors referenced by the face vertices defined in this scene. More...
|
|
std::vector< Object > | objects {} |
| List of objects belonging to this scene. More...
|
|
Scene of Object elements defined by an OBJ file.
◆ parse()
static Scene donut::obj::Scene::parse |
( |
std::string_view |
objString | ) |
|
|
static |
Parse a scene from an OBJ string.
- Parameters
-
objString | read-only view over the OBJ string to parse. |
- Returns
- the parsed scene.
- Exceptions
-
Error | on failure to parse any element of the scene. |
std::bad_alloc | on allocation failure. |
◆ materialLibraryFilenames
std::vector<std::string> donut::obj::Scene::materialLibraryFilenames {} |
List of relative filepaths of the material libraries associated with this scene.
◆ vertices
std::vector<vec3> donut::obj::Scene::vertices {} |
List of vertex positions referenced by the face vertices defined in this scene.
◆ textureCoordinates
std::vector<vec2> donut::obj::Scene::textureCoordinates {} |
List of texture coordinates referenced by the face vertices defined in this scene.
◆ normals
std::vector<vec3> donut::obj::Scene::normals {} |
List of normal vectors referenced by the face vertices defined in this scene.
◆ objects
std::vector<Object> donut::obj::Scene::objects {} |
List of objects belonging to this scene.
The documentation for this struct was generated from the following file: