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
@@ -49,6 +49,11 @@ namespace GlitchyEngine.Renderer
_changed = true;
}
}
/**
* Gets the aspect ratio of the backbuffer.
*/
public float AspectRatio => _width / _height;
public Viewport BackbufferViewport => _backBufferViewport;