LeviLamina
Loading...
Searching...
No Matches
MeshContext.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#include "mc/external/render_dragon/resources/ServerResourcePointer.h"
8
9// auto generated forward declare list
10// clang-format off
11class ShaderColor;
12namespace mce { class Camera; }
13namespace mce { class GlobalConstantBufferManager; }
14namespace mce { class GlobalConstantBuffers; }
15namespace mce { class ImmediateBuffer; }
16namespace mce { class QuadIndexBuffer; }
17namespace mce { class RenderContext; }
18namespace mce { struct BufferResourceService; }
19// clang-format on
20
21namespace mce {
22
23class MeshContext {
24public:
25 // MeshContext inner types define
26 using SubClientId = uchar;
27
28public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 8, ::mce::RenderContext&> renderContext;
32 ::ll::TypedStorage<8, 8, ::mce::Camera&> camera;
33 ::ll::TypedStorage<8, 8, ::mce::GlobalConstantBuffers&> constantBuffers;
34 ::ll::TypedStorage<8, 8, ::mce::GlobalConstantBufferManager&> constantBufferManager;
35 ::ll::TypedStorage<8, 8, ::ShaderColor&> currentShaderColor;
36 ::ll::TypedStorage<8, 8, ::ShaderColor&> currentShaderDarkColor;
37 ::ll::TypedStorage<8, 8, ::mce::BufferResourceService&> bufferResourceService;
38 ::ll::TypedStorage<8, 8, ::mce::QuadIndexBuffer&> currentQuadIndexBuffer;
39 ::ll::TypedStorage<8, 24, ::mce::ServerResourcePointer<::mce::ImmediateBuffer>> immediateBuffer;
40 ::ll::TypedStorage<4, 20, ::std::optional<::glm::vec4>> normalizedClipRegion;
41 ::ll::TypedStorage<1, 1, uchar> subClientId;
42 ::ll::TypedStorage<1, 1, bool> isDrawingUI;
43 ::ll::TypedStorage<1, 1, bool> isDrawingFirstPersonObjects;
44 ::ll::TypedStorage<1, 1, bool> isDrawingEnvironmentalText;
45 ::ll::TypedStorage<1, 1, bool> isDrawingPersistentUIElement;
46 ::ll::TypedStorage<1, 1, bool> isDoingFrameCapture;
47 ::ll::TypedStorage<1, 1, bool> isDrawingEditorSelectionHighlight;
48 ::ll::TypedStorage<1, 1, bool> isDrawingMovingBlock;
49 ::ll::TypedStorage<1, 1, bool> isDitheringEnabled;
50 ::ll::TypedStorage<1, 1, bool> isAlphaMaskedTintEnabled;
51 // NOLINTEND
52
53public:
54 // prevent constructor by default
55 MeshContext& operator=(MeshContext const&);
56 MeshContext(MeshContext const&);
57 MeshContext();
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI MeshContext(
63 ::mce::RenderContext& renderContext,
64 uchar const& subClientId,
65 ::mce::Camera& camera,
66 ::mce::GlobalConstantBuffers& globalConstantBuffers,
67 ::mce::GlobalConstantBufferManager& globalConstantBufferManager,
68 ::ShaderColor& currentShaderColor,
69 ::ShaderColor& currentShaderDarkColor,
70 ::mce::BufferResourceService& bufferResourceService,
71 ::mce::QuadIndexBuffer& currentQuadIndexBuffer,
72 ::mce::ClientResourcePointer<::mce::ImmediateBuffer>& immediateBuffer
73 );
74
75 MCAPI ~MeshContext();
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void* $ctor(
82 ::mce::RenderContext& renderContext,
83 uchar const& subClientId,
84 ::mce::Camera& camera,
85 ::mce::GlobalConstantBuffers& globalConstantBuffers,
86 ::mce::GlobalConstantBufferManager& globalConstantBufferManager,
87 ::ShaderColor& currentShaderColor,
88 ::ShaderColor& currentShaderDarkColor,
89 ::mce::BufferResourceService& bufferResourceService,
90 ::mce::QuadIndexBuffer& currentQuadIndexBuffer,
91 ::mce::ClientResourcePointer<::mce::ImmediateBuffer>& immediateBuffer
92 );
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCFOLD void $dtor();
99 // NOLINTEND
100};
101
102} // namespace mce
Definition ShaderColor.h:5
Definition Camera.h:7
Definition GlobalConstantBufferManager.h:7
Definition GlobalConstantBuffers.h:7
Definition ImmediateBuffer.h:7
Definition MeshContext.h:7
Definition QuadIndexBuffer.h:7
Definition RenderContext.h:7
Definition BufferResourceService.h:7