LeviLamina
Loading...
Searching...
No Matches
Cube.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/model/geom/QuadUVRotation.h"
7#include "mc/deps/core/math/Color.h"
8#include "mc/deps/core/math/Vec2.h"
9#include "mc/deps/core/math/Vec3.h"
10
11// auto generated forward declare list
12// clang-format off
13class AABB;
14class PolygonQuad;
15class TextureOffset;
16class VertexPT;
17class Tessellator;
18// clang-format on
19
20class Cube {
21public:
22 // Cube inner types declare
23 // clang-format off
24 struct FaceUVData;
25 // clang-format on
26
27 // Cube inner types define
28 struct FaceUVData {
29 public:
30 // member variables
31 // NOLINTBEGIN
32 ::ll::TypedStorage<4, 8, ::Vec2> mUV;
33 ::ll::TypedStorage<4, 8, ::Vec2> mUVSize;
34 ::ll::TypedStorage<4, 4, int> mMaterialInstanceListIndex;
35 ::ll::TypedStorage<1, 1, bool> mFaceValid;
36 ::ll::TypedStorage<1, 1, ::QuadUVRotation> mUvRotation;
37 // NOLINTEND
38 };
39
40public:
41 // member variables
42 // NOLINTBEGIN
43 ::ll::TypedStorage<4, 12, ::Vec3> mOrigin;
44 ::ll::TypedStorage<4, 12, ::Vec3> mSize;
45 ::ll::TypedStorage<4, 12, ::Vec3> mRotation;
46 ::ll::TypedStorage<4, 12, ::Vec3> mCubePivot;
47 ::ll::TypedStorage<8, 24, ::std::vector<::PolygonQuad>> mPolygons;
48 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
49 ::ll::TypedStorage<1, 1, bool> mMirrored;
50 ::ll::TypedStorage<4, 144, ::std::array<::Cube::FaceUVData, 6>> mFaceData;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI_C void compile(::Tessellator& t) const;
57
58 MCAPI_C void expandAABB(::AABB& aabb) const;
59
60 MCAPI_C void
61 setQuad(uchar facing, float u0, float v0, float u1, float v1, ::VertexPT* vertices, ::QuadUVRotation uvRotation);
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI_C void* $ctor(::Cube&&);
68
69 MCAPI_C void* $ctor(
70 ::Vec3 const& point,
71 ::Vec3 const& extents,
72 float growAmount,
73 bool shouldMirror,
74 ::std::array<::Cube::FaceUVData, 6> const& faceUVData,
75 ::Vec2 const& inTexExtents,
76 ::mce::Color const& color
77 );
78
79 MCAPI_C void* $ctor(
80 ::Vec3 const& point,
81 ::Vec3 const& extents,
82 float growAmount,
83 bool shouldMirror,
84 ::Vec2 const& inTexExtents,
85 ::TextureOffset const& inTexOffs,
86 ::mce::Color const& color
87 );
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCAPI_C void $dtor();
94 // NOLINTEND
95};
Definition AABB.h:18
Definition Cube.h:20
Definition PolygonQuad.h:13
Definition Tessellator.h:5
Definition TextureOffset.h:5
Definition Vec2.h:5
Definition Vec3.h:10
Definition VertexPT.h:5
Definition Color.h:13
Definition Cube.h:28