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
9class GridComponent;
10class SpriteComponent;
11class TextComponent;
12class UIControl;
13class UIRenderContext;
15struct BatchVisualState;
18struct TextureState;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::RenderControlMetadata>> mRenderControls;
26 ::ll::TypedStorage<8, 24, ::std::vector<::ComponentRenderBatch>> mRenderBatches;
27 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint64, ::TextureState>> mTextureStates;
28 // NOLINTEND
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCAPI bool _addRenderControl(
34 ::UIControl& control,
35 ::BatchClippingState const& batchClippingState,
36 ::BatchVisualState const& batchVisualState,
37 ::ClippedControlMetadata& clippedControlData,
38 bool hasRenderableComponent
39 );
40
41 MCAPI void _addToRenderBatch(
42 int depth,
43 ::SpriteComponent* const sprite,
44 ::BatchClippingState const& batchClippingState,
45 ::BatchVisualState const& batchVisualState
46 );
47
48 MCAPI void _addToRenderBatch(
49 int depth,
50 ::TextComponent* const text,
51 ::BatchClippingState const& batchClippingState,
52 ::BatchVisualState const& batchVisualState
53 );
54
55 MCAPI void _addToRenderBatch(
56 ::UIRenderContext& renderContext,
57 int depth,
58 ::CustomRenderComponent* const customRender,
59 ::BatchClippingState const& batchClippingState,
60 ::BatchVisualState const& batchVisualState
61 );
62
63 MCAPI void _populateRenderBatch(::UIRenderContext& renderContext);
64
65 MCAPI bool _populateRenderControlsCollection(
66 ::UIControl& control,
67 ::BatchClippingState const& batchClippingState,
68 ::BatchClippingState const& unclippedBatchClippingState,
69 ::BatchVisualState const& batchVisualState,
70 ::ClippedControlMetadata& clippedControlData,
71 bool checkIfRendered
72 );
73
74 MCAPI void _populateRenderControlsGrid(
75 ::UIControl& control,
76 ::GridComponent& gridComponent,
77 ::BatchClippingState const& childBatchClippingState,
78 ::BatchClippingState const& unclippedBatchClippingState,
79 ::BatchVisualState const& childBatchVisualState,
80 ::ClippedControlMetadata& clippedControlData
81 );
82
83 MCAPI void _sortRenderControlsCollection();
84
85 MCAPI void _storeTextureState(::UIControl& control, bool state);
86
87 MCAPI ~ScreenRenderBatch();
88 // NOLINTEND
89
90public:
91 // static variables
92 // NOLINTBEGIN
93 MCAPI static ::std::unordered_map<::std::string, ::std::pair<int, int>>& GRID_DIMENSIONS();
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCAPI void $dtor();
100 // NOLINTEND
101};
Definition ComponentRenderBatch.h:5
Definition CustomRenderComponent.h:5
Definition GridComponent.h:5
Definition ScreenRenderBatch.h:5
Definition SpriteComponent.h:5
Definition TextComponent.h:5
Definition UIControl.h:5
Definition UIRenderContext.h:5
Definition BatchClippingState.h:5
Definition BatchVisualState.h:5
Definition ClippedControlMetadata.h:5
Definition RenderControlMetadata.h:5
Definition TextureState.h:5