LeviLamina
Loading...
Searching...
No Matches
EditorVolumeHighlightRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/application/AppPlatformListener.h"
8#include "mc/deps/core/math/Vec3.h"
9#include "mc/deps/game_refs/WeakRef.h"
10#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
11#include "mc/world/level/BlockChangedEventTarget.h"
12#include "mc/world/level/BlockSourceListener.h"
13#include "mc/world/level/Tick.h"
14
15// auto generated forward declare list
16// clang-format off
17class AABB;
18class Actor;
20class Block;
21class BlockPos;
22class BlockSource;
24class IClientInstance;
28class Tessellator;
29class UIControl;
32namespace ClientBlockPipeline { class TessellatorContext; }
33// clang-format on
34
38public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<1, 1, bool> mListenerInitialized;
42 ::ll::TypedStorage<8, 8, ::EditorVolumeHighlightRendererInstanceData*> mInstanceContext;
43 ::ll::TypedStorage<8, 8, ::Tick> mRenderTick;
44 ::ll::TypedStorage<4, 12, ::Vec3> mSortingCameraPos;
45 ::ll::TypedStorage<1, 1, bool> mResort;
46 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> mSelectedBlocksOverlayTex;
47 // NOLINTEND
48
49public:
50 // virtual functions
51 // NOLINTBEGIN
52 virtual ~EditorVolumeHighlightRenderer() /*override*/ = default;
53
54 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
55
56 virtual void
57 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl&, int) /*override*/;
58
59 virtual void onSourceDestroyed(::BlockSource& source) /*override*/;
60
61 virtual void onBlockChanged(
62 ::BlockSource& source,
63 ::BlockPos const& pos,
64 uint layer,
65 ::Block const& block,
66 ::Block const& oldBlock,
67 int updateFlags,
68 ::ActorBlockSyncMessage const* syncMsg,
69 ::BlockChangedEventTarget eventTarget,
70 ::Actor* blockChangeSource
71 ) /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
77 MCAPI ::std::vector<::BlockPos> _generateChunkStartPositions(::AABB const& area) const;
78
79 MCAPI ::RenderChunkInstanced& _getRenderChunkInstanced(::BlockPos const& chunkPos);
80
81 MCAPI void _initializeChunkBuilder(
82 ::ClientBlockPipeline::TessellatorContext& pipelineContext,
83 ::BlockSource& region,
84 ::Tessellator& tessellator,
85 ::WeakRef<::RenderChunkCoordinator> coordinator,
86 ::AABB const& area
87 );
88
89 MCAPI bool _renderBlockEntities(
90 ::BaseActorRenderContext& renderContext,
91 ::BlockSource& region,
92 ::AABB const& area,
93 ::Vec3 const& offset,
94 bool renderAlphaLayer
95 ) const;
96
97 MCAPI bool _renderBlocks(
98 ::BaseActorRenderContext& renderContext,
99 ::BlockSource& region,
100 ::AABB const& area,
101 ::Vec3 const& offset
102 );
103 // NOLINTEND
104
105public:
106 // virtual function thunks
107 // NOLINTBEGIN
108 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
109
110 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl&, int);
111
112 MCFOLD void $onSourceDestroyed(::BlockSource& source);
113
114 MCAPI void $onBlockChanged(
115 ::BlockSource& source,
116 ::BlockPos const& pos,
117 uint layer,
118 ::Block const& block,
119 ::Block const& oldBlock,
120 int updateFlags,
121 ::ActorBlockSyncMessage const* syncMsg,
122 ::BlockChangedEventTarget eventTarget,
123 ::Actor* blockChangeSource
124 );
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCNAPI static void** $vftableForAppPlatformListener();
131
132 MCNAPI static void** $vftableForBlockSourceListener();
133
135 // NOLINTEND
136};
Definition AABB.h:18
Definition Actor.h:106
Definition AppPlatformListener.h:15
Definition BaseActorRenderContext.h:5
Definition BlockPos.h:19
Definition BlockSourceListener.h:18
Definition BlockSource.h:71
Definition Block.h:43
Definition TessellatorContext.h:7
Definition EditorVolumeHighlightRendererInstanceData.h:5
Definition EditorVolumeHighlightRenderer.h:5
static MCAPI void ** $vftableForAppPlatformListener()
static MCAPI void ** $vftableForBlockSourceListener()
static MCAPI void ** $vftableForMinecraftUICustomRenderer()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition RenderChunkCoordinator.h:5
Definition RenderChunkInstanced.h:5
Definition Tessellator.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition ActorBlockSyncMessage.h:8