add create vertex buffer for a triangle

This commit is contained in:
2025-09-10 11:27:40 +02:00
parent 417b951112
commit 9a0c9a50ea
7 changed files with 69 additions and 13 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <d3d9.h>
#define FVF D3DFVF_XYZ
struct Vertex
{
FLOAT x;
FLOAT y;
FLOAT z;
Vertex() : x(0.0f), y(0.0f), z(0.0f) {}
Vertex(FLOAT _x, FLOAT _y, FLOAT _z) : x(_x), y(_y), z(_z) {}
};