LeviLamina
Loading...
Searching...
No Matches
MinecraftInputRenderContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/FontHandle.h"
7#include "mc/client/gui/ScreenRenderer.h"
8#include "mc/deps/core/math/Color.h"
9#include "mc/deps/input/InputRenderContext.h"
10#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
11
12// auto generated forward declare list
13// clang-format off
14class RectangleArea;
15class ScreenContext;
16class Tessellator;
17namespace mce { class TextureGroup; }
18// clang-format on
19
21public:
22 // MinecraftInputRenderContext inner types declare
23 // clang-format off
24 struct TextItem;
25 // clang-format on
26
27 // MinecraftInputRenderContext inner types define
28 struct TextItem {};
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 16, ::mce::Color> mCurrentColor;
34 ::ll::TypedStorage<8, 80, ::FontHandle> mFontHandle;
35 ::ll::TypedStorage<8, 24, ::std::vector<::MinecraftInputRenderContext::TextItem>> mTextToDraw;
36 ::ll::TypedStorage<8, 8, ::ScreenContext&> mScreenContext;
37 ::ll::TypedStorage<8, 8, ::Tessellator&> mTessellator;
38 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> mTexture;
39 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::mce::TextureGroup>> mTextureGroup;
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ~MinecraftInputRenderContext() /*override*/;
52
53 virtual void setColor(::mce::Color const& color) /*override*/;
54
55 virtual void drawRect(
56 ::RectangleArea const& rect,
57 int u,
58 int v,
59 int uvWidth,
60 int uvHeight,
61 float uScale,
62 float vScale,
63 float px,
64 float py
65 ) const /*override*/;
66
67 virtual ::RectangleArea measureText(::glm::vec2 const& center, ::std::string const& text) const /*override*/;
68
69 virtual void drawText(::RectangleArea const& area, ::std::string const& text) /*override*/;
70
71 virtual void forceRender(::std::string const& texturePath) /*override*/;
72 // NOLINTEND
73
74public:
75 // member functions
76 // NOLINTBEGIN
78 ::ScreenContext& screenContext,
79 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
80 ::FontHandle fontHandle
81 );
82
83 MCAPI void render(::mce::TexturePtr overrideTexture);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
89 MCAPI void*
90 $ctor(::ScreenContext& screenContext, ::std::shared_ptr<::mce::TextureGroup> textureGroup, ::FontHandle fontHandle);
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCAPI void $dtor();
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCAPI void $setColor(::mce::Color const& color);
103
104 MCAPI void $drawRect(
105 ::RectangleArea const& rect,
106 int u,
107 int v,
108 int uvWidth,
109 int uvHeight,
110 float uScale,
111 float vScale,
112 float px,
113 float py
114 ) const;
115
116 MCAPI ::RectangleArea $measureText(::glm::vec2 const& center, ::std::string const& text) const;
117
118 MCAPI void $drawText(::RectangleArea const& area, ::std::string const& text);
119
120 MCAPI void $forceRender(::std::string const& texturePath);
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
Definition FontHandle.h:5
Definition InputRenderContext.h:5
Definition MinecraftInputRenderContext.h:5
static MCAPI void ** $vftable()
Definition ScreenContext.h:5
Definition ScreenRenderer.h:5
Definition Tessellator.h:5
Definition MinecraftInputRenderContext.h:28