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/Vertex.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Minecraft.Client/Vertex.cpp (limited to 'Minecraft.Client/Vertex.cpp') diff --git a/Minecraft.Client/Vertex.cpp b/Minecraft.Client/Vertex.cpp new file mode 100644 index 00000000..13898729 --- /dev/null +++ b/Minecraft.Client/Vertex.cpp @@ -0,0 +1,28 @@ +#include "stdafx.h" +#include "vertex.h" + +Vertex::Vertex(float x, float y, float z, float u, float v) +{ + this->pos = Vec3::newPermanent(x,y,z); + this->u = u; + this->v = v; +} + +Vertex *Vertex::remap(float u, float v) +{ + return new Vertex(this, u, v); +} + +Vertex::Vertex(Vertex *vertex, float u, float v) +{ + this->pos = vertex->pos; + this->u = u; + this->v = v; +} + +Vertex::Vertex(Vec3 *pos, float u, float v) +{ + this->pos = pos; + this->u = u; + this->v = v; +} \ No newline at end of file -- cgit v1.2.3