add vertex color
add time calculation
This commit is contained in:
+6
-3
@@ -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)) {}
|
||||
};
|
||||
Reference in New Issue
Block a user