CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::DefaultFontImporter Class Reference

#include <CeresEngine/Text/Importer/FontImporter.hpp>

Inheritance diagram for CeresEngine::DefaultFontImporter:
CeresEngine::FontImporter CeresEngine::TResourceImporter< Font, FontImportOptions > CeresEngine::ResourceImporter

Public Member Functions

Async< ImportedResourcesimport (const ResourceURL &url, const FontImportOptions &options) override
 Imports a resource from a URL.
 
Async< SupportStatussupports (const ResourceURL &url) override
 Checks if the import supports the given resource.
 
- Public Member Functions inherited from CeresEngine::TResourceImporter< Font, FontImportOptions >
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.
 

Member Function Documentation

◆ import()

Async< ImportedResources > CeresEngine::DefaultFontImporter::import ( const ResourceURL url,
const FontImportOptions options 
)
overridevirtual

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< Font, FontImportOptions >.

◆ supports()

Async< SupportStatus > CeresEngine::DefaultFontImporter::supports ( const ResourceURL url)
overridevirtual

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: