Skip to content
LeviMC
English
AutoLightDark
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 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI explicit SignRenderer(::std::shared_ptr<::mce::TextureGroup> textureGroup);
62
63 MCNAPI void _renderSign(
64 ::BaseActorRenderContext& renderContext,
65 ::Block const& block,
66 float const size,
67 int const breakingAmount,
68 float const frameAlpha,
69 ::ScreenContext& screenContext,
70 ::BlockSource& renderSource,
72 ::BlockPos const& worldPos,
73 ::mce::MaterialPtr const& forcedMat,
74 ::mce::ClientTexture const& forcedTex,
75 ::Model& model,
77 );
78
79 MCNAPI void _renderText(
80 ::BaseActorRenderContext& renderContext,
82 float size,
83 ::BlockSource const& renderSource,
84 ::SignTextSide side
85 );
86 // NOLINTEND
87
88public:
89 // constructor thunks
90 // NOLINTBEGIN
91 MCAPI void* $ctor(::std::shared_ptr<::mce::TextureGroup> textureGroup);
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI void $render(::BaseActorRenderContext& renderContext, ::BlockActorRenderData& blockEntityRenderData);
98
99 MCFOLD float $_getScaleFactor() const;
100
101 MCFOLD float $_yTextOffset() const;
102
103 MCAPI float $_zTextOffset() const;
104
105 MCFOLD int $_getSignWidth() const;
106 // NOLINTEND
107};
Definition BaseActorRenderContext.h:5
MCAPI void * $ctor()
Definition BlockActorRenderer.h:5
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition IVanillaRenderBlockActorComponent.h:19
Definition Model.h:5
Definition ScreenContext.h:5
Definition SignRenderer.h:5
MCAPI void _renderSign(::BaseActorRenderContext &renderContext, ::Block const &block, float const size, int const breakingAmount, float const frameAlpha, ::ScreenContext &screenContext, ::BlockSource &renderSource, ::IVanillaRenderBlockActorComponent &renderComponent, ::BlockPos const &worldPos, ::mce::MaterialPtr const &forcedMat, ::mce::ClientTexture const &forcedTex, ::Model &model, ::mce::framebuilder::CustomSurfaceShaderMetadata const &cssMetadata)
MCAPI void _renderText(::BaseActorRenderContext &renderContext, ::IVanillaRenderBlockActorComponent &renderComponent, float size, ::BlockSource const &renderSource, ::SignTextSide side)
Definition MaterialPtr.h:14
Definition TextureGroup.h:7
Definition BlockActorRenderData.h:5
Definition ClientTexture.h:7
Definition CustomSurfaceShaderMetadata.h:7