CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
ShaderImporter.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
11
14
15namespace CeresEngine {
16
18
19 class ShaderImporter : public TResourceImporter<ShaderImporter, ShaderImportOptions> {
20 public:
21 using TResourceImporter::TResourceImporter;
22 };
23
25 public:
26 explicit ShaderImporterImpl(ResourceManager& resourceManager);
27
28 public:
30 Async<ImportedResources> import(const ResourceURL& url, const ShaderImportOptions& options) override;
31 };
32
33} // namespace CeresEngine
The ResourceManager is the main class responsible for managing and handling all resources in the engi...
Definition ResourceManager.hpp:47
Definition ShaderImporter.hpp:19
Definition ShaderImporter.hpp:24
Async< SupportStatus > supports(const ResourceURL &url) override
Checks if the import supports the given resource.
ShaderImporterImpl(ResourceManager &resourceManager)
Creates a new resource importer.
Definition ResourceImporter.hpp:248
A Uniform Resource Identifier (URI) is a unique sequence of characters that identifies a logical or p...
Definition URI.hpp:54
Definition Application.hpp:19
cti::continuable< Args... > Async
Defines a non-copyable continuation type which uses the function2 backend for type erasure.
Definition Async.hpp:22
A structure that contains import options that describes how a resource should be imported.
Definition ResourceImportOptions.hpp:16
Definition ShaderImporter.hpp:17