3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/renderer/SupplementaryFieldAutoGenerationMode.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/deps/core_graphics/enums/PrimitiveMode.h"
9#include "mc/deps/minecraft_renderer/renderer/MeshData.h"
16namespace mce {
class Mesh; }
29 enum class UploadMode :
int {
42 ::ll::TypedStorage<1, 1, bool> mIsFormatFixed;
43 ::ll::TypedStorage<8, 352, ::mce::MeshData> mMeshData;
44 ::ll::TypedStorage<1, 1, bool> mHasNormals;
45 ::ll::TypedStorage<8, 8, uint64> mNextReserve;
46 ::ll::TypedStorage<4, 20, ::std::optional<::glm::vec4>> mNextNormal;
47 ::ll::TypedStorage<4, 36, ::std::optional<::glm::vec2>[3]> mNextUV;
48 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mNextColor;
49 ::ll::TypedStorage<2, 4, ::std::optional<ushort>> mNextBoneId;
50 ::ll::TypedStorage<2, 4, ::std::optional<ushort>> mNextPBRTextureIdx;
51 ::ll::TypedStorage<4, 8, ::std::optional<uint>> mNextMERS;
52 ::ll::TypedStorage<1, 2, ::std::optional<uchar>> mNextGeoType;
53 ::ll::TypedStorage<1, 1, bool> mIndexPhase;
54 ::ll::TypedStorage<4, 12, ::Vec3> mPostTransformOffset;
55 ::ll::TypedStorage<4, 12, ::Vec3> mPostTransformScale;
56 ::ll::TypedStorage<1, 1, uchar> mQuadFacing;
57 ::ll::TypedStorage<1, 1, bool> mQuadTwoSided;
58 ::ll::TypedStorage<8, 24, ::std::vector<::TessellatorQuadInfo>> mQuadInfoList;
59 ::ll::TypedStorage<4, 12, ::Vec3> mFaceCenterAccumulator;
60 ::ll::TypedStorage<4, 4, int> mCurQuadVertex;
61 ::ll::TypedStorage<1, 1, bool> mApplyTransform;
62 ::ll::TypedStorage<4, 64, ::glm::mat4x4> mTransformMatrix;
63 ::ll::TypedStorage<1, 1, bool> mNoColor;
64 ::ll::TypedStorage<1, 1, bool> mVoidBeginEnd;
65 ::ll::TypedStorage<1, 1, bool> mForceTessellateIntercept;
69 ::std::function<void(::Tessellator
const&, ::mce::MaterialPtr
const&, ::mce::TexturePtr
const&)>>
70 mInterceptTessellator;
71 ::ll::TypedStorage<4, 4, uint> mCount;
72 ::ll::TypedStorage<4, 4, uint> mMaxVertexCount;
73 ::ll::TypedStorage<1, 1, bool> mTessellating;
74 ::ll::TypedStorage<1, 1, bool> mBuildFaceData;
75 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::mce::Mesh>> mPreGeneratedMesh;
76 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::mce::BufferResourceService>> mBufferResourceService;
86 MCAPI
explicit Tessellator(::std::weak_ptr<::mce::BufferResourceService> bufferResourceService);
94 ::mce::PrimitiveMode mode,
103 MCAPI
void color(
float r,
float g,
float b,
float a);
106 end(::Tessellator::UploadMode uploadMode,
107 ::std::string_view debugName,
108 ::SupplementaryFieldAutoGenerationMode supplementaryFieldGenerationMode);
110 MCNAPI
void quad(uint i1, uint i2, uint i3, uint i4);
112 MCAPI
void resetTransform(
bool setToIdentity);
117 MCAPI
void setTessellateIntercept(
132 MCAPI
void tex2(
::Vec2 const& v);
136 MCAPI
void vertex(
float x,
float y,
float z);
138 MCAPI ~Tessellator();
144 MCAPI
void* $ctor(::std::weak_ptr<::mce::BufferResourceService> bufferResourceService);
Definition Tessellator.h:5
MCAPI void simpleQuad(::Vec3 const &pos0, ::Vec2 const &uv0, ::Vec3 const &pos1, ::Vec2 const &uv1, ::Vec3 const &pos2, ::Vec2 const &uv2, ::Vec3 const &pos3, ::Vec2 const &uv3)
MCAPI void addTranslation(::Vec3 const &offset)
MCAPI void quad(uint i1, uint i2, uint i3, uint i4)
MCAPI void addRotation(float angle, ::Vec3 const &axis)
MCAPI void triggerIntercept(::mce::MaterialPtr const &material, ::mce::TexturePtr const &texture)
MCAPI void beginOverride(::Tessellator::DebugContextCallback debugContextCallback)
MCAPI void rotateAroundPivot(::Vec3 const &pivotOffset, float angle, ::Vec3 const &rotationAxis, bool preTransform)
Definition MaterialPtr.h:14
Definition TexturePtr.h:7
Definition TessellatorQuadInfo.h:5
Definition Tessellator.h:15
Definition BufferResourceService.h:7