HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GeometryLoader Class Referenceabstract

#include <GeometryHandler.h>

+ Inheritance diagram for GeometryLoader:

Public Member Functions

 GeometryLoader ()
 
virtual ~GeometryLoader ()
 
const StringSetsupportedExtensions () const
 
virtual bool load (const FilePath &filePath, MeshList &meshList, bool texcoordVerticalFlip=false)=0
 

Protected Attributes

StringSet _extensions
 

Detailed Description

Base class representing a geometry loader. A loader can be associated with one or more file extensions.

Definition at line 27 of file GeometryHandler.h.

Constructor & Destructor Documentation

GeometryLoader::GeometryLoader ( )
inline

Definition at line 30 of file GeometryHandler.h.

virtual GeometryLoader::~GeometryLoader ( )
inlinevirtual

Definition at line 33 of file GeometryHandler.h.

Member Function Documentation

virtual bool GeometryLoader::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.

const StringSet& GeometryLoader::supportedExtensions ( ) const
inline

Returns a list of supported extensions

Returns
List of support extensions

Definition at line 37 of file GeometryHandler.h.

Member Data Documentation

StringSet GeometryLoader::_extensions
protected

Definition at line 51 of file GeometryHandler.h.


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