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
7
class
ResourceLocation
;
8
class
ResourceLocationPair
;
9
namespace
cg {
class
CompressedImageBuffer; }
10
namespace
mce {
struct
Image; }
11
// clang-format on
12
13
namespace
TextureSetHelpers {
14
15
class
TextureSetDefinitionLoader
{
16
public
:
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
34
class
ResourceHelper
{
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
ResourceLocationPair
Definition
ResourceLocationPair.h:5
ResourceLocation
Definition
ResourceLocation.h:15
TextureSetHelpers::TextureSetDefinitionLoader::ResourceHelper
Definition
TextureSetDefinitionLoader.h:34
TextureSetHelpers::TextureSetDefinitionLoader
Definition
TextureSetDefinitionLoader.h:15
cg::CompressedImageBuffer
Definition
CompressedImageBuffer.h:7
mce::Image
Definition
Image.h:16
src
mc
util
texture_set_helpers
TextureSetDefinitionLoader.h
Generated on Sat Apr 26 2025 05:56:00 for LeviLamina by
1.12.0