LeviLamina
Loading...
Searching...
No Matches
TextureAtlas.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/renderer/texture/TextureAtlasStatus.h"
7#include "mc/deps/core/resource/ResourceLocation.h"
8#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
9#include "mc/deps/core/utility/NonOwnerPointer.h"
10#include "mc/deps/core_graphics/MipMapSupport.h"
11
12// auto generated forward declare list
13// clang-format off
16struct ParsedAtlasNode;
20namespace Json { class Value; }
21namespace cg { class ImageBuffer; }
22namespace cg { class TextureSetImageContainer; }
23namespace mce { class Color; }
24namespace mce { class TextureGroup; }
25namespace mce::framebuilder { struct PBRTextureDataManager; }
26// clang-format on
27
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::UntypedStorage<8, 16> mUnkbbafca;
33 ::ll::UntypedStorage<8, 240> mUnk8f9129;
34 ::ll::UntypedStorage<4, 4> mUnk3b8093;
35 ::ll::UntypedStorage<8, 16> mUnka9f112;
36 ::ll::UntypedStorage<8, 64> mUnkc7d641;
37 ::ll::UntypedStorage<8, 24> mUnk2c5284;
38 ::ll::UntypedStorage<8, 24> mUnk280263;
39 ::ll::UntypedStorage<8, 88> mUnk66caf1;
40 ::ll::UntypedStorage<8, 24> mUnk369842;
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
45 TextureAtlas& operator=(TextureAtlas const&);
46 TextureAtlas(TextureAtlas const&);
47 TextureAtlas();
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ~TextureAtlas() /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
59 ::ResourceLocation const& metaFile,
61 );
62
64 ::ResourcePackManager& resourcePackManager,
65 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
66 ::Json::Value const& texture,
67 ::ParsedAtlasNode& newNode,
68 int atIndex,
69 float mipFadeAmount,
70 ::mce::Color const& mipFadeColor,
71 bool isAdditive
72 );
73
74 MCNAPI ::TextureAtlasTile* _addTile(
75 ::std::vector<::TextureAtlasTile>& textureAtlasTiles,
76 bool quad,
77 float fadePerMipAmount,
79 );
80
81 MCNAPI ::TextureAtlasResourceCallbacks _createAtlas(
82 ::Json::Value const& root,
83 ::std::function<void(::TextureAtlasStatus const&)> statusCallback,
84 ::std::function<void()> imageAtlasFinishedCallback,
85 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
86 ::cg::MipMapSupport mipMapSupport,
87 ::ResourcePackManager& resourcePackManager,
88 ::std::shared_ptr<::cg::ImageBuffer> outCopyOfFinalImage,
89 ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>>
90 outCopyOfSourceImages
91 );
92
93 MCNAPI ::std::vector<::TextureAtlasTile> _generateAtlasTileList();
94
95 MCNAPI void _loadAtlasNodes(
96 ::ResourcePackManager& resourcePackManager,
97 ::Json::Value const& root,
98 ::std::vector<::ParsedAtlasNode>& atlasNodes,
99 ::std::shared_ptr<::mce::TextureGroup> textureGroup
100 );
101
102 MCNAPI void _loadRuntimeImageAtlasNodes(::std::vector<::ParsedAtlasNode>& atlasNodes);
103
104 MCNAPI bool _readNode(
105 ::ResourcePackManager& resourcePackManager,
106 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
107 ::Json::Value const& jsonNode,
108 ::ParsedAtlasNode& node,
109 bool isRefreshing
110 );
111
112 MCNAPI ::TextureAtlasResourceCallbacks createAtlasFromJson(
113 ::Json::Value const& json,
114 ::ResourcePackManager& resourcePackManager,
115 ::std::function<void(::TextureAtlasStatus const&)> statusCallback,
116 ::std::function<void()> imageAtlasFinishedCallback,
117 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
118 ::cg::MipMapSupport mipMapSupport,
119 ::std::shared_ptr<::cg::ImageBuffer> outCopyOfFinalImage,
120 ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>>
121 outCopyOfSourceImages
122 );
123
124 MCNAPI ::TextureAtlasResourceCallbacks createAtlasFromList(
125 ::std::string const& atlasName,
126 ::std::vector<::std::string> const& textures,
127 ::ResourcePackManager& resourcePackManager,
128 ::std::function<void(::TextureAtlasStatus const&)> statusCallback,
129 ::std::function<void()> imageAtlasFinishedCallback,
130 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
131 ::cg::MipMapSupport mipMapSupport,
132 ::std::shared_ptr<::cg::ImageBuffer> outCopyOfFinalImage,
133 ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>>
134 outCopyOfSourceImages
135 );
136
137 MCNAPI ::ResourceLocation const& getPathFromName(::std::string const& name) const;
138
139 MCNAPI ::TextureAtlasResourceCallbacks loadMetaFile(
140 ::ResourcePackManager& resourcePackManager,
141 ::std::function<void(::TextureAtlasStatus const&)> statusCallback,
142 ::std::function<void()> imageAtlasFinishedCallback,
143 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
144 ::cg::MipMapSupport mipMapSupport,
145 ::std::shared_ptr<::cg::ImageBuffer> outCopyOfFinalImage,
146 ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>>
147 outCopyOfSourceImages
148 );
149
150 MCNAPI ::TextureAtlasResourceCallbacks recreateAtlas(
151 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
152 ::std::function<void(::TextureAtlasStatus const&)> statusCallback,
153 ::std::function<void()> imageAtlasFinishedCallback,
154 ::cg::MipMapSupport mipMapSupport,
155 ::std::shared_ptr<::cg::ImageBuffer> outCopyOfFinalImage,
156 ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer>>
157 outCopyOfSourceImages
158 );
159 // NOLINTEND
160
161public:
162 // constructor thunks
163 // NOLINTBEGIN
164 MCNAPI void* $ctor(
165 ::ResourceLocation const& metaFile,
167 );
168 // NOLINTEND
169
170public:
171 // destructor thunk
172 // NOLINTBEGIN
173 MCNAPI void $dtor();
174 // NOLINTEND
175
176public:
177 // vftables
178 // NOLINTBEGIN
179 MCNAPI static void** $vftable();
180 // NOLINTEND
181};
Definition EnableNonOwnerReferences.h:7
Definition NonOwnerPointer.h:9
Definition Value.h:16
Definition ResourceLocation.h:15
Definition ResourcePackManager.h:29
Definition TextureAtlasTile.h:5
Definition TextureAtlas.h:5
MCAPI ::std::vector<::TextureAtlasTile > _generateAtlasTileList()
MCAPI void _loadAtlasNodes(::ResourcePackManager &resourcePackManager, ::Json::Value const &root, ::std::vector<::ParsedAtlasNode > &atlasNodes, ::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI void * $ctor(::ResourceLocation const &metaFile, ::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > pbrTextureDataManager)
MCAPI void _loadRuntimeImageAtlasNodes(::std::vector<::ParsedAtlasNode > &atlasNodes)
MCAPI bool _readNode(::ResourcePackManager &resourcePackManager, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::Json::Value const &jsonNode, ::ParsedAtlasNode &node, bool isRefreshing)
MCAPI void _addElementCollection(::ResourcePackManager &resourcePackManager, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::Json::Value const &texture, ::ParsedAtlasNode &newNode, int atIndex, float mipFadeAmount, ::mce::Color const &mipFadeColor, bool isAdditive)
MCAPI TextureAtlas(::ResourceLocation const &metaFile, ::Bedrock::NonOwnerPointer<::mce::framebuilder::PBRTextureDataManager > pbrTextureDataManager)
MCAPI::TextureAtlasResourceCallbacks recreateAtlas(::std::shared_ptr<::mce::TextureGroup > textureGroup, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::TextureAtlasResourceCallbacks createAtlasFromJson(::Json::Value const &json, ::ResourcePackManager &resourcePackManager, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::TextureAtlasTile * _addTile(::std::vector<::TextureAtlasTile > &textureAtlasTiles, bool quad, float fadePerMipAmount, ::ParsedAtlasNodeElement &element)
MCAPI::TextureAtlasResourceCallbacks loadMetaFile(::ResourcePackManager &resourcePackManager, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::TextureAtlasResourceCallbacks createAtlasFromList(::std::string const &atlasName, ::std::vector<::std::string > const &textures, ::ResourcePackManager &resourcePackManager, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
MCAPI::ResourceLocation const & getPathFromName(::std::string const &name) const
MCAPI void $dtor()
static MCAPI void ** $vftable()
MCAPI::TextureAtlasResourceCallbacks _createAtlas(::Json::Value const &root, ::std::function< void(::TextureAtlasStatus const &)> statusCallback, ::std::function< void()> imageAtlasFinishedCallback, ::std::shared_ptr<::mce::TextureGroup > textureGroup, ::cg::MipMapSupport mipMapSupport, ::ResourcePackManager &resourcePackManager, ::std::shared_ptr<::cg::ImageBuffer > outCopyOfFinalImage, ::std::shared_ptr<::std::unordered_map<::ResourceLocation, ::cg::TextureSetImageContainer > > outCopyOfSourceImages)
Definition ImageBuffer.h:16
Definition TextureSetImageContainer.h:20
Definition Color.h:13
Definition TextureGroup.h:7
Definition ParsedAtlasNodeElement.h:5
Definition ParsedAtlasNode.h:5
Definition RuntimeImageGeneratorInfo.h:5
Definition TextureAtlasResourceCallbacks.h:5
Definition PBRTextureDataManager.h:7