Render basic geometry

Added GraphicsContext, SwapChain, Buffer, VertexBuffer, IndexBuffer and a basic DX11 implementation.
This commit is contained in:
Simon Lübeß
2020-11-25 13:03:40 +01:00
parent 0237e0b38d
commit 5954fbc411
20 changed files with 1219 additions and 180 deletions
+14
View File
@@ -0,0 +1,14 @@
namespace GlitchyEngine.Math
{
typealias Color = DirectX.Color;
typealias ColorRGB = DirectX.ColorRGB;
typealias ColorRGBA = DirectX.ColorRGBA;
typealias Vector2 = DirectX.Math.Vector2;
typealias Vector3 = DirectX.Math.Vector3;
typealias Vector4 = DirectX.Math.Vector4;
typealias Matrix3x3 = DirectX.Math.Matrix3x3;
typealias Matrix4x3 = DirectX.Math.Matrix4x3;
typealias Matrix = DirectX.Math.Matrix;
}
+2
View File
@@ -2,6 +2,7 @@ using System;
namespace GlitchyEngine.Math
{
/**
* A 2D point represented by two 32bit integers.
*/
@@ -126,4 +127,5 @@ namespace GlitchyEngine.Math
//
public override void ToString(String strBuffer) => strBuffer.AppendF("X={0} Y={1}", X, Y);
}
}