MaterialX 1.38.2
TinyObjLoader.h
Go to the documentation of this file.
1//
2// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3// All rights reserved. See LICENSE.txt for license.
4//
5
6#ifndef MATERIALX_TINYOBJLOADER_H
7#define MATERIALX_TINYOBJLOADER_H
8
11
13
14namespace MaterialX
15{
16
18using TinyObjLoaderPtr = std::shared_ptr<class TinyObjLoader>;
19
22class MX_RENDER_API TinyObjLoader : public GeometryLoader
23{
24 public:
26 {
27 _extensions = { "obj", "OBJ" };
28 }
29 virtual ~TinyObjLoader() { }
30
32 static TinyObjLoaderPtr create() { return std::make_shared<TinyObjLoader>(); }
33
35 bool load(const FilePath& filePath, MeshList& meshList) override;
36};
37
38} // namespace MaterialX
39
40#endif
Geometry loader interfaces.
vector< MeshPtr > MeshList
List of meshes.
Definition: Mesh.h:210
std::shared_ptr< class TinyObjLoader > TinyObjLoaderPtr
Shared pointer to a TinyObjLoader.
Definition: TinyObjLoader.h:18
A generic file path, supporting both syntactic and file system operations.
Definition: File.h:28
Base class representing a geometry loader.
Definition: GeometryHandler.h:29
Wrapper for geometry loader to read in OBJ files using the TinyObj library.
Definition: TinyObjLoader.h:23
static TinyObjLoaderPtr create()
Create a new TinyObjLoader.
Definition: TinyObjLoader.h:32