LeviLamina
Loading...
Searching...
No Matches
ImageResourceLoader.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/external/render_dragon/texture_streaming/texture_cache/TextureCache.h"
8
9// auto generated forward declare list
10// clang-format off
12namespace cg { class ImageResource; }
13namespace dragon::texturestreaming { struct DragonTextureCacheContext; }
14// clang-format on
15
16namespace mce {
17
18class ImageResourceLoader {
19public:
20 // ImageResourceLoader inner types define
21 enum class LoadError : int {
22 TextureConversionError = 0,
23 };
24
25public:
26// member variables
27// NOLINTBEGIN
28#ifdef LL_PLAT_S
30#else // LL_PLAT_C
32#endif
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 ImageResourceLoader& operator=(ImageResourceLoader const&);
39 ImageResourceLoader(ImageResourceLoader const&);
40 ImageResourceLoader();
41
42public:
43 // member functions
44 // NOLINTBEGIN
45#ifdef LL_PLAT_C
46 MCNAPI ::nonstd::expected<::std::shared_ptr<::cg::ImageResource>, ::std::error_condition>
47 loadImageResourceFromMemory(
48 ::ResourceLocation const& resourceLocation,
49 ::std::string const& fileContents,
50 bool tryStreamed
51 );
52
53 MCNAPI ::nonstd::expected<::std::shared_ptr<::cg::ImageResource>, ::std::error_condition> loadImageWithoutExtension(
54 ::ResourceLocation const& resourceLocation,
55 bool tryStreamed,
56 ::std::optional<::mce::ImageFormat> desiredImageFormat,
57 bool splitAsArray
58 );
59
60 MCNAPI void setTextureCache(
61 ::std::shared_ptr<
63 textureCache
64 );
65#endif
66 // NOLINTEND
67};
68
69} // namespace mce
Definition ResourceLocation.h:15
Definition ImageResource.h:12
Definition TextureCache.h:8
Definition DragonTextureCacheContext.h:7
Definition Alias.h:14