mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added AspectRation property to SwapChain
This commit is contained in:
@@ -50,6 +50,11 @@ namespace GlitchyEngine.Renderer
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the aspect ratio of the backbuffer.
|
||||
*/
|
||||
public float AspectRatio => _width / _height;
|
||||
|
||||
public Viewport BackbufferViewport => _backBufferViewport;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user