LeviLamina
Loading...
Searching...
No Matches
ResourceLoaders.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/image/ImageFormat.h"
7#include "mc/deps/core/resource/ResourceFileSystem.h"
8#include "mc/deps/core/resource/ResourceFileType.h"
9
10// auto generated forward declare list
11// clang-format off
13class ResourceLoader;
15namespace mce { struct Image; }
16// clang-format on
17
18namespace ResourceLoaders {
19// functions
20// NOLINTBEGIN
21#ifdef LL_PLAT_C
22MCNAPI ::gsl::span<::std::string const> getFileTypeExtensions(::ResourceLoaders::ResourceFileType fileType);
23
24MCNAPI ::ResourceLocation getRawResourceLocation(::ResourceLocation const& resourceLocation);
25
26MCNAPI ::nonstd::expected<::mce::Image, ::std::error_condition> loadImageWithoutExtension(
27 ::ResourceLocation const& imageResourceLocation,
28 ::std::optional<::mce::ImageFormat> desiredImageFormat,
29 bool splitAsArray
30);
31#endif
32// NOLINTEND
33
34// static variables
35// NOLINTBEGIN
36#ifdef LL_PLAT_C
37MCNAPI ::std::string const& IMGEXT_PNG();
38#endif
39
40MCNAPI ::BackwardsCompatTextureGroup& backCompatGroup();
41
42#ifdef LL_PLAT_C
43MCNAPI ::std::map<::ResourceFileSystem, ::std::unique_ptr<::ResourceLoader>>& loaders();
44#endif
45// NOLINTEND
46
47} // namespace ResourceLoaders
Definition BackwardsCompatTextureGroup.h:11
Definition ResourceLoader.h:17
Definition ResourceLocation.h:15
Definition Image.h:13