From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.Client/Polygon.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Minecraft.Client/Polygon.h (limited to 'Minecraft.Client/Polygon.h') diff --git a/Minecraft.Client/Polygon.h b/Minecraft.Client/Polygon.h new file mode 100644 index 00000000..24cb2218 --- /dev/null +++ b/Minecraft.Client/Polygon.h @@ -0,0 +1,22 @@ +#pragma once +#include "Vertex.h" +#include "Tesselator.h" +#include "..\Minecraft.World\ArrayWithLength.h" + +class _Polygon +{ +public: + VertexArray vertices; + int vertexCount; +private: + bool _flipNormal; + +public: + void _init(VertexArray vertices); // 4J added for common init code + _Polygon(VertexArray vertices); + _Polygon(VertexArray vertices, int u0, int v0, int u1, int v1, float xTexSize, float yTexSize); + _Polygon(VertexArray vertices, float u0, float v0, float u1, float v1); + void mirror(); + void render(Tesselator *t, float scale); + _Polygon *flipNormal(); +}; -- cgit v1.2.3