daily update on 20231104 by nitload youmu
This commit is contained in:
@@ -101,12 +101,12 @@ namespace StgSharp.Graphics
|
||||
byte[] tittleBytes = Encoding.UTF8.GetBytes(name);
|
||||
if (sharedForm == null)
|
||||
{
|
||||
windowPtr = InternalIO.glfw_CreateWindow(
|
||||
windowPtr = InternalIO.glfw.CreateWindow(
|
||||
width, height, tittleBytes, monitor, IntPtr.Zero);
|
||||
}
|
||||
else
|
||||
{
|
||||
windowPtr = InternalIO.glfw_CreateWindow(
|
||||
windowPtr = InternalIO.glfw.CreateWindow(
|
||||
width, height, tittleBytes, monitor, sharedForm.windowID);
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ namespace StgSharp.Graphics
|
||||
bindedContext = (GLcontext*)ptr;
|
||||
|
||||
}
|
||||
InternalIO.glfw_MakeContextCurrent(windowID);
|
||||
InternalIO.glfw.MakeContextCurrent(windowID);
|
||||
InternalIO.InternalSetCurrentContext(bindedContext);
|
||||
GL.context = bindedContext;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ namespace StgSharp.Graphics
|
||||
{
|
||||
this.Width = width;
|
||||
this.Height = height;
|
||||
InternalIO.glfw_SetWindowSize(this.windowID, width, height);
|
||||
InternalIO.glfw.SetWindowSize(this.windowID, width, height);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -148,7 +148,7 @@ namespace StgSharp.Graphics
|
||||
public void SetSize(Vec2d size)
|
||||
{
|
||||
this.Size = size;
|
||||
InternalIO.glfw_SetWindowSize(this.windowID, (int)size.X, (int)size.Y);
|
||||
InternalIO.glfw.SetWindowSize(this.windowID, (int)size.X, (int)size.Y);
|
||||
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace StgSharp.Graphics
|
||||
/// <param name="maxHeight">Maximum height of current form</param>
|
||||
public void SetSizeLimit(int minWidth, int minHeight, int maxWidth, int maxHeight)
|
||||
{
|
||||
InternalIO.glfw_SetWindowSizeLimits(
|
||||
InternalIO.glfw.SetWindowSizeLimits(
|
||||
this.windowID,
|
||||
minWidth, minHeight, maxWidth, maxHeight);
|
||||
}
|
||||
@@ -177,7 +177,7 @@ namespace StgSharp.Graphics
|
||||
/// </param>
|
||||
public void SetSizeLimit(Vec2d minSize, Vec2d maxSize)
|
||||
{
|
||||
InternalIO.glfw_SetWindowSizeLimits(
|
||||
InternalIO.glfw.SetWindowSizeLimits(
|
||||
this.windowID,
|
||||
(int)minSize.X, (int)minSize.Y, (int)maxSize.X, (int)maxSize.Y);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user