Added: matrix buffer
Added: world, view & projection matrices Added: delta time calculation Added: quad mesh
This commit is contained in:
@@ -6,8 +6,10 @@ using namespace DirectX;
|
||||
struct Vertex
|
||||
{
|
||||
XMFLOAT3 position;
|
||||
XMFLOAT4 color;
|
||||
|
||||
Vertex() : position(0.0f, 0.0f, 0.0f) {}
|
||||
Vertex(float x, float y, float z) : position(x, y, z) {}
|
||||
Vertex(XMFLOAT3 p) : position(p) {}
|
||||
Vertex() : position(0.0f, 0.0f, 0.0f), color(1.0f, 1.0f, 1.0f, 1.0f) {}
|
||||
Vertex(float x, float y, float z) : position(x, y, z), color(1.0f, 1.0f, 1.0f, 1.0f) {}
|
||||
Vertex(XMFLOAT3 p) : position(p), color(1.0f, 1.0f, 1.0f, 1.0f) {}
|
||||
Vertex(float x, float y, float z, float r, float g, float b) : position(x, y, z), color(r, g, b, 1.0f) {}
|
||||
};
|
||||
Reference in New Issue
Block a user