LeviLamina
Loading...
Searching...
No Matches
BaseActorRenderContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/platform/brstd/copyable_function.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
17class FontHandle;
18class HashedString;
20class IClientInstance;
21class IMinecraftGame;
23class ItemRenderer;
25class ScreenContext;
27class Vec2;
29namespace LightPropagation { class LightVolumeManager; }
30// clang-format on
31
33public:
34 // BaseActorRenderContext inner types declare
35 // clang-format off
36 struct Impl;
37 // clang-format on
38
39 // BaseActorRenderContext inner types define
40 struct Impl {};
41
42 using ResetToken = ::gsl::final_action<::brstd::copyable_function<void()>>;
43
44public:
45 // member variables
46 // NOLINTBEGIN
47 ::ll::TypedStorage<4, 4, float> mNumEntitiesRenderedThisFrame;
48 ::ll::TypedStorage<4, 4, float> mLastFrameTime;
49 ::ll::TypedStorage<8, 8, ::SortedMeshDrawList*> mSortedMeshDrawList;
50 ::ll::TypedStorage<8, 8, ::IClientInstance&> mClientInstance;
51 ::ll::TypedStorage<8, 8, ::IMinecraftGame&> mMinecraftGame;
52 ::ll::TypedStorage<8, 8, ::ScreenContext&> mScreenContext;
53 ::ll::TypedStorage<8, 8, ::BlockActorRenderDispatcher&> mBlockEntityRenderDispatcher;
54 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ActorRenderDispatcher>> mEntityRenderDispatcher;
55 ::ll::TypedStorage<8, 8, ::ActorBlockRenderer&> mEntityBlockRenderer;
56 ::ll::TypedStorage<8, 8, ::ItemInHandRenderer&> mItemInHandRenderer;
57 ::ll::TypedStorage<8, 8, ::ItemRenderer&> mItemRenderer;
58 ::ll::TypedStorage<8, 8, ::HudIconActorRenderer&> mHudIconActorRenderer;
59 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::LightPropagation::LightVolumeManager>> mLightVolumeManager;
60 ::ll::TypedStorage<8, 8, ::ParticleSystemEngine*> mParticleSystemEngine;
61 ::ll::TypedStorage<8, 8, ::DataDrivenRendererRegistry const*> mProcessedV2DataDrivenRenderers;
62 ::ll::TypedStorage<8, 8, ::DataDrivenRendererContinuousData*> mV2DataDrivenContinuousData;
63 ::ll::TypedStorage<1, 1, bool> mV2ShouldRenderActorsWithAttachables;
64 ::ll::TypedStorage<8, 16, ::std::optional<int64>> mRenderUniqueIdOverride;
65 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::BaseActorRenderContext::Impl>> mImpl;
66 ::ll::TypedStorage<4, 4, float const> mFrameAlpha;
67 ::ll::TypedStorage<4, 4, float> mActorDitheringMaxDistance;
68 ::ll::TypedStorage<1, 1, bool> mIsOnScreen;
69 ::ll::TypedStorage<1, 1, bool> mUpdateBonesAndEffects;
70 ::ll::TypedStorage<1, 1, bool> mUpdateEffects;
71 ::ll::TypedStorage<1, 1, bool> mIgnoresLighting;
72 ::ll::TypedStorage<1, 1, bool> mForceLightingOn;
73 ::ll::TypedStorage<1, 1, bool> mIsRenderingOnMap;
74 // NOLINTEND
75
76public:
77 // prevent constructor by default
78 BaseActorRenderContext& operator=(BaseActorRenderContext const&);
79 BaseActorRenderContext(BaseActorRenderContext const&);
80 BaseActorRenderContext();
81
82public:
83 // virtual functions
84 // NOLINTBEGIN
85 virtual ~BaseActorRenderContext();
86 // NOLINTEND
87
88public:
89 // member functions
90 // NOLINTBEGIN
91 MCAPI BaseActorRenderContext(
92 ::ScreenContext& screenContext,
93 ::IClientInstance& clientInstance,
94 ::IMinecraftGame& minecraftGame
95 );
96
97 MCAPI ::Vec2 getCameraRotation(float a) const;
98
99 MCAPI ::std::shared_ptr<::DataDrivenRenderer> getDataDrivenRenderer(::HashedString const& rendererName) const;
100
101 MCAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const> getFontHandle();
102
103 MCAPI float getFrameAlpha(::Actor const& actor) const;
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void*
110 $ctor(::ScreenContext& screenContext, ::IClientInstance& clientInstance, ::IMinecraftGame& minecraftGame);
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCAPI void $dtor();
117 // NOLINTEND
118
119public:
120 // vftables
121 // NOLINTBEGIN
122 MCNAPI static void** $vftable();
123 // NOLINTEND
124};
Definition ActorBlockRenderer.h:5
Definition ActorRenderDispatcher.h:5
Definition Actor.h:114
Definition BaseActorRenderContext.h:5
static MCAPI void ** $vftable()
Definition BlockActorRenderDispatcher.h:5
Definition DataDrivenRendererRegistry.h:5
Definition DataDrivenRenderer.h:5
Definition FontHandle.h:5
Definition HashedString.h:5
Definition HudIconActorRenderer.h:5
Definition IClientInstance.h:5
Definition IMinecraftGame.h:5
Definition ItemInHandRenderer.h:5
Definition ItemRenderer.h:5
Definition LightVolumeManager.h:7
Definition ParticleSystemEngine.h:5
Definition ScreenContext.h:5
Definition SortedMeshDrawList.h:5
Definition Vec2.h:5
Definition BaseActorRenderContext.h:13
Definition DataDrivenRendererContinuousData.h:5