MaterialX 1.38.10
Loading...
Searching...
No Matches
GeometryLoader Class Referenceabstract

Base class representing a geometry loader. More...

#include <GeometryHandler.h>

Inheritance diagram for GeometryLoader:
CgltfLoader TinyObjLoader

Public Member Functions

const StringSetsupportedExtensions () const
 Returns a list of supported extensions. More...
 
virtual bool load (const FilePath &filePath, MeshList &meshList, bool texcoordVerticalFlip=false)=0
 Load geometry from disk. More...
 

Protected Attributes

StringSet _extensions
 

Detailed Description

Base class representing a geometry loader.

A loader can be associated with one or more file extensions.

Member Function Documentation

◆ load()

virtual bool load ( const FilePath filePath,
MeshList meshList,
bool  texcoordVerticalFlip = false 
)
pure virtual

Load geometry from disk.

Must be implemented by derived classes.

Parameters
filePathPath to file to load
meshListList of meshes to update
texcoordVerticalFlipFlip texture coordinates in V when loading
Returns
True if load was successful

Implemented in CgltfLoader, and TinyObjLoader.

◆ supportedExtensions()

const StringSet & supportedExtensions ( ) const
inline

Returns a list of supported extensions.

Returns
List of support extensions

The documentation for this class was generated from the following file: