3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/checked_resource_service/ClientResourcePointer.h"
7#include "mc/deps/core/math/Color.h"
8#include "mc/deps/core/math/Matrix.h"
9#include "mc/deps/core/resource/ResourceLocation.h"
10#include "mc/deps/core/string/HashedString.h"
11#include "mc/deps/core/utility/NonOwnerPointer.h"
12#include "mc/deps/minecraft_renderer/renderer/Mesh.h"
13#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
14#include "mc/deps/minecraft_renderer/resources/ServerTexture.h"
15#include "mc/world/phys/AABB.h"
41 ::ll::TypedStorage<4, 4, float> mScale;
42 ::ll::TypedStorage<8, 8, uint64> mTextureWidth;
43 ::ll::TypedStorage<8, 8, uint64> mTextureHeight;
44 ::ll::TypedStorage<8, 8, uint64> mThumbnailWidth;
45 ::ll::TypedStorage<8, 8, uint64> mThumbnailHeight;
46 ::ll::TypedStorage<4, 4, float> mTranslateX;
47 ::ll::TypedStorage<4, 4, float> mTranslateY;
48 ::ll::TypedStorage<8, 56, ::ResourceLocation> mServerResourceLocation;
49 ::ll::TypedStorage<8, 56, ::ResourceLocation> mAtlasResourceLocation;
50 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> mAtlasTexturePtr;
51 ::ll::TypedStorage<8, 8, uint64> mAtlasTexturePtrHash;
52 ::ll::TypedStorage<8, 32, ::std::string> mServerTextureName;
57 AtlasInfo& operator=(AtlasInfo
const&);
63 MCAPI AtlasInfo(::UIThumbnailAtlasRenderer::AtlasInfo
const&);
71 MCAPI
void* $ctor(::UIThumbnailAtlasRenderer::AtlasInfo
const&);
81 using SubstitutionMap = ::std::unordered_map<::HashedString, ::HashedString>;
86 ::ll::TypedStorage<8, 232, ::UIThumbnailAtlasRenderer::AtlasInfo> mAtlasInfo;
87 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
88 ::ll::TypedStorage<8, 24, ::mce::ServerTexture> mServerTexture;
89 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScreenContext>> mScreenContext;
90 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BaseActorRenderContext>> mRenderContext;
91 ::ll::TypedStorage<4, 24, ::AABB> mArea;
92 ::ll::TypedStorage<4, 64, ::Matrix> mWorldMatrix;
93 ::ll::TypedStorage<8, 616, ::mce::Mesh> mMesh;
94 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::mce::framebuilder::RenderUIMeshDescription>> mMeshDescription;
95 ::ll::TypedStorage<4, 16, ::mce::Color> mTint;
96 ::ll::TypedStorage<4, 20, ::std::optional<::glm::vec4>> mClipRegion;
97 ::ll::TypedStorage<8, 8, uint64> mMaxColumns;
98 ::ll::TypedStorage<8, 8, ::std::reference_wrapper<::std::unordered_map<::HashedString, ::HashedString>>>
100 ::ll::TypedStorage<8, 24, ::mce::ClientResourcePointer<::dragon::ResolvedImageResource>> mTargetImage;
105 UIThumbnailAtlasRenderer();
110 MCAPI UIThumbnailAtlasRenderer(
111 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance> client,
112 ::UIThumbnailAtlasRenderer::AtlasInfo atlasInfo,
113 ::std::unordered_map<::HashedString, ::HashedString>& substitutions
116 MCAPI
bool renderOffscreen(
117 ::OreUI::AtlasIndex& items,
118 ::TaskGroup& taskGroup,
119 ::std::function<
void(::cg::ImageBuffer&&)>&& callback,
121 ::UIThumbnailAtlasRenderer::AtlasInfo
const& atlasInfo
124 MCAPI ~UIThumbnailAtlasRenderer();
130 MCAPI
static int& mRenderCounter();
137 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance> client,
138 ::UIThumbnailAtlasRenderer::AtlasInfo atlasInfo,
139 ::std::unordered_map<::HashedString, ::HashedString>& substitutions
Definition BaseActorRenderContext.h:5
Definition IClientInstance.h:5
Definition ScreenContext.h:5
Definition TaskGroup.h:61
Definition UIThumbnailAtlasRenderer.h:5
Definition ImageBuffer.h:16
Definition ResolvedImageResource.h:7
Definition AtlasIndex.h:7
Definition UIThumbnailAtlasRenderer.h:13
Definition RenderUIMeshDescription.h:7