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 ScreenContext;
16class UIScene;
17class Vec2;
18namespace cg { class ImageBuffer; }
19namespace dragon { class ResolvedImageResource; }
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::UIScene>> mUIScene;
27 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::StructureVolumeRenderer>> mStructureVolumeRenderer;
28 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ScreenContext>> mScreenContext;
29 ::ll::TypedStorage<8, 24, ::mce::ClientResourcePointer<::dragon::ResolvedImageResource>> mTargetImage;
30 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ChunkSource>> mChunkSource;
31 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BlockSource>> mBlockSource;
32 ::ll::TypedStorage<8, 32, ::std::string> mLabel;
33 ::ll::TypedStorage<8, 8, uint64> mRenderCounter;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 EditorThumbnailRenderer();
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI explicit EditorThumbnailRenderer(::IClientInstance& clientInstance);
44
45 MCAPI void _initialize(::IClientInstance& clientInstance);
46
47 MCAPI void capture(
48 uint screenshotWidth,
49 uint screenshotHeight,
50 ::IClientInstance& clientInstance,
51 ::StructureTemplate const& structure,
52 ::std::function<void(::cg::ImageBuffer&&)> callback,
53 ::Vec2 rotation
54 );
55
56 MCAPI ~EditorThumbnailRenderer();
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCAPI void* $ctor(::IClientInstance& clientInstance);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCAPI void $dtor();
69 // NOLINTEND
70};
Definition BlockSource.h:71
Definition ChunkSource.h:36
Definition EditorThumbnailRenderer.h:5
Definition IClientInstance.h:5
Definition ScreenContext.h:5
Definition StructureTemplate.h:34
Definition StructureVolumeRenderer.h:5
Definition UIScene.h:5
Definition Vec2.h:5
Definition ImageBuffer.h:16
Definition ResolvedImageResource.h:7