Files
hwr2024_a/GDP/D3D9/Vertex.h
T
david b84f9c1052 Add transformation
Add input
Add time
Add vertex colors
2026-11-16 12:10:00 +01:00

19 lines
411 B
C

#pragma once
#include <d3d9.h>
#define FVF D3DFVF_XYZ | D3DFVF_DIFFUSE
struct Vertex
{
// position
float x;
float y;
float 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)) {}
};