diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/Polygon.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.Client/Polygon.h')
| -rw-r--r-- | Minecraft.Client/Polygon.h | 22 |
1 files changed, 22 insertions, 0 deletions
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(); +}; |
