Skip to content
LeviMC
English
AutoLightDark
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 ::std::string encodeBase64(::ResourceLocation const& resourceLocation);
23
24MCNAPI ::gsl::span<::std::string const> getFileTypeExtensions(::ResourceLoaders::ResourceFileType fileType);
25
26MCNAPI ::ResourceLocation getRawResourceLocation(::ResourceLocation const& resourceLocation);
27
28MCNAPI ::nonstd::expected<::mce::Image, ::std::error_condition> loadImageWithoutExtension(
29 ::ResourceLocation const& imageResourceLocation,
30 ::std::optional<::mce::ImageFormat> desiredImageFormat,
31 bool splitAsArray
32);
33#endif
34// NOLINTEND
35
36// static variables
37// NOLINTBEGIN
38#ifdef LL_PLAT_C
39MCNAPI ::std::string const& IMGEXT_PNG();
40#endif
41
42MCNAPI ::BackwardsCompatTextureGroup& backCompatGroup();
43
44MCNAPI ::std::map<::ResourceFileSystem, ::std::unique_ptr<::ResourceLoader>>& loaders();
45// NOLINTEND
46
47} // namespace ResourceLoaders
Definition BackwardsCompatTextureGroup.h:11
Definition ResourceLoader.h:16
Definition ResourceLocation.h:15
Definition Image.h:13