daily update on 20240610 by nitload youmu
This commit is contained in:
@@ -56,15 +56,15 @@ namespace StgSharp.Graphics.GL
|
||||
private static string glExtensionList;
|
||||
|
||||
/// <summary>
|
||||
/// Load all supported OpenGL APIs and bind them to given <see cref="ViewModel"/> context.
|
||||
/// Load all supported OpenGL APIs and bind them to given <see cref="ViewPort"/> context.
|
||||
/// </summary>
|
||||
/// <param name="stream">The <see cref="ViewModel"/> used as current OpenGL context</param>
|
||||
public static unsafe void LoadGLapi(this glRenderStream stream)
|
||||
/// <param name="vp">The <see cref="ViewPort"/> used as current OpenGL context</param>
|
||||
public static unsafe void LoadGLapi(this ViewPort vp)
|
||||
{
|
||||
GLcontext* context = (GLcontext*)stream.ContextHandle;
|
||||
GLcontext* context = (GLcontext*)vp.GraphicHandle;
|
||||
delegate*<string,IntPtr> loader = &InternalIO.glfwGetProcAddress;
|
||||
#pragma warning disable CS8909
|
||||
if (((GLcontext*)stream.ContextHandle)->glGetString != (delegate*<uint, IntPtr>)IntPtr.Zero)
|
||||
if (context->glGetString != (delegate*<uint, IntPtr>)IntPtr.Zero)
|
||||
#pragma warning restore CS8909
|
||||
{
|
||||
return;
|
||||
@@ -102,25 +102,25 @@ namespace StgSharp.Graphics.GL
|
||||
{
|
||||
#region load_core_gl
|
||||
|
||||
LoadGLcore10((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore11((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore12((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore13((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore14((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore15((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore20((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore21((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore30((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore31((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore32((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore33((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore40((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore41((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore42((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore43((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore44((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore45((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore46((GLcontext*)stream.ContextHandle, loader);
|
||||
LoadGLcore10(context, loader);
|
||||
LoadGLcore11(context, loader);
|
||||
LoadGLcore12(context, loader);
|
||||
LoadGLcore13(context, loader);
|
||||
LoadGLcore14(context, loader);
|
||||
LoadGLcore15(context, loader);
|
||||
LoadGLcore20(context, loader);
|
||||
LoadGLcore21(context, loader);
|
||||
LoadGLcore30(context, loader);
|
||||
LoadGLcore31(context, loader);
|
||||
LoadGLcore32(context, loader);
|
||||
LoadGLcore33(context, loader);
|
||||
LoadGLcore40(context, loader);
|
||||
LoadGLcore41(context, loader);
|
||||
LoadGLcore42(context, loader);
|
||||
LoadGLcore43(context, loader);
|
||||
LoadGLcore44(context, loader);
|
||||
LoadGLcore45(context, loader);
|
||||
LoadGLcore46(context, loader);
|
||||
|
||||
#endregion load_core_gl
|
||||
}
|
||||
@@ -777,7 +777,7 @@ namespace StgSharp.Graphics.GL
|
||||
/// <summary>
|
||||
/// Get the function pointer of given OpenGL api name
|
||||
/// </summary>
|
||||
/// <param name="name">Name of the OpenGL api</param>
|
||||
/// <param name="name">ContextName of the OpenGL api</param>
|
||||
/// <returns>The funtion pointer of the api in stream of <see cref="IntPtr"/></returns>
|
||||
public static IntPtr LoadGLfunc(string name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user