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
11class ResourceLocationPair;
13namespace cg { class TextureSetDefinition; }
14namespace cg { class TextureSetImageContainer; }
15namespace cg { class TextureSetImageDescription; }
16namespace mce { class TextureContainer; }
17namespace mce { struct ClientTexture; }
18namespace mce { struct TextureDescription; }
19namespace mce { struct TextureResourceService; }
20// clang-format on
21
22class BedrockTexture {
23public:
24 // member variables
25 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI ::std::optional<::ResourceLocationPair> const _getLayerLocation(
40 ::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition>> textureSetDefinition,
41 ::cg::TextureSetLayerType layerType
42 );
43
45 ::cg::TextureSetImageContainer& imageContainer,
46 ::cg::TextureSetLayerType textureType,
47 ::mce::TextureResourceService& textureResourceService,
48 ::cg::TextureSetImageDescription const& setDescription,
49 ::IsMissingTexture isMissing,
50 ::std::string_view debugName
51 ) const;
52
53 MCNAPI ::mce::ClientTexture const& getClientHandle(::cg::TextureSetLayerType textureType) const;
54
55 MCNAPI ::std::shared_ptr<::BedrockTextureData const> const
56 getSharedBedrockTextureData(::cg::TextureSetLayerType textureType) const;
57
58 MCNAPI bool load(
59 ::mce::TextureResourceService& textureResourceService,
60 ::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition>> textureSetDefinition,
61 ::std::string_view debugName
62 );
63
64 MCNAPI bool load(
65 ::mce::TextureResourceService& textureResourceService,
66 ::mce::TextureContainer&& textureContainer,
67 ::IsMissingTexture isMissingTexture,
68 ::std::string_view debugName,
69 ::cg::TextureSetLayerType textureType
70 );
71
72 MCNAPI void loadMetadata(::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition>> textureSetDefinition);
73
74 MCNAPI void loadMetadata(
75 ::mce::TextureDescription const& textureDescription,
76 ::std::optional<::IsMissingTexture> optIsMissingTexture
77 );
78
79 MCNAPI ::BedrockTexture& operator=(::BedrockTexture const& rhs);
80
81 MCNAPI void unload();
82
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91};
Definition BedrockTexture.h:5
MCAPI void loadMetadata(::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition > > textureSetDefinition)
MCAPI ::std::optional<::ResourceLocationPair > const _getLayerLocation(::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition > > textureSetDefinition, ::cg::TextureSetLayerType layerType)
MCAPI::mce::ClientTexture const & getClientHandle(::cg::TextureSetLayerType textureType) const
MCAPI bool _loadFromImageBuffer(::cg::TextureSetImageContainer &imageContainer, ::cg::TextureSetLayerType textureType, ::mce::TextureResourceService &textureResourceService, ::cg::TextureSetImageDescription const &setDescription, ::IsMissingTexture isMissing, ::std::string_view debugName) const
MCAPI void loadMetadata(::mce::TextureDescription const &textureDescription, ::std::optional<::IsMissingTexture > optIsMissingTexture)
MCAPI void $dtor()
MCAPI ::std::shared_ptr<::BedrockTextureData const > const getSharedBedrockTextureData(::cg::TextureSetLayerType textureType) const
MCAPI bool load(::mce::TextureResourceService &textureResourceService, ::gsl::not_null<::std::shared_ptr<::cg::TextureSetDefinition > > textureSetDefinition, ::std::string_view debugName)
MCAPI bool load(::mce::TextureResourceService &textureResourceService, ::mce::TextureContainer &&textureContainer, ::IsMissingTexture isMissingTexture, ::std::string_view debugName, ::cg::TextureSetLayerType textureType)
MCAPI void unload()
MCAPI::BedrockTexture & operator=(::BedrockTexture const &rhs)
MCAPI ~BedrockTexture()
Definition TextureContainer.h:17
Definition BedrockTextureData.h:5
Definition Alias.h:14
Definition TextureDescription.h:10
Definition TextureResourceService.h:20