daily update on 20240206 by nitload youmu

This commit is contained in:
Nitload
2024-02-06 13:54:30 +08:00
parent 5d778e0f2f
commit 8548757bbf
114 changed files with 86620 additions and 752 deletions
+8 -2
View File
@@ -55,6 +55,14 @@ namespace StgSharp.Graphics
{
}
protected FrameBufferSizeHandler FrameBufferSizeCallback
{
set
{
gl.SetFrameBufferSizeCallback(this.windowID, value);
}
}
/// <summary>
/// Height of this form, represent in <see cref="int"/>
/// </summary>
@@ -292,7 +300,6 @@ namespace StgSharp.Graphics
windowPtr = InternalIO.glfw.CreateWindow(
width, height, tittleBytes, monitor, sharedForm.windowID);
}
if ((long)windowPtr == -1 || (long)windowPtr == -2)
{
throw new Exception("Cannot create window instance!");
@@ -301,7 +308,6 @@ namespace StgSharp.Graphics
{
windowID = windowPtr;
}
}
InternalIO.InternalSetCurrentGLContext(windowID, contextID);
}