Abstract base class for different mesh format loaders.
More...
#include <IFormatLoader.h>
|
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< MeshData > | LoadMeshData (const std::string &filepath)=0 |
| Load mesh data from file.
|
|
virtual std::string | GetLoaderName () const =0 |
| Get the name of this loader.
|
|
Abstract base class for different mesh format loaders.
◆ ~IFormatLoader()
virtual Engine::Loader::IFormatLoader::~IFormatLoader |
( |
| ) |
|
|
virtualdefault |
◆ 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
-
extension | File 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 |
◆ LoadMeshData()
virtual std::vector< MeshData > Engine::Loader::IFormatLoader::LoadMeshData |
( |
const std::string & |
filepath | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: