daily update on 20240613 by nitload youmu[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[D[C[4
This commit is contained in:
@@ -71,6 +71,7 @@ namespace StgSharp.Graphics.GL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Load an <see cref="Image"/> to certain texture.
|
||||
/// </summary>
|
||||
/// <param name="index"> </param>
|
||||
/// <param name="i"> </param>
|
||||
|
||||
@@ -224,7 +224,7 @@ namespace StgSharp.Graphics.GL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Link the shader to current context.
|
||||
/// Link the shader to current viewPortDisplay.
|
||||
/// </summary>
|
||||
public unsafe void Link()
|
||||
{
|
||||
@@ -247,7 +247,7 @@ namespace StgSharp.Graphics.GL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Let the current context use this shader.
|
||||
/// Let the current viewPortDisplay use this shader.
|
||||
/// </summary>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public unsafe void Use()
|
||||
|
||||
@@ -56,9 +56,9 @@ namespace StgSharp.Graphics.GL
|
||||
private static string glExtensionList;
|
||||
|
||||
/// <summary>
|
||||
/// Load all supported OpenGL APIs and bind them to given <see cref="ViewPort"/> context.
|
||||
/// Load all supported OpenGL APIs and bind them to given <see cref="ViewPort"/> viewPortDisplay.
|
||||
/// </summary>
|
||||
/// <param name="vp">The <see cref="ViewPort"/> used as current OpenGL context</param>
|
||||
/// <param name="vp">The <see cref="ViewPort"/> used as current OpenGL viewPortDisplay</param>
|
||||
public static unsafe void LoadGLapi(this ViewPort vp)
|
||||
{
|
||||
GLcontext* context = (GLcontext*)vp.GraphicHandle;
|
||||
|
||||
@@ -56,11 +56,11 @@ namespace StgSharp.Graphics.GL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Init an OpenGl context if current form has not been binded to any context. and set the context binded to
|
||||
/// current form as current OpenGL context.
|
||||
/// Init an OpenGl viewPortDisplay if current form has not been binded to any viewPortDisplay. and set the viewPortDisplay binded to
|
||||
/// current form as current OpenGL viewPortDisplay.
|
||||
/// </summary>
|
||||
/// <exception cref="Exception">
|
||||
/// Something goes wrong and StgSharp fails in creating a new OpenGL context.
|
||||
/// Something goes wrong and StgSharp fails in creating a new OpenGL viewPortDisplay.
|
||||
/// </exception>
|
||||
public unsafe void MakeAsCurrentContext()
|
||||
{
|
||||
@@ -73,7 +73,6 @@ namespace StgSharp.Graphics.GL
|
||||
if (glFunc.CurrentContextHandle != ContextHandle)
|
||||
{
|
||||
glFunc.CurrentContextHandle = ContextHandle;
|
||||
//Console.WriteLine($"context set as {(ulong)glFunc.CurrentContextHandle}");
|
||||
InternalIO.glfwMakeContextCurrent(CanvasHandle);
|
||||
}
|
||||
}
|
||||
@@ -89,7 +88,6 @@ namespace StgSharp.Graphics.GL
|
||||
in Dictionary<string, BlueprintPipeline> output)
|
||||
{
|
||||
MakeAsCurrentContext();
|
||||
ProcessInput();
|
||||
Main(in input, in output);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user