LeviLamina
Loading...
Searching...
No Matches
ActorPortraitRenderer.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/legacy/ActorUniqueID.h"
8#include "mc/world/actor/SkinData.h"
9
10// auto generated forward declare list
11// clang-format off
12class IClientInstance;
13class Matrix;
15class Mob;
16class UIControl;
18class UIPropertyBag;
19// clang-format on
20
22public:
23 // ActorPortraitRenderer inner types declare
24 // clang-format off
25 struct Args;
26 // clang-format on
27
28 // ActorPortraitRenderer inner types define
29 enum class RotateMode : uchar {
30 None = 0,
31 Auto = 1,
32 };
33
34 struct Args {
35 public:
36 // member variables
37 // NOLINTBEGIN
38 ::ll::TypedStorage<4, 12, ::glm::vec3> mScale;
39 ::ll::TypedStorage<4, 12, ::glm::vec3> mRotate;
40 ::ll::TypedStorage<4, 12, ::glm::vec3> mTranslate;
41 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mActorId;
42 ::ll::TypedStorage<1, 1, bool> mUseLiveAnimation;
43 ::ll::TypedStorage<1, 1, ::ActorPortraitRenderer::RotateMode> mRotateMode;
44 ::ll::TypedStorage<4, 16, ::SkinData> mSkin;
45 // NOLINTEND
46
47 public:
48 // member functions
49 // NOLINTBEGIN
50 MCAPI void _extract(::UIPropertyBag const& bag);
51 // NOLINTEND
52 };
53
54public:
55 // member variables
56 // NOLINTBEGIN
57 ::ll::TypedStorage<4, 4, float> mElapsedTime;
58 // NOLINTEND
59
60public:
61 // virtual functions
62 // NOLINTBEGIN
63 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
64
65 virtual void
66 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int) /*override*/;
67
68 virtual ~ActorPortraitRenderer() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
74 MCAPI void _prependTransform(
75 ::Matrix& mat,
76 ::glm::vec2 const& ownerPos,
77 ::glm::vec2 const& ownerScale,
78 int ownerLayer,
79 float invScale,
80 ::ActorPortraitRenderer::Args const& args,
81 ::Mob const& mob
82 ) const;
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
89
90 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl& owner, int);
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCNAPI static void** $vftable();
97 // NOLINTEND
98};
Definition ActorPortraitRenderer.h:5
static MCAPI void ** $vftable()
Definition IClientInstance.h:5
Definition Matrix.h:10
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition Mob.h:51
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIPropertyBag.h:5
Definition ActorPortraitRenderer.h:15