#pragma once #include #define FVF D3DFVF_XYZ | D3DFVF_DIFFUSE struct Vertex { FLOAT x; FLOAT y; FLOAT 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)) {} };