daily update on 20240213 by nitload youmu. 逐步弃用GLFW,正在使用wgl重写glfw底层,相关实现转移到C#实现,SSC彻底变成线性代数计算器。
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user