LeviLamina
Loading...
Searching...
No Matches
ScreenRenderBatch.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class UIControl;
11struct BatchKey;
12struct BatchVisualState;
15struct GridComponent;
17struct TextureState;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<8, 24, ::std::vector<::RenderControlMetadata>> mRenderControls;
25 ::ll::TypedStorage<8, 24, ::std::vector<::ComponentRenderBatch>> mRenderBatches;
26 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::TextureState>> mTextureStates;
27 // NOLINTEND
28
29public:
30 // member functions
31 // NOLINTBEGIN
32 MCAPI bool _addRenderControl(
33 ::UIControl& control,
34 ::BatchClippingState const& batchClippingState,
35 ::BatchVisualState const& batchVisualState,
36 ::ClippedControlMetadata& clippedControlData,
37 bool hasRenderableComponent
38 );
39
40 MCAPI void _addToRenderBatch(
41 ::UIRenderContext& renderContext,
42 int depth,
43 ::CustomRenderComponent* const customRender,
44 ::BatchClippingState const& batchClippingState,
45 ::BatchVisualState const& batchVisualState
46 );
47
48 MCAPI ::ComponentRenderBatch& _findOrAddRenderBatch(::BatchKey&& batchKey);
49
50 MCAPI void _populateRenderBatch(::UIRenderContext& renderContext);
51
52 MCAPI bool _populateRenderControlsCollection(
53 ::UIControl& control,
54 ::BatchClippingState const& batchClippingState,
55 ::BatchClippingState const& unclippedBatchClippingState,
56 ::BatchVisualState const& batchVisualState,
57 ::ClippedControlMetadata& clippedControlData,
58 bool checkIfRendered
59 );
60
61 MCAPI void _populateRenderControlsGrid(
62 ::UIControl& control,
63 ::GridComponent& gridComponent,
64 ::BatchClippingState const& childBatchClippingState,
65 ::BatchClippingState const& unclippedBatchClippingState,
66 ::BatchVisualState const& childBatchVisualState,
67 ::ClippedControlMetadata& clippedControlData
68 );
69
70 MCAPI void _storeTextureState(::UIControl& control, bool state);
71 // NOLINTEND
72
73public:
74 // static variables
75 // NOLINTBEGIN
76 MCAPI static ::std::unordered_map<::std::string, ::std::pair<int, int>>& GRID_DIMENSIONS();
77 // NOLINTEND
78};
Definition ComponentRenderBatch.h:5
Definition ScreenRenderBatch.h:5
Definition UIControl.h:5
Definition UIRenderContext.h:5
Definition BatchClippingState.h:5
Definition BatchKey.h:5
Definition BatchVisualState.h:5
Definition ClippedControlMetadata.h:5
Definition CustomRenderComponent.h:5
Definition GridComponent.h:5
Definition RenderControlMetadata.h:5
Definition TextureState.h:5