Added AspectRation property to SwapChain

This commit is contained in:
Simon Lübeß
2022-01-21 21:19:02 +01:00
parent d96ec6f21b
commit bca4552341
+5
View File
@@ -50,6 +50,11 @@ namespace GlitchyEngine.Renderer
} }
} }
/**
* Gets the aspect ratio of the backbuffer.
*/
public float AspectRatio => _width / _height;
public Viewport BackbufferViewport => _backBufferViewport; public Viewport BackbufferViewport => _backBufferViewport;
/** /**