LeviLamina
Loading...
Searching...
No Matches
SignRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/model/models/SignModel.h"
7#include "mc/client/renderer/actor/ActorTextureInfo.h"
8#include "mc/client/renderer/blockactor/BlockActorRenderer.h"
9#include "mc/deps/minecraft_renderer/renderer/MaterialPtr.h"
10#include "mc/world/level/block/SignBlock.h"
11#include "mc/world/level/block/actor/SignTextSide.h"
12
13// auto generated forward declare list
14// clang-format off
16class Block;
17class BlockPos;
18class BlockSource;
20class Model;
21class ScreenContext;
23namespace mce { class TextureGroup; }
24namespace mce { struct ClientTexture; }
25namespace mce::framebuilder { struct CustomSurfaceShaderMetadata; }
26// clang-format on
27
29public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<8, 320, ::ActorTextureInfo> mSignTex;
33 ::ll::TypedStorage<8, 16, ::std::map<::SignBlock::SignType, ::ActorTextureInfo>> mTextureMap;
34 ::ll::TypedStorage<8, 1488, ::SignModel> mSignModel;
35 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mGlowSignTextMaterial;
36 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mSignTextMaterial;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 SignRenderer();
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 virtual void
47 render(::BaseActorRenderContext& renderContext, ::BlockActorRenderData& blockEntityRenderData) /*override*/;
48
49 virtual float _getScaleFactor() const;
50
51 virtual float _yTextOffset() const;
52
53 virtual float _zTextOffset() const;
54
55 virtual int _getSignWidth() const;
56
57 virtual ~SignRenderer() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI explicit SignRenderer(::std::shared_ptr<::mce::TextureGroup> textureGroup);
64
65 MCAPI void _renderSign(
66 ::BaseActorRenderContext& renderContext,
67 ::Block const& block,
68 float size,
69 int breakingAmount,
70 float frameAlpha,
71 ::ScreenContext& screenContext,
72 ::BlockSource& renderSource,
73 ::IVanillaRenderBlockActorComponent& renderComponent,
74 ::BlockPos const& worldPos,
75 ::mce::MaterialPtr const& forcedMat,
76 ::mce::ClientTexture forcedTex,
77 ::Model& model,
78 ::mce::framebuilder::CustomSurfaceShaderMetadata const& cssMetadata
79 );
80
81 MCAPI void _renderText(
82 ::BaseActorRenderContext& renderContext,
83 ::IVanillaRenderBlockActorComponent& renderComponent,
84 float size,
85 ::BlockSource const& renderSource,
86 ::SignTextSide side
87 );
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void* $ctor(::std::shared_ptr<::mce::TextureGroup> textureGroup);
94 // NOLINTEND
95
96public:
97 // destructor thunk
98 // NOLINTBEGIN
99 MCAPI void $dtor();
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI void $render(::BaseActorRenderContext& renderContext, ::BlockActorRenderData& blockEntityRenderData);
106
107 MCFOLD float $_getScaleFactor() const;
108
109 MCFOLD float $_yTextOffset() const;
110
111 MCAPI float $_zTextOffset() const;
112
113 MCFOLD int $_getSignWidth() const;
114 // NOLINTEND
115
116public:
117 // vftables
118 // NOLINTBEGIN
119 MCNAPI static void** $vftable();
120 // NOLINTEND
121};
Definition BaseActorRenderContext.h:5
Definition BlockActorRenderer.h:5
Definition BlockPos.h:17
Definition BlockSource.h:71
Definition Block.h:41
Definition IVanillaRenderBlockActorComponent.h:19
Definition Model.h:5
Definition ScreenContext.h:5
Definition SignRenderer.h:5
static MCAPI void ** $vftable()
Definition TextureGroup.h:7
Definition BlockActorRenderData.h:5
Definition ClientTexture.h:7
Definition CustomSurfaceShaderMetadata.h:7