add input

add time
add vertex color
This commit is contained in:
2025-09-24 11:44:51 +02:00
parent faa9b71510
commit c9e9dcf572
5 changed files with 51 additions and 15 deletions
+6 -3
View File
@@ -1,7 +1,7 @@
#pragma once
#include <d3d9.h>
#define FVF D3DFVF_XYZ
#define FVF D3DFVF_XYZ | D3DFVF_DIFFUSE
struct Vertex
{
@@ -9,6 +9,9 @@ struct Vertex
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) {}
D3DCOLOR color;
Vertex() : x(0.0f), y(0.0f), z(0.0f), color(0xFFFFFFFF) {}
Vertex(FLOAT _x, FLOAT _y, FLOAT _z) : x(_x), y(_y), z(_z), color(0xFFFFFFFF) {}
Vertex(FLOAT _x, FLOAT _y, FLOAT _z, UINT r, UINT g, UINT b) : x(_x), y(_y), z(_z), color(D3DCOLOR_XRGB(r, g, b)) {}
};