Add transformations

Add input
Add time
Add vertex colors
This commit is contained in:
2026-11-16 15:56:44 +01:00
parent 948c5e067e
commit 439871d63f
7 changed files with 98 additions and 10 deletions
+7 -3
View File
@@ -1,7 +1,7 @@
#pragma once
#include <d3d9.h>
#define FVF D3DFVF_XYZ
#define FVF D3DFVF_XYZ | D3DFVF_DIFFUSE
struct Vertex
{
@@ -10,6 +10,10 @@ 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) {}
// color
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)) {}
};