MaterialX 1.39.2
Loading...
Searching...
No Matches
TinyObjLoader.h
Go to the documentation of this file.
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_TINYOBJLOADER_H
7#define MATERIALX_TINYOBJLOADER_H
8
11
13
14MATERIALX_NAMESPACE_BEGIN
15
17using TinyObjLoaderPtr = std::shared_ptr<class TinyObjLoader>;
18
21class MX_RENDER_API TinyObjLoader : public GeometryLoader
22{
23 public:
24 TinyObjLoader()
25 {
26 _extensions = { "obj", "OBJ" };
27 }
28 virtual ~TinyObjLoader() { }
29
31 static TinyObjLoaderPtr create() { return std::make_shared<TinyObjLoader>(); }
32
34 bool load(const FilePath& filePath, MeshList& meshList, bool texcoordVerticalFlip = false) override;
35};
36
37MATERIALX_NAMESPACE_END
38
39#endif
Geometry loader interfaces.
vector< MeshPtr > MeshList
List of meshes.
Definition Mesh.h:233
std::shared_ptr< class TinyObjLoader > TinyObjLoaderPtr
Shared pointer to a TinyObjLoader.
Definition TinyObjLoader.h:17
A generic file path, supporting both syntactic and file system operations.
Definition File.h:27
bool load(const FilePath &filePath, MeshList &meshList, bool texcoordVerticalFlip=false) override
Load geometry from disk.
static TinyObjLoaderPtr create()
Create a new TinyObjLoader.
Definition TinyObjLoader.h:31