Voltray Engine Docs
Loading...
Searching...
No Matches
Engine::Loader::IFormatLoader Class Referenceabstract

Abstract base class for different mesh format loaders. More...

#include <IFormatLoader.h>

Inheritance diagram for Engine::Loader::IFormatLoader:

Public Member Functions

virtual ~IFormatLoader ()=default
 
virtual bool CanLoad (const std::string &extension) const =0
 Check if this loader can handle the given file extension.
 
virtual std::vector< MeshDataLoadMeshData (const std::string &filepath)=0
 Load mesh data from file.
 
virtual std::string GetLoaderName () const =0
 Get the name of this loader.
 

Detailed Description

Abstract base class for different mesh format loaders.

Constructor & Destructor Documentation

◆ ~IFormatLoader()

virtual Engine::Loader::IFormatLoader::~IFormatLoader ( )
virtualdefault

Member Function Documentation

◆ CanLoad()

virtual bool Engine::Loader::IFormatLoader::CanLoad ( const std::string &  extension) const
pure virtual

Check if this loader can handle the given file extension.

Parameters
extensionFile extension (e.g., ".obj", ".fbx")
Returns
True if format is supported

Implemented in Engine::Loader::AssimpLoader.

◆ GetLoaderName()

virtual std::string Engine::Loader::IFormatLoader::GetLoaderName ( ) const
pure virtual

Get the name of this loader.

Returns
Loader name for debugging

Implemented in Engine::Loader::AssimpLoader.

◆ LoadMeshData()

virtual std::vector< MeshData > Engine::Loader::IFormatLoader::LoadMeshData ( const std::string &  filepath)
pure virtual

Load mesh data from file.

Parameters
filepathPath to the mesh file
Returns
Vector of MeshData structures

Implemented in Engine::Loader::AssimpLoader.


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