CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
OggVorbisClipImporter.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
13
14namespace CeresEngine {
15
17 private:
20
21 public:
25 explicit OggVorbisClipImporter(ResourceManager& resourceManager, ExecutionContext& executionContext);
26
29
30 public:
32 [[nodiscard]] Async<ImportedResources> import(const ResourceURL& url, const AudioClipImportOptions& options) final;
33
35 [[nodiscard]] Async<SupportStatus> supports(const ResourceURL& url) final;
36 };
37
38} // namespace CeresEngine
Definition AudioImporter.hpp:19
A context for function object execution.
Definition ExecutionContext.hpp:90
Definition OggVorbisClipImporter.hpp:16
Async< SupportStatus > supports(const ResourceURL &url) final
Checks if the import supports the given resource.
OggVorbisClipImporter(ResourceManager &resourceManager, ExecutionContext &executionContext)
Creates a new OggVorbisClipImporter
~OggVorbisClipImporter() final
Destroys the OggVorbisClipImporter
Async< ImportedResources > import(const ResourceURL &url, const AudioClipImportOptions &options) final
Imports a resource from a URL.
ExecutionContext & mExecutionContext
The execution context to be used when loading the resources asynchronously.
Definition OggVorbisClipImporter.hpp:19
SupportStatus
An enumeration that contains the possible importer support status.
Definition ResourceImporter.hpp:225
The ResourceManager is the main class responsible for managing and handling all resources in the engi...
Definition ResourceManager.hpp:47
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
Definition AudioImporter.hpp:17
A structure that contains the imported resources returned by an importer.
Definition ResourceImporter.hpp:65