Moved delegate loaders to the Delegates class

This commit is contained in:
Stefanos A 2013-11-23 17:23:26 +01:00
parent 03a26ed12f
commit 8ee2152709
6 changed files with 22463 additions and 22463 deletions

View file

@ -222,9 +222,6 @@ namespace Bind
d.Name);
}
sw.Unindent();
sw.WriteLine("}");
foreach (var d in delegates.Values.Select(d => d.First()))
{
var load_d = new Delegate(d);
@ -249,6 +246,9 @@ namespace Bind
sw.Unindent();
sw.WriteLine("}");
sw.Unindent();
sw.WriteLine("}");
}
#endregion

View file

@ -1191,7 +1191,6 @@ namespace OpenTK.Graphics.ES11
[SuppressUnmanagedCodeSecurity]
internal delegate void WeightPointerOES(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer);
internal static WeightPointerOES glWeightPointerOES = Load_WeightPointerOES;
}
internal static void Load_AccumxOES(OpenTK.Graphics.ES11.All op, int value)
{
Delegates.glAccumxOES = (Delegates.AccumxOES)GetExtensionDelegateStatic("glAccumxOES", typeof(Delegates.AccumxOES));
@ -3114,3 +3113,4 @@ namespace OpenTK.Graphics.ES11
}
}
}
}

View file

@ -1065,7 +1065,6 @@ namespace OpenTK.Graphics.ES20
[SuppressUnmanagedCodeSecurity]
internal delegate void WaitSyncAPPLE(IntPtr sync, OpenTK.Graphics.ES20.WaitSyncFlags flags, UInt64 timeout);
internal static WaitSyncAPPLE glWaitSyncAPPLE = Load_WaitSyncAPPLE;
}
internal static void Load_ActiveProgramEXT(UInt32 program)
{
Delegates.glActiveProgramEXT = (Delegates.ActiveProgramEXT)GetExtensionDelegateStatic("glActiveProgramEXT", typeof(Delegates.ActiveProgramEXT));
@ -2778,3 +2777,4 @@ namespace OpenTK.Graphics.ES20
}
}
}
}

View file

@ -1377,7 +1377,6 @@ namespace OpenTK.Graphics.ES30
[SuppressUnmanagedCodeSecurity]
internal delegate void WaitSyncAPPLE(IntPtr sync, OpenTK.Graphics.ES30.WaitSyncFlags flags, UInt64 timeout);
internal static WaitSyncAPPLE glWaitSyncAPPLE = Load_WaitSyncAPPLE;
}
internal static void Load_ActiveProgramEXT(UInt32 program)
{
Delegates.glActiveProgramEXT = (Delegates.ActiveProgramEXT)GetExtensionDelegateStatic("glActiveProgramEXT", typeof(Delegates.ActiveProgramEXT));
@ -3610,3 +3609,4 @@ namespace OpenTK.Graphics.ES30
}
}
}
}

View file

@ -7983,7 +7983,6 @@ namespace OpenTK.Graphics.OpenGL
[SuppressUnmanagedCodeSecurity]
internal delegate void WriteMaskEXT(UInt32 res, UInt32 @in, OpenTK.Graphics.OpenGL.ExtVertexShader outX, OpenTK.Graphics.OpenGL.ExtVertexShader outY, OpenTK.Graphics.OpenGL.ExtVertexShader outZ, OpenTK.Graphics.OpenGL.ExtVertexShader outW);
internal static WriteMaskEXT glWriteMaskEXT = Load_WriteMaskEXT;
}
internal static void Load_Accum(OpenTK.Graphics.OpenGL.AccumOp op, Single value)
{
Delegates.glAccum = (Delegates.Accum)GetExtensionDelegateStatic("glAccum", typeof(Delegates.Accum));
@ -21226,3 +21225,4 @@ namespace OpenTK.Graphics.OpenGL
}
}
}
}

View file

@ -2055,7 +2055,6 @@ namespace OpenTK.Graphics.OpenGL4
[SuppressUnmanagedCodeSecurity]
internal delegate OpenTK.Graphics.OpenGL4.WaitSyncStatus WaitSync(IntPtr sync, OpenTK.Graphics.OpenGL4.WaitSyncFlags flags, UInt64 timeout);
internal static WaitSync glWaitSync = Load_WaitSync;
}
internal static void Load_ActiveShaderProgram(UInt32 pipeline, UInt32 program)
{
Delegates.glActiveShaderProgram = (Delegates.ActiveShaderProgram)GetExtensionDelegateStatic("glActiveShaderProgram", typeof(Delegates.ActiveShaderProgram));
@ -5418,3 +5417,4 @@ namespace OpenTK.Graphics.OpenGL4
}
}
}
}