Add vertex
Add triangle & quad examples
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include <d3d9.h>
|
||||
|
||||
#define FVF D3DFVF_XYZ
|
||||
|
||||
struct Vertex
|
||||
{
|
||||
// position
|
||||
float x;
|
||||
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) {}
|
||||
};
|
||||
Reference in New Issue
Block a user