LeviLamina
Loading...
Searching...
No Matches
HudLocatorBarRenderer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/renderers/MinecraftUICustomRenderer.h"
7#include "mc/deps/core/math/Color.h"
8#include "mc/deps/core/math/Vec2.h"
9#include "mc/deps/core/math/Vec3.h"
10#include "mc/deps/minecraft_renderer/renderer/Mesh.h"
11#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
12
13// auto generated forward declare list
14// clang-format off
15class IClientInstance;
17class NinePatchLayer;
18class ScreenContext;
19class UIControl;
21class UIScene;
22namespace mce { class TextureGroup; }
23// clang-format on
24
26public:
27 // HudLocatorBarRenderer inner types declare
28 // clang-format off
30 struct PlayerData;
31 // clang-format on
32
33 // HudLocatorBarRenderer inner types define
34 struct ActorUniqueIDCompare {};
35
36 struct PlayerData {
37 public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<4, 12, ::Vec3> mLocation;
41 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
42 // NOLINTEND
43 };
44
45public:
46 // member variables
47 // NOLINTBEGIN
48 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::NinePatchLayer>> mBackgroundTexture;
49 ::ll::TypedStorage<1, 1, bool> mHasLoadedIconTextures;
50 ::ll::TypedStorage<8, 192, ::std::array<::mce::TexturePtr, 6>> mTextures;
51 ::ll::TypedStorage<8, 3168, ::std::array<::mce::Mesh, 6>> mMeshes;
52 ::ll::TypedStorage<4, 8, ::Vec2> mBackgroundSize;
53 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mLastRenderCall;
54 // NOLINTEND
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual ~HudLocatorBarRenderer() /*override*/ = default;
60
61 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
62
63 virtual void
64 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int) /*override*/;
65
66 virtual bool update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&) /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI void _loadIconTextures(::std::shared_ptr<::mce::TextureGroup> textureGroup);
73
74 MCAPI bool _validateIconMeshes(::ScreenContext& screenContext, float barHeight);
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
81
82 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int);
83
84 MCAPI bool $update(::IClientInstance& client, ::UIControl& owner, ::UIScene const&);
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCNAPI static void** $vftable();
91 // NOLINTEND
92};
Definition HudLocatorBarRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition NinePatchLayer.h:5
Definition ScreenContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIScene.h:5
Definition TextureGroup.h:7
Definition HudLocatorBarRenderer.h:14
Definition HudLocatorBarRenderer.h:16