LeviLamina
Loading...
Searching...
No Matches
NinePatchLayer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/ScreenRenderer.h"
7#include "mc/client/gui/components/NinePatchDescription.h"
8#include "mc/deps/minecraft_renderer/renderer/TexturePtr.h"
9
10// auto generated forward declare list
11// clang-format off
12class ScreenContext;
13class Tessellator;
14// clang-format on
15
16class NinePatchLayer : public ::ScreenRenderer {
17public:
18 // NinePatchLayer inner types declare
19 // clang-format off
20 struct CachedQuad;
21 // clang-format on
22
23 // NinePatchLayer inner types define
24 struct CachedQuad {
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, float> x0;
29 ::ll::TypedStorage<4, 4, float> x1;
30 ::ll::TypedStorage<4, 4, float> y0;
31 ::ll::TypedStorage<4, 4, float> y1;
32 ::ll::TypedStorage<4, 4, float> z;
33 ::ll::TypedStorage<4, 4, float> u0;
34 ::ll::TypedStorage<4, 4, float> u1;
35 ::ll::TypedStorage<4, 4, float> v0;
36 ::ll::TypedStorage<4, 4, float> v1;
37 // NOLINTEND
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<4, 4, float> w;
44 ::ll::TypedStorage<4, 4, float> h;
45 ::ll::TypedStorage<4, 56, ::NinePatchDescription> desc;
46 ::ll::TypedStorage<8, 32, ::mce::TexturePtr> texture;
47 ::ll::TypedStorage<4, 4, int> excluded;
48 ::ll::TypedStorage<4, 324, ::NinePatchLayer::CachedQuad[9]> quads;
49 // NOLINTEND
50
51public:
52 // virtual functions
53 // NOLINTBEGIN
54 virtual ~NinePatchLayer() = default;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI void draw(::ScreenContext& screenContext, ::Tessellator& tessellator, float x, float y);
61
62 MCAPI void setSize(float w, float h);
63 // NOLINTEND
64
65public:
66 // vftables
67 // NOLINTBEGIN
68 MCNAPI static void** $vftable();
69 // NOLINTEND
70};
Definition NinePatchLayer.h:5
static MCAPI void ** $vftable()
Definition ScreenContext.h:5
Definition ScreenRenderer.h:5
Definition Tessellator.h:5
Definition NinePatchLayer.h:13