LeviLamina
Loading...
Searching...
No Matches
TextureSetDefinitionLoader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
9namespace cg { class CompressedImageBuffer; }
10namespace mce { struct Image; }
11// clang-format on
12
13namespace TextureSetHelpers {
14
16public:
17 // TextureSetDefinitionLoader inner types declare
18 // clang-format off
19 class ResourceHelper;
20 // clang-format on
21
22 // TextureSetDefinitionLoader inner types define
23 enum class LoadMode : int {
24 ExplicitDefinitionOnly = 0,
25 ImageDescription = 1,
26 AllLayers = 2,
27 };
28
29 enum class ColorPipeline : int {
30 Classic = 0,
31 Pbr = 1,
32 };
33
35 public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 0
39 virtual ~ResourceHelper() = default;
40
41 // vIndex: 1
42 virtual ::ResourceLocation getBackCompatResourceLocation(::ResourceLocation const&) const;
43
44 // vIndex: 2
45 virtual ::std::optional<uint> getPackStackIndexOfNoExtensionOrImage(::ResourceLocation const&) const;
46
47 // vIndex: 3
48 virtual ::std::optional<uint> getPackStackIndexOfTextureSet(::ResourceLocation const&) const;
49
50 // vIndex: 4
51 virtual bool
52 loadResourceOfExtensions(::ResourceLocationPair const&, ::std::string&, ::gsl::span<::std::string const>) const;
53
54 // vIndex: 5
55 virtual bool loadResource(::ResourceLocation const&, ::std::string&) const;
56
57 // vIndex: 6
58 virtual bool loadImageFromMemory(::mce::Image&, ::std::string const&) const;
59
60 // vIndex: 7
61 virtual bool loadCompressedImageFromMemory(::cg::CompressedImageBuffer&, ::std::string const&) const;
62 // NOLINTEND
63
64 public:
65 // virtual function thunks
66 // NOLINTBEGIN
67
68 // NOLINTEND
69 };
70
71 enum class LoadImageLayerResult : int {
72 Ok = 0,
73 NoFile = 1,
74 NoLayer = 2,
75 ErrorLoading = 3,
76 };
77};
78
79} // namespace TextureSetHelpers
Definition ResourceLocationPair.h:5
Definition ResourceLocation.h:14
Definition TextureSetDefinitionLoader.h:34
Definition TextureSetDefinitionLoader.h:15
Definition CompressedImageBuffer.h:7
Definition Image.h:12