daily update on 20240213 by nitload youmu. 逐步弃用GLFW,正在使用wgl重写glfw底层,相关实现转移到C#实现,SSC彻底变成线性代数计算器。

This commit is contained in:
Nitload
2024-02-13 23:42:22 +08:00
parent 8391569482
commit a2241a5a58
307 changed files with 16701 additions and 10296 deletions
+3 -4
View File
@@ -11,7 +11,6 @@ using System.Linq;
using System.Numerics;
using System.Reflection;
using System.Reflection.Emit;
using System.Reflection.Metadata;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Security.Principal;
@@ -38,7 +37,7 @@ namespace StgSharp.Graphics
internal int width;
internal IntPtr windowID;
private bool closed;
private IglFunc gl;
internal IglFunc gl;
#endregion
#region form thread setting
@@ -180,7 +179,7 @@ namespace StgSharp.Graphics
windowID = windowPtr;
}
}
InternalIO.InternalSetCurrentGLContext(windowID, contextID);
gl.SwitchContext();
}
/// <summary>
@@ -267,7 +266,7 @@ namespace StgSharp.Graphics
else
{
M128 m = default;
m.IntPtr0 = windowID;
m.UInt64[0] = (ulong)windowID;
GLonUpdate glu = gl as GLonUpdate;
glu.frameworkHandleEnqueue(
(IntPtr)(delegate*<void>)&InternalSwapBuffer, m);