LeviLamina
Loading...
Searching...
No Matches
ActorRenderDispatcher.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class ActorRenderer;
16class Font;
17class GeometryGroup;
18class HashedString;
21class Tessellator;
22class Vec2;
23class Vec3;
27namespace mce { class Color; }
28namespace mce { class TextureGroup; }
29// clang-format on
30
32public:
33 // member variables
34 // NOLINTBEGIN
35 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::std::shared_ptr<::ActorRenderer>>>
36 mNonDataDrivenRenderers;
37 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::std::shared_ptr<::DataDrivenRenderer>>>
38 mDataDrivenRenderers;
39 ::ll::TypedStorage<
40 8,
41 24,
42 ::std::vector<::std::function<void(
43 ::Bedrock::NotNullNonOwnerPtr<::ActorResourceDefinitionGroup> const&,
44 ::std::shared_ptr<::mce::TextureGroup>
45 )>>>
46 mGameSpecificRegistrationCallbacks;
47 ::ll::TypedStorage<1, 1, ::SubClientId> mClientSubId;
48 ::ll::TypedStorage<8, 8, int64 const> mResourceLoadTimeStamp;
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 ActorRenderDispatcher();
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 virtual ~ActorRenderDispatcher() = default;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64 MCAPI explicit ActorRenderDispatcher(::SubClientId clientId);
65
66 MCAPI ::std::vector<::NameTagRenderObject> extractRenderTextObjects(
67 ::Font& font,
68 ::Tessellator& tessellator,
69 ::Actor& actor,
70 ::std::string const& str,
71 ::Vec3 camTargetPos,
72 float a,
73 ::mce::Color color
74 );
75
76 MCAPI ::std::shared_ptr<::DataDrivenRenderer> getDataDrivenRenderer(::HashedString const& rendererName) const;
77
78 MCAPI ::std::shared_ptr<::ActorRenderer> getRenderer(::Actor const& actor) const;
79
80 MCAPI ::std::shared_ptr<::ActorRenderer> getRenderer(::HashedString const& rendererName) const;
81
82 MCAPI bool hasWaterHole(::Actor& actor) const;
83
84 MCAPI void initializeEntityRenderers(
85 ::Bedrock::NotNullNonOwnerPtr<::GeometryGroup> const& geometryGroup,
86 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
87 ::BlockTessellator& commonBlockRenderer,
88 ::Bedrock::NotNullNonOwnerPtr<::ActorResourceDefinitionGroup> const& entityResourceDefGroup,
89 ::ResourcePackManager& resourcePackManager,
90 ::Bedrock::NotNullNonOwnerPtr<::ResourceLoadManager> resourceLoadManager,
91 bool supportsNewVertexFormat
92 );
93
94 MCAPI bool initializePlayerRenderer(
95 ::std::shared_ptr<::ActorResourceDefinition> resources,
96 ::std::shared_ptr<::mce::TextureGroup> textureGroup
97 );
98
99 MCAPI void render(::BaseActorRenderContext& entityRenderContext, ::Actor& entity, bool ignoreLighting);
100
101 MCAPI void render(
102 ::BaseActorRenderContext& entityRenderContext,
103 ::Actor& entity,
104 ::Vec3 const& pos,
105 ::Vec2 const& rot,
106 bool ignoreLighting
107 );
108
109 MCAPI void render(
110 ::BaseActorRenderContext& entityRenderContext,
111 ::Actor& entity,
112 ::Vec3 const& cameraTargetPos,
113 ::Vec3 const& pos,
114 ::Vec2 const& rot,
115 bool ignoreLighting
116 );
117
118 MCAPI void renderEffects(::BaseActorRenderContext& actorRenderContext, ::Actor& actor);
119
120 MCAPI void
121 renderWaterHole(::BaseActorRenderContext& actorRenderContext, ::Actor& actor, ::Vec3 const& cameraTargetPos);
122 // NOLINTEND
123
124public:
125 // constructor thunks
126 // NOLINTBEGIN
127 MCAPI void* $ctor(::SubClientId clientId);
128 // NOLINTEND
129
130public:
131 // vftables
132 // NOLINTBEGIN
133 MCNAPI static void** $vftable();
134 // NOLINTEND
135};
Definition ActorRenderDispatcher.h:5
static MCAPI void ** $vftable()
Definition ActorRenderer.h:5
Definition Actor.h:105
Definition BaseActorRenderContext.h:34
Definition BlockTessellator.h:5
Definition DataDrivenRenderer.h:5
Definition Font.h:5
Definition GeometryGroup.h:5
Definition HashedString.h:5
Definition ResourceLoadManager.h:18
Definition ResourcePackManager.h:29
Definition Tessellator.h:5
Definition Vec2.h:5
Definition Vec3.h:10
Definition Color.h:13
Definition TextureGroup.h:7
Definition ActorResourceDefinitionGroup.h:5
Definition ActorResourceDefinition.h:5
Definition NameTagRenderObject.h:5