LeviLamina
Loading...
Searching...
No Matches
EditorThumbnailRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/checked_resource_service/ClientResourcePointer.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockSource;
11class ChunkSource;
12class IClientInstance;
13class LocalPlayer;
14class ScreenContext;
18class UIScene;
19class Vec2;
20namespace cg { class ImageBuffer; }
21namespace dragon { class ResolvedImageResource; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIScene>> mUIScene;
29 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::StructureVolumeRenderer>> mStructureVolumeRenderer;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScreenContext>> mScreenContext;
31 ::ll::TypedStorage<8, 24, ::mce::ClientResourcePointer<::dragon::ResolvedImageResource>> mTargetImage;
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ChunkSource>> mChunkSource;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockSource>> mBlockSource;
34 ::ll::TypedStorage<8, 32, ::std::string> mLabel;
35 ::ll::TypedStorage<8, 8, uint64> mRenderCounter;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 EditorThumbnailRenderer();
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI explicit EditorThumbnailRenderer(::IClientInstance& clientInstance);
46
47 MCAPI void _buildBlockAndChunkSources(
48 ::LocalPlayer* player,
49 ::StructureTemplate const& structure,
50 ::StructureSettings& structureSettings
51 );
52
53 MCAPI void capture(
54 uint screenshotWidth,
55 uint screenshotHeight,
56 ::IClientInstance& clientInstance,
57 ::StructureTemplate const& structure,
58 ::std::function<void(::cg::ImageBuffer&&)> callback,
59 ::Vec2 rotation
60 );
61
62 MCAPI ~EditorThumbnailRenderer();
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(::IClientInstance& clientInstance);
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCAPI void $dtor();
75 // NOLINTEND
76};
Definition BlockSource.h:71
Definition ChunkSource.h:38
Definition EditorThumbnailRenderer.h:5
Definition IClientInstance.h:5
Definition LocalPlayer.h:5
Definition ScreenContext.h:5
Definition StructureSettings.h:18
Definition StructureTemplate.h:35
Definition StructureVolumeRenderer.h:5
Definition UIScene.h:5
Definition Vec2.h:5
Definition ImageBuffer.h:16
Definition ResolvedImageResource.h:7