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
+30
View File
@@ -0,0 +1,30 @@
namespace GlitchyEngine.Renderer
{
public class SwapChain
{
public extern GraphicsContext Context {get;}
/**
* Gets or Sets the backbuffers width.
* @remarks @ApplyChanges() needs to be called in order to apply the ganges.
*/
public extern uint32 Width {get; set;}
/**
* Gets or Sets the backbuffers height.
* @remarks @ApplyChanges() needs to be called in order to apply the ganges.
*/
public extern uint32 Height {get; set;}
public extern void Init();
/**
* Applies all changes to the swapchain.
*/
public extern void ApplyChanges();
/**
* Swaps the front- and backbuffer.
*/
public extern void Present();
}
}