LeviLamina
Loading...
Searching...
No Matches
HudCameraRenderer.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/minecraft_renderer/renderer/MaterialPtr.h"
8#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
9#include "mc/world/item/components/CameraCallbacks.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class IClientInstance;
16class Player;
18class ScreenContext;
19class UIControl;
21class UIScene;
22// clang-format on
23
25public:
26 // HudCameraRenderer inner types define
27 enum class State : int {
28 None = 0,
29 ShowBlackBars = 1,
30 ShowShutter = 2,
31 ShowPicture = 3,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<4, 4, ::HudCameraRenderer::State> mState;
38 ::ll::TypedStorage<4, 4, float> mShowTime;
39 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> mPhotoTexture;
40 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mColorMaterial;
41 ::ll::TypedStorage<8, 16, ::mce::MaterialPtr> mTexMaterial;
42 ::ll::TypedStorage<1, 1, bool> mImmediatePicture;
43 // NOLINTEND
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~HudCameraRenderer() /*override*/;
49
50 virtual ::std::shared_ptr<::UICustomRenderer> clone() const /*override*/;
51
52 virtual void
53 render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl&, int) /*override*/;
54
55 virtual bool update(::IClientInstance& client, ::UIControl&, ::UIScene const&) /*override*/;
56
57 virtual void onTakePictureNow(::Player& player, ::Actor* camera, ::Actor* target) /*override*/;
58
59 virtual void onStartTakingPicture(::Player& player) /*override*/;
60
61 virtual void onEndTakingPicture(::Player& player, ::Actor* camera, ::Actor* target) /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI HudCameraRenderer();
68
69 MCAPI void
70 _drawBlackBars(::ScreenContext& screenContext, float barToScreenRatio, int screenWidth, int screenHeight);
71
72 MCAPI void
73 _drawPicture(::ScreenContext& screenContext, float slideOffScreenRatio, int screenWidth, int screenHeight);
74
75 MCAPI ::ResourceLocation _getOverlayResourceLocation() const;
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void* $ctor();
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCAPI void $dtor();
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCAPI ::std::shared_ptr<::UICustomRenderer> $clone() const;
94
95 MCAPI void $render(::MinecraftUIRenderContext& renderContext, ::IClientInstance& client, ::UIControl&, int);
96
97 MCAPI bool $update(::IClientInstance& client, ::UIControl&, ::UIScene const&);
98
99 MCAPI void $onTakePictureNow(::Player& player, ::Actor* camera, ::Actor* target);
100
101 MCAPI void $onStartTakingPicture(::Player& player);
102
103 MCAPI void $onEndTakingPicture(::Player& player, ::Actor* camera, ::Actor* target);
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
110
111 MCNAPI static void** $vftableForCameraCallbacks();
112 // NOLINTEND
113};
Definition Actor.h:106
Definition CameraCallbacks.h:11
Definition HudCameraRenderer.h:5
static MCAPI void ** $vftableForCameraCallbacks()
static MCAPI void ** $vftableForMinecraftUICustomRenderer()
Definition IClientInstance.h:5
Definition MinecraftUICustomRenderer.h:5
Definition MinecraftUIRenderContext.h:5
Definition Player.h:129
Definition ResourceLocation.h:15
Definition ScreenContext.h:5
Definition UIControl.h:5
Definition UICustomRenderer.h:5
Definition UIScene.h:5