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
32MCNAPI void registerLoader(::ResourceFileSystem fileSystem, ::std::unique_ptr<::ResourceLoader> loader);
33#endif
34// NOLINTEND
35
36// static variables
37// NOLINTBEGIN
38MCNAPI ::std::string const& EMPTY_STRING();
39
40MCNAPI ::std::string const& IMGEXT_JPEG();
41
42MCNAPI ::std::string const& IMGEXT_JPG();
43
44MCNAPI ::std::string const& IMGEXT_PNG();
45
46MCNAPI ::std::string const& IMGEXT_TARGA();
47
48MCNAPI ::std::string const& IMGEXT_TEXTURESET();
49
50MCNAPI ::BackwardsCompatTextureGroup& backCompatGroup();
51
52MCNAPI ::std::map<::ResourceFileSystem, ::std::unique_ptr<::ResourceLoader>>& loaders();
53
54MCNAPI ::std::vector<::std::string> const& supportedImageExtensions();
55// NOLINTEND
56
57} // namespace ResourceLoaders
Definition BackwardsCompatTextureGroup.h:12
Definition ResourceLoader.h:17
Definition ResourceLocation.h:15
Definition Image.h:12