Added: vertex structure

Added: mesh creation & rendering
This commit is contained in:
2026-10-05 18:35:10 +02:00
parent 3f679574a6
commit 2fb45a5c02
4 changed files with 85 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include <DirectXMath.h>
using namespace DirectX;
struct Vertex
{
XMFLOAT3 position;
Vertex() : position(0.0f, 0.0f, 0.0f) {}
Vertex(float x, float y, float z) : position(x, y, z) {}
Vertex(XMFLOAT3 p) : position(p) {}
};