CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MTLMaterialImporter Class Referencefinal

#include <CeresEngine/Material/Importer/MTL/MTLMaterialImporter.hpp>

Inheritance diagram for CeresEngine::MTLMaterialImporter:
CeresEngine::MaterialImporter CeresEngine::TResourceImporter< MaterialImporter, MaterialImportOptions > CeresEngine::ResourceImporter

Public Member Functions

 MTLMaterialImporter (ResourceManager &resourceManager)
 
 ~MTLMaterialImporter () final
 
Async< ImportedResourcesimport (const ResourceURL &url, const MaterialImportOptions &options) final
 Imports a resource from a URL.
 
Async< SupportStatussupports (const ResourceURL &url) final
 Checks if the import supports the given resource.
 
- Public Member Functions inherited from CeresEngine::TResourceImporter< MaterialImporter, MaterialImportOptions >
Async< ImportedResourcesimport (const ResourceURL &url, const ResourceImportOptions &options) final
 Imports a resource from a URL.
 
 ResourceImporter (ResourceManager &resourceManager)
 Creates a new resource importer.
 
- Public Member Functions inherited from CeresEngine::ResourceImporter
 ResourceImporter (ResourceManager &resourceManager)
 Creates a new resource importer.
 
virtual ~ResourceImporter ()=default
 Destroys the resource importer.
 

Additional Inherited Members

- Public Types inherited from CeresEngine::ResourceImporter
enum class  SupportStatus { Supported , Generic , Unsupported }
 An enumeration that contains the possible importer support status. More...
 
- Protected Attributes inherited from CeresEngine::ResourceImporter
ResourceManagermResourceManager
 The owning resource manager.
 
URLSessionmURLSession
 The URL session to be used to load resources.
 
ExecutionContextmExecutionContext
 The execution context to perform asynchronous resource operations on.
 

Constructor & Destructor Documentation

◆ MTLMaterialImporter()

CeresEngine::MTLMaterialImporter::MTLMaterialImporter ( ResourceManager resourceManager)

◆ ~MTLMaterialImporter()

CeresEngine::MTLMaterialImporter::~MTLMaterialImporter ( )
final

Member Function Documentation

◆ import()

Async< ImportedResources > CeresEngine::MTLMaterialImporter::import ( const ResourceURL url,
const MaterialImportOptions options 
)
finalvirtual

Imports a resource from a URL.

Parameters
urlThe URL to import the resource from.
Returns
A continuable that returns once the resource has been imported.

Implements CeresEngine::TResourceImporter< MaterialImporter, MaterialImportOptions >.

◆ supports()

Async< SupportStatus > CeresEngine::MTLMaterialImporter::supports ( const ResourceURL url)
finalvirtual

Checks if the import supports the given resource.

Parameters
urlThe URL to import the resource from.
Returns
A continuable that returns the support status for the given resource URL.

Implements CeresEngine::ResourceImporter.


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