Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
DollRenderContextImpl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/controls/renderers/PaperDollBaseActorRenderContext.h"
7#include "mc/client/gui/geometry_atlas/IPaperDollRenderContext.h"
8#include "mc/client/gui/geometry_atlas/Rect.h"
9
10// auto generated forward declare list
11// clang-format off
17// clang-format on
18
19namespace GeometryAtlas {
20
21class DollRenderContextImpl : public ::GeometryAtlas::details::IPaperDollRenderContext {
22public:
23 // DollRenderContextImpl inner types declare
24 // clang-format off
25 struct RenderContext;
26 // clang-format on
27
28 // DollRenderContextImpl inner types define
29 struct RenderContext : public ::PaperDollBaseActorRenderContext {
30 public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 16, ::GeometryAtlas::Rect> mGuiBounds;
34 ::ll::TypedStorage<4, 16, ::GeometryAtlas::Rect> mProjectionBounds;
35 // NOLINTEND
36
37 public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual float getLegacyGuiOffsetY(float screenScale) /*override*/;
41
42 virtual ::glm::vec2 getMouseMove(::glm::vec2 const& ownerPos) /*override*/;
43 // NOLINTEND
44
45 public:
46 // virtual function thunks
47 // NOLINTBEGIN
48 MCNAPI float $getLegacyGuiOffsetY(float screenScale);
49
50 MCNAPI ::glm::vec2 $getMouseMove(::glm::vec2 const& ownerPos);
51 // NOLINTEND
52 };
53
54public:
55 // member variables
56 // NOLINTBEGIN
57 ::ll::TypedStorage<8, 8, ::PaperDollRenderer&> mRenderer;
58 ::ll::TypedStorage<8, 8, ::BaseActorRenderContext&> mContext;
59 ::ll::TypedStorage<4, 16, ::GeometryAtlas::Rect> mScreenBounds;
60 ::ll::TypedStorage<4, 16, ::GeometryAtlas::Rect> mProjectionBounds;
61 // NOLINTEND
62
63public:
64 // prevent constructor by default
65 DollRenderContextImpl& operator=(DollRenderContextImpl const&);
66 DollRenderContextImpl(DollRenderContextImpl const&);
67 DollRenderContextImpl();
68
69public:
70 // virtual functions
71 // NOLINTBEGIN
72 virtual void update(::PaperDollUpdateOwnerData const& data) /*override*/;
73
74 virtual void render(
76 ::OffscreenCaptureDescription const* capture,
77 bool isRenderingUI
78 ) /*override*/;
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCNAPI void $update(::PaperDollUpdateOwnerData const& data);
85
86 MCNAPI void
87 $render(::PaperDollRenderOwnerData const& data, ::OffscreenCaptureDescription const* capture, bool isRenderingUI);
88 // NOLINTEND
89};
90
91} // namespace GeometryAtlas
Definition BaseActorRenderContext.h:5
Definition DollRenderContextImpl.h:7
MCAPI void $update(::PaperDollUpdateOwnerData const &data)
MCAPI void $render(::PaperDollRenderOwnerData const &data, ::OffscreenCaptureDescription const *capture, bool isRenderingUI)
Definition PaperDollRenderer.h:5
Definition DollRenderContextImpl.h:15
MCAPI float $getLegacyGuiOffsetY(float screenScale)
MCAPI::glm::vec2 $getMouseMove(::glm::vec2 const &ownerPos)
Definition OffscreenCaptureDescription.h:5
Definition PaperDollRenderOwnerData.h:5
Definition PaperDollUpdateOwnerData.h:5