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