3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/image/ImageFormat.h"
8#include "mc/deps/core/resource/ResourceFileSystem.h"
9#include "mc/deps/core/resource/ResourceFileType.h"
17namespace mce {
struct Image; }
20namespace ResourceLoaders {
24MCNAPI
void clearLoaders();
26MCNAPI ::gsl::span<::std::string const> getFileTypeExtensions(::ResourceLoaders::ResourceFileType fileType);
28MCNAPI ::std::pair<int, ::std::string_view>
29getPackStackIndexOfResource(::ResourceLocation
const& resourceLocation, ::gsl::span<::std::string const> extensions);
31MCNAPI ::Core::PathBuffer<::std::string> getPath(::ResourceLocation
const& resourceLocation);
33MCNAPI ::ResourceLocation getRawResourceLocation(::ResourceLocation
const& resourceLocation);
35MCNAPI
bool load(::ResourceLocation
const& resourceLocation, ::std::string& resourceStream);
38 ::ResourceLocation
const& resourceLocation,
39 ::std::string& resourceStream,
40 ::gsl::span<::std::string const> extensions
44 ::ResourceLocationPair
const& resourceLocation,
45 ::std::string& resourceStream,
46 ::gsl::span<::std::string const> extensions
49MCNAPI ::mce::Image loadImage(::ResourceLocation
const& resourceLocation);
51MCNAPI ::nonstd::expected<::mce::Image, ::std::error_condition> loadImageWithoutExtension(
52 ::ResourceLocation
const& imageResourceLocation,
53 ::std::optional<::mce::ImageFormat> desiredImageFormat,
57MCNAPI
void registerLoader(::ResourceFileSystem fileSystem, ::std::unique_ptr<::ResourceLoader> loader);
64MCNAPI ::std::string
const& EMPTY_STRING();
67MCNAPI ::std::string
const& IMGEXT_JPEG();
69MCNAPI ::std::string
const& IMGEXT_JPG();
71MCNAPI ::std::string
const& IMGEXT_PNG();
73MCNAPI ::std::string
const& IMGEXT_TARGA();
75MCNAPI ::std::string
const& IMGEXT_TEXTURESET();
77MCNAPI ::BackwardsCompatTextureGroup& backCompatGroup();
79MCNAPI ::std::map<::ResourceFileSystem, ::std::unique_ptr<::ResourceLoader>>& loaders();
81MCNAPI ::std::vector<::std::string>
const& supportedImageExtensions();
Definition BackwardsCompatTextureGroup.h:12
Definition ResourceLoader.h:17
Definition ResourceLocationPair.h:9
Definition ResourceLocation.h:15