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 // destructor thunk
66 // NOLINTBEGIN
67
68 // NOLINTEND
69
70 public:
71 // virtual function thunks
72 // NOLINTBEGIN
73
74 // NOLINTEND
75 };
76
77 enum class LoadImageLayerResult : int {
78 Ok = 0,
79 NoFile = 1,
80 NoLayer = 2,
81 ErrorLoading = 3,
82 };
83};
84
85} // namespace TextureSetHelpers
Definition ResourceLocationPair.h:5
Definition ResourceLocation.h:15
Definition TextureSetDefinitionLoader.h:34
Definition TextureSetDefinitionLoader.h:15
Definition CompressedImageBuffer.h:7
Definition Image.h:16