Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
MeshData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core_graphics/enums/PrimitiveMode.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace mce { struct MeshDataVertexFieldCounts; }
11// clang-format on
12
13namespace mce {
14
15class MeshData {
16public:
17 // MeshData inner types define
18 using Index = uint;
19
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, ::mce::PrimitiveMode> mMode;
24 ::ll::TypedStorage<8, 24, ::std::vector<::glm::vec3>> mPositions;
25 ::ll::TypedStorage<8, 24, ::std::vector<::glm::vec4>> mNormals;
26 ::ll::TypedStorage<8, 24, ::std::vector<::glm::vec4>> mTangents;
27 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mIndices;
28 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mColors;
29 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mBoneId0s;
30 ::ll::TypedStorage<8, 72, ::std::vector<::glm::vec2>[3]> mTextureUVs;
31 ::ll::TypedStorage<8, 24, ::std::vector<ushort>> mPBRTextureIndices;
32 ::ll::TypedStorage<8, 24, ::std::vector<uint>> mMERS;
33 ::ll::TypedStorage<8, 24, ::std::vector<uchar>> mGeoType;
34 ::ll::TypedStorage<4, 24, ::std::pair<::glm::vec3, ::glm::vec3>> mAABB;
35 ::ll::TypedStorage<4, 16, ::std::pair<::glm::vec2, ::glm::vec2>> mUVAABB;
36 ::ll::TypedStorage<1, 15, ::std::array<bool, 15>> mFieldEnabled;
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 MeshData& operator=(MeshData const&);
42 MeshData();
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI MeshData(::mce::MeshData&&);
48
49 MCNAPI MeshData(::mce::MeshData const&);
50
51 MCNAPI void clear();
52
53 MCNAPI void freeMemory();
54
55 MCNAPI ::mce::MeshDataVertexFieldCounts getVertexFieldCount() const;
56
57 MCNAPI ::mce::MeshData& operator=(::mce::MeshData&&);
58
59 MCAPI uint64 size() const;
60
61 MCAPI ~MeshData();
62 // NOLINTEND
63
64public:
65 // constructor thunks
66 // NOLINTBEGIN
67 MCAPI void* $ctor(::mce::MeshData&&);
68
69 MCNAPI void* $ctor(::mce::MeshData const&);
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCAPI void $dtor();
76 // NOLINTEND
77};
78
79} // namespace mce
Definition MeshData.h:7
MCAPI void * $ctor(::mce::MeshData const &)
MCAPI::mce::MeshData & operator=(::mce::MeshData &&)
MCAPI::mce::MeshDataVertexFieldCounts getVertexFieldCount() const
MCAPI void freeMemory()
MCAPI MeshData(::mce::MeshData const &)
MCAPI void clear()
Definition MeshDataVertexFieldCounts.h:7