LeviLamina
Loading...
Searching...
No Matches
BedrockTexture.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core_graphics/TextureSetLayerType.h"
7#include "mc/deps/minecraft_renderer/renderer/IsMissingTexture.h"
8
9// auto generated forward declare list
10// clang-format off
13namespace cg { class TextureSetDefinition; }
14namespace cg { class TextureSetImageContainer; }
15namespace cg { class TextureSetImageDescription; }
16namespace mce { class TextureContainer; }
17namespace mce { struct TextureDescription; }
18namespace mce { struct TextureResourceService; }
19// clang-format on
20
21class BedrockTexture {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BedrockTextureData>> mBedrockTextureData;
26 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BedrockTextureData>> mBedrockMERSTextureData;
27 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::BedrockTextureData>> mBedrockNormalTextureData;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 BedrockTexture(BedrockTexture const&);
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI BedrockTexture();
38
39 MCAPI ::std::optional<::ResourceLocationPair> const _getLayerLocation(
40 ::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition>> const textureSetDefinition,
41 ::cg::TextureSetLayerType layerType
42 );
43
44 MCAPI bool _loadFromImageBuffer(
45 ::cg::TextureSetImageContainer& imageContainer,
46 ::cg::TextureSetLayerType const textureType,
47 ::mce::TextureResourceService& textureResourceService,
48 ::cg::TextureSetImageDescription const& setDescription,
49 ::IsMissingTexture isMissing,
50 ::std::string_view debugName
51 ) const;
52
53 MCAPI ::cg::TextureSetImageDescription getTextureSetImageDescription() const;
54
55 MCAPI bool load(
56 ::mce::TextureResourceService& textureResourceService,
57 ::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition>> textureSetDefinition,
58 ::std::string_view debugName
59 );
60
61 MCAPI bool load(
62 ::mce::TextureResourceService& textureResourceService,
63 ::mce::TextureContainer&& textureContainer,
64 ::IsMissingTexture isMissingTexture,
65 ::std::string_view debugName,
66 ::cg::TextureSetLayerType textureType
67 );
68
69 MCAPI void loadMetadata(::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition>> textureSetDefinition);
70
71 MCAPI void loadMetadata(
72 ::mce::TextureDescription const& textureDescription,
73 ::std::optional<::IsMissingTexture> optIsMissingTexture
74 );
75
76 MCAPI void loadMetadata(
77 ::cg::TextureSetImageDescription const& textureSetImageDescription,
78 ::std::optional<::IsMissingTexture> optIsMissingTexture
79 );
80
81 MCAPI ::BedrockTexture& operator=(::BedrockTexture const& rhs);
82
83 MCAPI void unload();
84
85 MCAPI ~BedrockTexture();
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCAPI void* $ctor();
92 // NOLINTEND
93
94public:
95 // destructor thunk
96 // NOLINTBEGIN
97 MCAPI void $dtor();
98 // NOLINTEND
99};
Definition BedrockTexture.h:5
Definition ResourceLocationPair.h:9
Definition TextureSetDefinition.h:19
Definition TextureSetImageContainer.h:20
Definition TextureSetImageDescription.h:18
Definition TextureContainer.h:7
Definition BedrockTextureData.h:5
Definition TextureDescription.h:7
Definition TextureResourceService.h:7