LeviLamina
Loading...
Searching...
No Matches
IInventoryItemRenderContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8struct BatchKey;
12// clang-format on
13
14namespace GeometryAtlas::details {
15
17public:
18 // virtual functions
19 // NOLINTBEGIN
20 virtual ~IInventoryItemRenderContext() = default;
21
22 virtual int getNumRenderPasses() = 0;
23
24 virtual ::BatchKey createBatchKey(int pass) = 0;
25
26 virtual void tryPreRenderSetup(int pass) = 0;
27
28 virtual ::std::unique_ptr<::MinecraftUIPersistentMeshItem>
29 createPersistentMesh(::ComponentRenderBatch const& batch) = 0;
30
31 virtual void configureUnbatchedRenderContext(::OffscreenCaptureDescription const& capture, bool isDrawingUI) = 0;
32
33 virtual void beginSharedMeshBatch(::ComponentRenderBatch const& batch) = 0;
34
35 virtual void render(::InventoryItemRenderOwnerData const& data, int pass, float alpha) = 0;
36
37 virtual bool endSharedMeshBatch(
38 ::ComponentRenderBatch& renderBatch,
39 ::MinecraftUIPersistentMeshItem& persistentMeshItem,
40 ::OffscreenCaptureDescription const& capture
41 ) = 0;
42 // NOLINTEND
43};
44
45} // namespace GeometryAtlas::details
Definition ComponentRenderBatch.h:5
Definition IInventoryItemRenderContext.h:7
Definition BatchKey.h:5
Definition InventoryItemRenderOwnerData.h:5
Definition MinecraftUIPersistentMeshItem.h:5
Definition OffscreenCaptureDescription.h:5