2021-03-07

+ IScriptable can now be disabled instancewise
+ IShowItem can disable rendering.

~ SM.Base.Mesh has now ILineMesh

- IGenericWindow.AspectRatioReverse
This commit is contained in:
Michel Fedde 2021-03-07 12:30:54 +01:00
parent c6bf5c75bc
commit 4efc47d75a
10 changed files with 16 additions and 10 deletions

View file

@ -13,7 +13,6 @@ namespace SM.Base.Windows
{
public bool Loading { get; private set; } = true;
public float AspectRatio { get; set; }
public float AspectRatioReverse { get; set; }
public GenericCamera ViewportCamera { get; set; }
public bool ForceViewportCamera { get; set; }

View file

@ -11,7 +11,6 @@ namespace SM.Base.Windows
{
bool Loading { get; }
float AspectRatio { get; set; }
float AspectRatioReverse { get; set; }
GenericCamera ViewportCamera { get; set; }
bool ForceViewportCamera { get; set; }

View file

@ -55,7 +55,6 @@ namespace SM.Base.Windows
{
window.WindowSize = new Vector2(window.Width, window.Height);
window.AspectRatio = (float) window.Width / window.Height;
window.AspectRatioReverse = (float) window.Height / window.Width;
GL.Viewport(window.ClientRectangle);
window.CurrentRenderPipeline?.Resize();