|
CeresEngine 0.2.0
A game development framework
|
Creates a new resource importer. More...
#include <CeresEngine/Resource/Importer/ResourceImporter.hpp>
Public Member Functions | |
| Async< ImportedResources > | import (const ResourceURL &url, const ResourceImportOptions &options) final |
| Imports a resource from a URL. | |
| virtual Async< ImportedResources > | import (const ResourceURL &url, const O &options)=0 |
| 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. | |
| virtual Async< SupportStatus > | supports (const ResourceURL &url)=0 |
| Checks if the import supports the given resource. | |
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 | |
| ResourceManager & | mResourceManager |
| The owning resource manager. | |
| URLSession & | mURLSession |
| The URL session to be used to load resources. | |
| ExecutionContext & | mExecutionContext |
| The execution context to perform asynchronous resource operations on. | |
Creates a new resource importer.
| resourceManager | The owning resource manager. |
|
pure virtual |
Imports a resource from a URL.
| url | The URL to import the resource from. |
Implemented in CeresEngine::OggVorbisClipImporter, CeresEngine::DefaultFontImporter, CeresEngine::MTLMaterialImporter, CeresEngine::OBJMeshImporter, CeresEngine::GLTFSceneImporter, CeresEngine::OBJSceneImporter, CeresEngine::ShaderImporterImpl, and CeresEngine::StbiTextureImporter.
|
inlinefinalvirtual |
Imports a resource from a URL.
| url | The URL to import the resource from. |
Implements CeresEngine::ResourceImporter.
|
explicit |
Creates a new resource importer.
| resourceManager | The owning resource manager. |