daily update on 20240424 by nitloady youmu

This commit is contained in:
YoumuLiu
2024-04-25 10:37:33 +08:00
parent 32c0a0f99b
commit dd6e8247bf
40 changed files with 568 additions and 119 deletions
+11 -14
View File
@@ -90,7 +90,11 @@ namespace StgSharp.Graphics
public int Height
{
get => height;
set => height = value;
set
{
height = value;
InternalIO.glfwSetWindowSize(windowID, Width, Height);
}
}
public bool ShouldClose
@@ -109,6 +113,7 @@ namespace StgSharp.Graphics
{
width = (int)value.X;
height = (int)value.Y;
InternalIO.glfwSetWindowSize(windowID, Width, Height);
}
}
@@ -118,7 +123,11 @@ namespace StgSharp.Graphics
public int Width
{
get => width;
set => width = value;
set
{
width = value;
InternalIO.glfwSetWindowSize(windowID, Width, Height);
}
}
@@ -206,18 +215,6 @@ namespace StgSharp.Graphics
public void SetSizeLimit(int minWidth, int minHeight, int maxWidth, int maxHeight)
{ InternalIO.glfwSetWindowSizeLimits(this.windowID, minWidth, minHeight, maxWidth, maxHeight); }
#region form main
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void InternalDeInit() { DeInit(); }
unsafe ~Form() { Marshal.FreeHGlobal(graphicContextID); }
#endregion form main
}