From 8a14fdb477ee5be35fed21fadb767120c7a34e20 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 25 Mar 2009 18:15:04 +0000 Subject: [PATCH] Regenerated OpenGL bindings using the latest specs and generator. --- Source/OpenTK/Graphics/GL/GL.cs | 53224 +++++++++++++++++---- Source/OpenTK/Graphics/GL/GLCore.cs | 51 +- Source/OpenTK/Graphics/GL/GLDelegates.cs | 85 +- Source/OpenTK/Graphics/GL/GLEnums.cs | 78 +- 4 files changed, 44548 insertions(+), 8890 deletions(-) diff --git a/Source/OpenTK/Graphics/GL/GL.cs b/Source/OpenTK/Graphics/GL/GL.cs index 47fcb5af..a2734fe6 100644 --- a/Source/OpenTK/Graphics/GL/GL.cs +++ b/Source/OpenTK/Graphics/GL/GL.cs @@ -2,7 +2,7 @@ // // The Open Toolkit Library License // -// Copyright (c) 2006 - 2008 the Open Toolkit library, except where noted. +// Copyright (c) 2006 - 2009 the Open Toolkit library. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -54,7 +54,14 @@ namespace OpenTK.Graphics public static void NewList(UInt32 list, OpenTK.Graphics.ListMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNewList((UInt32)list, (OpenTK.Graphics.ListMode)mode); + #if DEBUG + } + #endif } @@ -82,7 +89,14 @@ namespace OpenTK.Graphics public static void EndList() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndList(); + #if DEBUG + } + #endif } @@ -99,7 +113,14 @@ namespace OpenTK.Graphics public static void CallList(UInt32 list) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCallList((UInt32)list); + #if DEBUG + } + #endif } @@ -141,10 +162,14 @@ namespace OpenTK.Graphics public static void CallLists(Int32 n, OpenTK.Graphics.ListNameType type, IntPtr lists) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists); + #endif + Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists); + #if DEBUG } + #endif } @@ -171,18 +196,22 @@ namespace OpenTK.Graphics void CallLists(Int32 n, OpenTK.Graphics.ListNameType type, [In, Out] ref T2 lists) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); - try - { - Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); - } - finally - { - lists_ptr.Free(); - } + #endif + GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); + try + { + Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); } + finally + { + lists_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -209,18 +238,22 @@ namespace OpenTK.Graphics void CallLists(Int32 n, OpenTK.Graphics.ListNameType type, [In, Out] T2[] lists) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); - try - { - Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); - } - finally - { - lists_ptr.Free(); - } + #endif + GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); + try + { + Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); } + finally + { + lists_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -247,18 +280,22 @@ namespace OpenTK.Graphics void CallLists(Int32 n, OpenTK.Graphics.ListNameType type, [In, Out] T2[,] lists) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); - try - { - Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); - } - finally - { - lists_ptr.Free(); - } + #endif + GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); + try + { + Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); } + finally + { + lists_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -285,18 +322,22 @@ namespace OpenTK.Graphics void CallLists(Int32 n, OpenTK.Graphics.ListNameType type, [In, Out] T2[,,] lists) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); - try - { - Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); - } - finally - { - lists_ptr.Free(); - } + #endif + GCHandle lists_ptr = GCHandle.Alloc(lists, GCHandleType.Pinned); + try + { + Delegates.glCallLists((Int32)n, (OpenTK.Graphics.ListNameType)type, (IntPtr)lists_ptr.AddrOfPinnedObject()); } + finally + { + lists_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -318,7 +359,14 @@ namespace OpenTK.Graphics public static void DeleteLists(UInt32 list, Int32 range) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteLists((UInt32)list, (Int32)range); + #if DEBUG + } + #endif } @@ -355,7 +403,14 @@ namespace OpenTK.Graphics public static Int32 GenLists(Int32 range) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGenLists((Int32)range); + #if DEBUG + } + #endif } @@ -372,7 +427,14 @@ namespace OpenTK.Graphics public static void ListBase(UInt32 @base) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListBase((UInt32)@base); + #if DEBUG + } + #endif } @@ -404,7 +466,15 @@ namespace OpenTK.Graphics public static void Begin(OpenTK.Graphics.BeginMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + GraphicsContext.CurrentContext.EnterBeginRegion(); + #endif Delegates.glBegin((OpenTK.Graphics.BeginMode)mode); + #if DEBUG + } + #endif } @@ -435,6 +505,10 @@ namespace OpenTK.Graphics public static void Bitmap(Int32 width, Int32 height, Single xorig, Single yorig, Single xmove, Single ymove, Byte[] bitmap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* bitmap_ptr = bitmap) @@ -442,6 +516,9 @@ namespace OpenTK.Graphics Delegates.glBitmap((Int32)width, (Int32)height, (Single)xorig, (Single)yorig, (Single)xmove, (Single)ymove, (Byte*)bitmap_ptr); } } + #if DEBUG + } + #endif } @@ -472,6 +549,10 @@ namespace OpenTK.Graphics public static void Bitmap(Int32 width, Int32 height, Single xorig, Single yorig, Single xmove, Single ymove, ref Byte bitmap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* bitmap_ptr = &bitmap) @@ -479,6 +560,9 @@ namespace OpenTK.Graphics Delegates.glBitmap((Int32)width, (Int32)height, (Single)xorig, (Single)yorig, (Single)xmove, (Single)ymove, (Byte*)bitmap_ptr); } } + #if DEBUG + } + #endif } @@ -510,7 +594,14 @@ namespace OpenTK.Graphics public static unsafe void Bitmap(Int32 width, Int32 height, Single xorig, Single yorig, Single xmove, Single ymove, Byte* bitmap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBitmap((Int32)width, (Int32)height, (Single)xorig, (Single)yorig, (Single)xmove, (Single)ymove, (Byte*)bitmap); + #if DEBUG + } + #endif } @@ -532,7 +623,14 @@ namespace OpenTK.Graphics public static void Color3(SByte red, SByte green, SByte blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3b((SByte)red, (SByte)green, (SByte)blue); + #if DEBUG + } + #endif } @@ -554,6 +652,10 @@ namespace OpenTK.Graphics public static void Color3(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -561,6 +663,9 @@ namespace OpenTK.Graphics Delegates.glColor3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -582,6 +687,10 @@ namespace OpenTK.Graphics public static void Color3(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -589,6 +698,9 @@ namespace OpenTK.Graphics Delegates.glColor3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -610,7 +722,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3bv((SByte*)v); + #if DEBUG + } + #endif } @@ -631,7 +750,14 @@ namespace OpenTK.Graphics public static void Color3(Double red, Double green, Double blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3d((Double)red, (Double)green, (Double)blue); + #if DEBUG + } + #endif } @@ -652,6 +778,10 @@ namespace OpenTK.Graphics public static void Color3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -659,6 +789,9 @@ namespace OpenTK.Graphics Delegates.glColor3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -679,6 +812,10 @@ namespace OpenTK.Graphics public static void Color3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -686,6 +823,9 @@ namespace OpenTK.Graphics Delegates.glColor3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -707,7 +847,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3dv((Double*)v); + #if DEBUG + } + #endif } @@ -728,7 +875,14 @@ namespace OpenTK.Graphics public static void Color3(Single red, Single green, Single blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3f((Single)red, (Single)green, (Single)blue); + #if DEBUG + } + #endif } @@ -749,6 +903,10 @@ namespace OpenTK.Graphics public static void Color3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -756,6 +914,9 @@ namespace OpenTK.Graphics Delegates.glColor3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -776,6 +937,10 @@ namespace OpenTK.Graphics public static void Color3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -783,6 +948,9 @@ namespace OpenTK.Graphics Delegates.glColor3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -804,7 +972,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3fv((Single*)v); + #if DEBUG + } + #endif } @@ -825,7 +1000,14 @@ namespace OpenTK.Graphics public static void Color3(Int32 red, Int32 green, Int32 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3i((Int32)red, (Int32)green, (Int32)blue); + #if DEBUG + } + #endif } @@ -846,6 +1028,10 @@ namespace OpenTK.Graphics public static void Color3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -853,6 +1039,9 @@ namespace OpenTK.Graphics Delegates.glColor3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -873,6 +1062,10 @@ namespace OpenTK.Graphics public static void Color3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -880,6 +1073,9 @@ namespace OpenTK.Graphics Delegates.glColor3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -901,7 +1097,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -922,7 +1125,14 @@ namespace OpenTK.Graphics public static void Color3(Int16 red, Int16 green, Int16 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3s((Int16)red, (Int16)green, (Int16)blue); + #if DEBUG + } + #endif } @@ -943,6 +1153,10 @@ namespace OpenTK.Graphics public static void Color3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -950,6 +1164,9 @@ namespace OpenTK.Graphics Delegates.glColor3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -970,6 +1187,10 @@ namespace OpenTK.Graphics public static void Color3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -977,6 +1198,9 @@ namespace OpenTK.Graphics Delegates.glColor3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -998,7 +1222,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -1019,7 +1250,14 @@ namespace OpenTK.Graphics public static void Color3(Byte red, Byte green, Byte blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3ub((Byte)red, (Byte)green, (Byte)blue); + #if DEBUG + } + #endif } @@ -1040,6 +1278,10 @@ namespace OpenTK.Graphics public static void Color3(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -1047,6 +1289,9 @@ namespace OpenTK.Graphics Delegates.glColor3ubv((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1067,6 +1312,10 @@ namespace OpenTK.Graphics public static void Color3(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -1074,6 +1323,9 @@ namespace OpenTK.Graphics Delegates.glColor3ubv((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1095,7 +1347,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3ubv((Byte*)v); + #if DEBUG + } + #endif } @@ -1117,7 +1376,14 @@ namespace OpenTK.Graphics public static void Color3(UInt32 red, UInt32 green, UInt32 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3ui((UInt32)red, (UInt32)green, (UInt32)blue); + #if DEBUG + } + #endif } @@ -1139,6 +1405,10 @@ namespace OpenTK.Graphics public static void Color3(UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -1146,6 +1416,9 @@ namespace OpenTK.Graphics Delegates.glColor3uiv((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1167,6 +1440,10 @@ namespace OpenTK.Graphics public static void Color3(ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -1174,6 +1451,9 @@ namespace OpenTK.Graphics Delegates.glColor3uiv((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1195,7 +1475,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3uiv((UInt32*)v); + #if DEBUG + } + #endif } @@ -1217,7 +1504,14 @@ namespace OpenTK.Graphics public static void Color3(UInt16 red, UInt16 green, UInt16 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3us((UInt16)red, (UInt16)green, (UInt16)blue); + #if DEBUG + } + #endif } @@ -1239,6 +1533,10 @@ namespace OpenTK.Graphics public static void Color3(UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -1246,6 +1544,9 @@ namespace OpenTK.Graphics Delegates.glColor3usv((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1267,6 +1568,10 @@ namespace OpenTK.Graphics public static void Color3(ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -1274,6 +1579,9 @@ namespace OpenTK.Graphics Delegates.glColor3usv((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1295,7 +1603,14 @@ namespace OpenTK.Graphics public static unsafe void Color3(UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3usv((UInt16*)v); + #if DEBUG + } + #endif } @@ -1317,7 +1632,14 @@ namespace OpenTK.Graphics public static void Color4(SByte red, SByte green, SByte blue, SByte alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4b((SByte)red, (SByte)green, (SByte)blue, (SByte)alpha); + #if DEBUG + } + #endif } @@ -1339,6 +1661,10 @@ namespace OpenTK.Graphics public static void Color4(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -1346,6 +1672,9 @@ namespace OpenTK.Graphics Delegates.glColor4bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1367,6 +1696,10 @@ namespace OpenTK.Graphics public static void Color4(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -1374,6 +1707,9 @@ namespace OpenTK.Graphics Delegates.glColor4bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1395,7 +1731,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4bv((SByte*)v); + #if DEBUG + } + #endif } @@ -1416,7 +1759,14 @@ namespace OpenTK.Graphics public static void Color4(Double red, Double green, Double blue, Double alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4d((Double)red, (Double)green, (Double)blue, (Double)alpha); + #if DEBUG + } + #endif } @@ -1437,6 +1787,10 @@ namespace OpenTK.Graphics public static void Color4(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -1444,6 +1798,9 @@ namespace OpenTK.Graphics Delegates.glColor4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1464,6 +1821,10 @@ namespace OpenTK.Graphics public static void Color4(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -1471,6 +1832,9 @@ namespace OpenTK.Graphics Delegates.glColor4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1492,7 +1856,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4dv((Double*)v); + #if DEBUG + } + #endif } @@ -1513,7 +1884,14 @@ namespace OpenTK.Graphics public static void Color4(Single red, Single green, Single blue, Single alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4f((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif } @@ -1534,6 +1912,10 @@ namespace OpenTK.Graphics public static void Color4(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -1541,6 +1923,9 @@ namespace OpenTK.Graphics Delegates.glColor4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1561,6 +1946,10 @@ namespace OpenTK.Graphics public static void Color4(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -1568,6 +1957,9 @@ namespace OpenTK.Graphics Delegates.glColor4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1589,7 +1981,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4fv((Single*)v); + #if DEBUG + } + #endif } @@ -1610,7 +2009,14 @@ namespace OpenTK.Graphics public static void Color4(Int32 red, Int32 green, Int32 blue, Int32 alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4i((Int32)red, (Int32)green, (Int32)blue, (Int32)alpha); + #if DEBUG + } + #endif } @@ -1631,6 +2037,10 @@ namespace OpenTK.Graphics public static void Color4(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -1638,6 +2048,9 @@ namespace OpenTK.Graphics Delegates.glColor4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1658,6 +2071,10 @@ namespace OpenTK.Graphics public static void Color4(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -1665,6 +2082,9 @@ namespace OpenTK.Graphics Delegates.glColor4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1686,7 +2106,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4iv((Int32*)v); + #if DEBUG + } + #endif } @@ -1707,7 +2134,14 @@ namespace OpenTK.Graphics public static void Color4(Int16 red, Int16 green, Int16 blue, Int16 alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4s((Int16)red, (Int16)green, (Int16)blue, (Int16)alpha); + #if DEBUG + } + #endif } @@ -1728,6 +2162,10 @@ namespace OpenTK.Graphics public static void Color4(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -1735,6 +2173,9 @@ namespace OpenTK.Graphics Delegates.glColor4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1755,6 +2196,10 @@ namespace OpenTK.Graphics public static void Color4(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -1762,6 +2207,9 @@ namespace OpenTK.Graphics Delegates.glColor4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1783,7 +2231,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4sv((Int16*)v); + #if DEBUG + } + #endif } @@ -1804,7 +2259,14 @@ namespace OpenTK.Graphics public static void Color4(Byte red, Byte green, Byte blue, Byte alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ub((Byte)red, (Byte)green, (Byte)blue, (Byte)alpha); + #if DEBUG + } + #endif } @@ -1825,6 +2287,10 @@ namespace OpenTK.Graphics public static void Color4(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -1832,6 +2298,9 @@ namespace OpenTK.Graphics Delegates.glColor4ubv((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1852,6 +2321,10 @@ namespace OpenTK.Graphics public static void Color4(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -1859,6 +2332,9 @@ namespace OpenTK.Graphics Delegates.glColor4ubv((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1880,7 +2356,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ubv((Byte*)v); + #if DEBUG + } + #endif } @@ -1902,7 +2385,14 @@ namespace OpenTK.Graphics public static void Color4(UInt32 red, UInt32 green, UInt32 blue, UInt32 alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ui((UInt32)red, (UInt32)green, (UInt32)blue, (UInt32)alpha); + #if DEBUG + } + #endif } @@ -1924,6 +2414,10 @@ namespace OpenTK.Graphics public static void Color4(UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -1931,6 +2425,9 @@ namespace OpenTK.Graphics Delegates.glColor4uiv((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1952,6 +2449,10 @@ namespace OpenTK.Graphics public static void Color4(ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -1959,6 +2460,9 @@ namespace OpenTK.Graphics Delegates.glColor4uiv((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -1980,7 +2484,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4uiv((UInt32*)v); + #if DEBUG + } + #endif } @@ -2002,7 +2513,14 @@ namespace OpenTK.Graphics public static void Color4(UInt16 red, UInt16 green, UInt16 blue, UInt16 alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4us((UInt16)red, (UInt16)green, (UInt16)blue, (UInt16)alpha); + #if DEBUG + } + #endif } @@ -2024,6 +2542,10 @@ namespace OpenTK.Graphics public static void Color4(UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -2031,6 +2553,9 @@ namespace OpenTK.Graphics Delegates.glColor4usv((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2052,6 +2577,10 @@ namespace OpenTK.Graphics public static void Color4(ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -2059,6 +2588,9 @@ namespace OpenTK.Graphics Delegates.glColor4usv((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2080,7 +2612,14 @@ namespace OpenTK.Graphics public static unsafe void Color4(UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4usv((UInt16*)v); + #if DEBUG + } + #endif } @@ -2096,13 +2635,24 @@ namespace OpenTK.Graphics public static void EdgeFlag(bool flag) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEdgeFlag((bool)flag); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glEdgeFlagv")] public static void EdgeFlagv(bool[] flag) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* flag_ptr = flag) @@ -2110,12 +2660,19 @@ namespace OpenTK.Graphics Delegates.glEdgeFlagv((bool*)flag_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glEdgeFlagv")] public static void EdgeFlagv(ref bool flag) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* flag_ptr = &flag) @@ -2123,6 +2680,9 @@ namespace OpenTK.Graphics Delegates.glEdgeFlagv((bool*)flag_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -2130,14 +2690,29 @@ namespace OpenTK.Graphics public static unsafe void EdgeFlagv(bool* flag) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEdgeFlagv((bool*)flag); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glEnd")] public static void End() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnd(); + #if DEBUG + GraphicsContext.CurrentContext.ExitBeginRegion(); + } + #endif } @@ -2156,13 +2731,24 @@ namespace OpenTK.Graphics public static void Index(Double c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexd((Double)c); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexdv")] public static void Indexv(Double[] c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* c_ptr = c) @@ -2170,12 +2756,19 @@ namespace OpenTK.Graphics Delegates.glIndexdv((Double*)c_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexdv")] public static void Indexv(ref Double c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* c_ptr = &c) @@ -2183,6 +2776,9 @@ namespace OpenTK.Graphics Delegates.glIndexdv((Double*)c_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -2190,7 +2786,14 @@ namespace OpenTK.Graphics public static unsafe void Indexv(Double* c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexdv((Double*)c); + #if DEBUG + } + #endif } @@ -2209,13 +2812,24 @@ namespace OpenTK.Graphics public static void Index(Single c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexf((Single)c); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexfv")] public static void Indexv(Single[] c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* c_ptr = c) @@ -2223,12 +2837,19 @@ namespace OpenTK.Graphics Delegates.glIndexfv((Single*)c_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexfv")] public static void Indexv(ref Single c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* c_ptr = &c) @@ -2236,6 +2857,9 @@ namespace OpenTK.Graphics Delegates.glIndexfv((Single*)c_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -2243,7 +2867,14 @@ namespace OpenTK.Graphics public static unsafe void Indexv(Single* c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexfv((Single*)c); + #if DEBUG + } + #endif } @@ -2262,13 +2893,24 @@ namespace OpenTK.Graphics public static void Index(Int32 c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexi((Int32)c); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexiv")] public static void Indexv(Int32[] c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* c_ptr = c) @@ -2276,12 +2918,19 @@ namespace OpenTK.Graphics Delegates.glIndexiv((Int32*)c_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexiv")] public static void Indexv(ref Int32 c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* c_ptr = &c) @@ -2289,6 +2938,9 @@ namespace OpenTK.Graphics Delegates.glIndexiv((Int32*)c_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -2296,7 +2948,14 @@ namespace OpenTK.Graphics public static unsafe void Indexv(Int32* c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexiv((Int32*)c); + #if DEBUG + } + #endif } @@ -2315,13 +2974,24 @@ namespace OpenTK.Graphics public static void Index(Int16 c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexs((Int16)c); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexsv")] public static void Indexv(Int16[] c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* c_ptr = c) @@ -2329,12 +2999,19 @@ namespace OpenTK.Graphics Delegates.glIndexsv((Int16*)c_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glIndexsv")] public static void Indexv(ref Int16 c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* c_ptr = &c) @@ -2342,6 +3019,9 @@ namespace OpenTK.Graphics Delegates.glIndexsv((Int16*)c_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -2349,7 +3029,14 @@ namespace OpenTK.Graphics public static unsafe void Indexv(Int16* c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexsv((Int16*)c); + #if DEBUG + } + #endif } @@ -2369,7 +3056,14 @@ namespace OpenTK.Graphics public static void Normal3(SByte nx, SByte ny, SByte nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3b((SByte)nx, (SByte)ny, (SByte)nz); + #if DEBUG + } + #endif } @@ -2408,6 +3102,10 @@ namespace OpenTK.Graphics public static void Normal3(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -2415,6 +3113,9 @@ namespace OpenTK.Graphics Delegates.glNormal3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2433,6 +3134,10 @@ namespace OpenTK.Graphics public static void Normal3(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -2440,6 +3145,9 @@ namespace OpenTK.Graphics Delegates.glNormal3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2459,6 +3167,10 @@ namespace OpenTK.Graphics public static void Normal3(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -2466,6 +3178,9 @@ namespace OpenTK.Graphics Delegates.glNormal3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2484,6 +3199,10 @@ namespace OpenTK.Graphics public static void Normal3(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -2491,6 +3210,9 @@ namespace OpenTK.Graphics Delegates.glNormal3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2510,7 +3232,14 @@ namespace OpenTK.Graphics public static unsafe void Normal3(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3bv((SByte*)v); + #if DEBUG + } + #endif } @@ -2530,7 +3259,14 @@ namespace OpenTK.Graphics public static unsafe void Normal3(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3bv((SByte*)v); + #if DEBUG + } + #endif } @@ -2549,7 +3285,14 @@ namespace OpenTK.Graphics public static void Normal3(Double nx, Double ny, Double nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3d((Double)nx, (Double)ny, (Double)nz); + #if DEBUG + } + #endif } @@ -2568,6 +3311,10 @@ namespace OpenTK.Graphics public static void Normal3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -2575,6 +3322,9 @@ namespace OpenTK.Graphics Delegates.glNormal3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2593,6 +3343,10 @@ namespace OpenTK.Graphics public static void Normal3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -2600,6 +3354,9 @@ namespace OpenTK.Graphics Delegates.glNormal3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2619,7 +3376,14 @@ namespace OpenTK.Graphics public static unsafe void Normal3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3dv((Double*)v); + #if DEBUG + } + #endif } @@ -2638,7 +3402,14 @@ namespace OpenTK.Graphics public static void Normal3(Single nx, Single ny, Single nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3f((Single)nx, (Single)ny, (Single)nz); + #if DEBUG + } + #endif } @@ -2657,6 +3428,10 @@ namespace OpenTK.Graphics public static void Normal3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -2664,6 +3439,9 @@ namespace OpenTK.Graphics Delegates.glNormal3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2682,6 +3460,10 @@ namespace OpenTK.Graphics public static void Normal3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -2689,6 +3471,9 @@ namespace OpenTK.Graphics Delegates.glNormal3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2708,7 +3493,14 @@ namespace OpenTK.Graphics public static unsafe void Normal3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3fv((Single*)v); + #if DEBUG + } + #endif } @@ -2727,7 +3519,14 @@ namespace OpenTK.Graphics public static void Normal3(Int32 nx, Int32 ny, Int32 nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3i((Int32)nx, (Int32)ny, (Int32)nz); + #if DEBUG + } + #endif } @@ -2746,6 +3545,10 @@ namespace OpenTK.Graphics public static void Normal3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -2753,6 +3556,9 @@ namespace OpenTK.Graphics Delegates.glNormal3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2771,6 +3577,10 @@ namespace OpenTK.Graphics public static void Normal3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -2778,6 +3588,9 @@ namespace OpenTK.Graphics Delegates.glNormal3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2797,7 +3610,14 @@ namespace OpenTK.Graphics public static unsafe void Normal3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -2816,7 +3636,14 @@ namespace OpenTK.Graphics public static void Normal3(Int16 nx, Int16 ny, Int16 nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3s((Int16)nx, (Int16)ny, (Int16)nz); + #if DEBUG + } + #endif } @@ -2835,6 +3662,10 @@ namespace OpenTK.Graphics public static void Normal3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -2842,6 +3673,9 @@ namespace OpenTK.Graphics Delegates.glNormal3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2860,6 +3694,10 @@ namespace OpenTK.Graphics public static void Normal3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -2867,6 +3705,9 @@ namespace OpenTK.Graphics Delegates.glNormal3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2886,7 +3727,14 @@ namespace OpenTK.Graphics public static unsafe void Normal3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -2902,7 +3750,14 @@ namespace OpenTK.Graphics public static void RasterPos2(Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2d((Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -2918,6 +3773,10 @@ namespace OpenTK.Graphics public static void RasterPos2(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -2925,6 +3784,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2940,6 +3802,10 @@ namespace OpenTK.Graphics public static void RasterPos2(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -2947,6 +3813,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -2963,7 +3832,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos2(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2dv((Double*)v); + #if DEBUG + } + #endif } @@ -2979,7 +3855,14 @@ namespace OpenTK.Graphics public static void RasterPos2(Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2f((Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -2995,6 +3878,10 @@ namespace OpenTK.Graphics public static void RasterPos2(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -3002,6 +3889,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3017,6 +3907,10 @@ namespace OpenTK.Graphics public static void RasterPos2(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -3024,6 +3918,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3040,7 +3937,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos2(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2fv((Single*)v); + #if DEBUG + } + #endif } @@ -3056,7 +3960,14 @@ namespace OpenTK.Graphics public static void RasterPos2(Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2i((Int32)x, (Int32)y); + #if DEBUG + } + #endif } @@ -3072,6 +3983,10 @@ namespace OpenTK.Graphics public static void RasterPos2(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -3079,6 +3994,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3094,6 +4012,10 @@ namespace OpenTK.Graphics public static void RasterPos2(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -3101,6 +4023,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3117,7 +4042,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos2(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2iv((Int32*)v); + #if DEBUG + } + #endif } @@ -3133,7 +4065,14 @@ namespace OpenTK.Graphics public static void RasterPos2(Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2s((Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -3149,6 +4088,10 @@ namespace OpenTK.Graphics public static void RasterPos2(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -3156,6 +4099,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3171,6 +4117,10 @@ namespace OpenTK.Graphics public static void RasterPos2(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -3178,6 +4128,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3194,7 +4147,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos2(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos2sv((Int16*)v); + #if DEBUG + } + #endif } @@ -3210,7 +4170,14 @@ namespace OpenTK.Graphics public static void RasterPos3(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3d((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -3226,6 +4193,10 @@ namespace OpenTK.Graphics public static void RasterPos3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -3233,6 +4204,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3248,6 +4222,10 @@ namespace OpenTK.Graphics public static void RasterPos3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -3255,6 +4233,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3271,7 +4252,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3dv((Double*)v); + #if DEBUG + } + #endif } @@ -3287,7 +4275,14 @@ namespace OpenTK.Graphics public static void RasterPos3(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3f((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -3303,6 +4298,10 @@ namespace OpenTK.Graphics public static void RasterPos3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -3310,6 +4309,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3325,6 +4327,10 @@ namespace OpenTK.Graphics public static void RasterPos3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -3332,6 +4338,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3348,7 +4357,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3fv((Single*)v); + #if DEBUG + } + #endif } @@ -3364,7 +4380,14 @@ namespace OpenTK.Graphics public static void RasterPos3(Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3i((Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } @@ -3380,6 +4403,10 @@ namespace OpenTK.Graphics public static void RasterPos3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -3387,6 +4414,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3402,6 +4432,10 @@ namespace OpenTK.Graphics public static void RasterPos3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -3409,6 +4443,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3425,7 +4462,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -3441,7 +4485,14 @@ namespace OpenTK.Graphics public static void RasterPos3(Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3s((Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -3457,6 +4508,10 @@ namespace OpenTK.Graphics public static void RasterPos3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -3464,6 +4519,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3479,6 +4537,10 @@ namespace OpenTK.Graphics public static void RasterPos3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -3486,6 +4548,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3502,7 +4567,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -3518,7 +4590,14 @@ namespace OpenTK.Graphics public static void RasterPos4(Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4d((Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } @@ -3534,6 +4613,10 @@ namespace OpenTK.Graphics public static void RasterPos4(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -3541,6 +4624,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3556,6 +4642,10 @@ namespace OpenTK.Graphics public static void RasterPos4(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -3563,6 +4653,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3579,7 +4672,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos4(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4dv((Double*)v); + #if DEBUG + } + #endif } @@ -3595,7 +4695,14 @@ namespace OpenTK.Graphics public static void RasterPos4(Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4f((Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } @@ -3611,6 +4718,10 @@ namespace OpenTK.Graphics public static void RasterPos4(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -3618,6 +4729,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3633,6 +4747,10 @@ namespace OpenTK.Graphics public static void RasterPos4(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -3640,6 +4758,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3656,7 +4777,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos4(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4fv((Single*)v); + #if DEBUG + } + #endif } @@ -3672,7 +4800,14 @@ namespace OpenTK.Graphics public static void RasterPos4(Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4i((Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } @@ -3688,6 +4823,10 @@ namespace OpenTK.Graphics public static void RasterPos4(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -3695,6 +4834,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3710,6 +4852,10 @@ namespace OpenTK.Graphics public static void RasterPos4(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -3717,6 +4863,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3733,7 +4882,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos4(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4iv((Int32*)v); + #if DEBUG + } + #endif } @@ -3749,7 +4905,14 @@ namespace OpenTK.Graphics public static void RasterPos4(Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4s((Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } @@ -3765,6 +4928,10 @@ namespace OpenTK.Graphics public static void RasterPos4(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -3772,6 +4939,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3787,6 +4957,10 @@ namespace OpenTK.Graphics public static void RasterPos4(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -3794,6 +4968,9 @@ namespace OpenTK.Graphics Delegates.glRasterPos4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -3810,7 +4987,14 @@ namespace OpenTK.Graphics public static unsafe void RasterPos4(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRasterPos4sv((Int16*)v); + #if DEBUG + } + #endif } @@ -3831,7 +5015,14 @@ namespace OpenTK.Graphics public static void Rect(Double x1, Double y1, Double x2, Double y2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRectd((Double)x1, (Double)y1, (Double)x2, (Double)y2); + #if DEBUG + } + #endif } @@ -3852,6 +5043,10 @@ namespace OpenTK.Graphics public static void Rect(Double[] v1, Double[] v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v1_ptr = v1) @@ -3860,6 +5055,9 @@ namespace OpenTK.Graphics Delegates.glRectdv((Double*)v1_ptr, (Double*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -3880,6 +5078,10 @@ namespace OpenTK.Graphics public static void Rect(ref Double v1, ref Double v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v1_ptr = &v1) @@ -3888,6 +5090,9 @@ namespace OpenTK.Graphics Delegates.glRectdv((Double*)v1_ptr, (Double*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -3909,7 +5114,14 @@ namespace OpenTK.Graphics public static unsafe void Rect(Double* v1, Double* v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRectdv((Double*)v1, (Double*)v2); + #if DEBUG + } + #endif } @@ -3930,7 +5142,14 @@ namespace OpenTK.Graphics public static void Rect(Single x1, Single y1, Single x2, Single y2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRectf((Single)x1, (Single)y1, (Single)x2, (Single)y2); + #if DEBUG + } + #endif } @@ -3951,6 +5170,10 @@ namespace OpenTK.Graphics public static void Rect(Single[] v1, Single[] v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v1_ptr = v1) @@ -3959,6 +5182,9 @@ namespace OpenTK.Graphics Delegates.glRectfv((Single*)v1_ptr, (Single*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -3979,6 +5205,10 @@ namespace OpenTK.Graphics public static void Rect(ref Single v1, ref Single v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v1_ptr = &v1) @@ -3987,6 +5217,9 @@ namespace OpenTK.Graphics Delegates.glRectfv((Single*)v1_ptr, (Single*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -4008,7 +5241,14 @@ namespace OpenTK.Graphics public static unsafe void Rect(Single* v1, Single* v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRectfv((Single*)v1, (Single*)v2); + #if DEBUG + } + #endif } @@ -4029,7 +5269,14 @@ namespace OpenTK.Graphics public static void Rect(Int32 x1, Int32 y1, Int32 x2, Int32 y2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRecti((Int32)x1, (Int32)y1, (Int32)x2, (Int32)y2); + #if DEBUG + } + #endif } @@ -4050,6 +5297,10 @@ namespace OpenTK.Graphics public static void Rect(Int32[] v1, Int32[] v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v1_ptr = v1) @@ -4058,6 +5309,9 @@ namespace OpenTK.Graphics Delegates.glRectiv((Int32*)v1_ptr, (Int32*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -4078,6 +5332,10 @@ namespace OpenTK.Graphics public static void Rect(ref Int32 v1, ref Int32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v1_ptr = &v1) @@ -4086,6 +5344,9 @@ namespace OpenTK.Graphics Delegates.glRectiv((Int32*)v1_ptr, (Int32*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -4107,14 +5368,28 @@ namespace OpenTK.Graphics public static unsafe void Rect(Int32* v1, Int32* v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRectiv((Int32*)v1, (Int32*)v2); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glRects")] public static void Rects(Int16 x1, Int16 y1, Int16 x2, Int16 y2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRects((Int16)x1, (Int16)y1, (Int16)x2, (Int16)y2); + #if DEBUG + } + #endif } @@ -4135,6 +5410,10 @@ namespace OpenTK.Graphics public static void Rect(Int16[] v1, Int16[] v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v1_ptr = v1) @@ -4143,6 +5422,9 @@ namespace OpenTK.Graphics Delegates.glRectsv((Int16*)v1_ptr, (Int16*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -4163,6 +5445,10 @@ namespace OpenTK.Graphics public static void Rect(ref Int16 v1, ref Int16 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v1_ptr = &v1) @@ -4171,6 +5457,9 @@ namespace OpenTK.Graphics Delegates.glRectsv((Int16*)v1_ptr, (Int16*)v2_ptr); } } + #if DEBUG + } + #endif } @@ -4192,7 +5481,14 @@ namespace OpenTK.Graphics public static unsafe void Rect(Int16* v1, Int16* v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRectsv((Int16*)v1, (Int16*)v2); + #if DEBUG + } + #endif } @@ -4208,13 +5504,24 @@ namespace OpenTK.Graphics public static void TexCoord1(Double s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1d((Double)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1dv")] public static void TexCoord1v(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -4222,12 +5529,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord1dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1dv")] public static void TexCoord1v(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -4235,6 +5549,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord1dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -4242,7 +5559,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord1v(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1dv((Double*)v); + #if DEBUG + } + #endif } @@ -4258,13 +5582,24 @@ namespace OpenTK.Graphics public static void TexCoord1(Single s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1f((Single)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1fv")] public static void TexCoord1v(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -4272,12 +5607,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord1fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1fv")] public static void TexCoord1v(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -4285,6 +5627,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord1fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -4292,7 +5637,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord1v(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1fv((Single*)v); + #if DEBUG + } + #endif } @@ -4308,13 +5660,24 @@ namespace OpenTK.Graphics public static void TexCoord1(Int32 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1i((Int32)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1iv")] public static void TexCoord1v(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -4322,12 +5685,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord1iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1iv")] public static void TexCoord1v(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -4335,6 +5705,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord1iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -4342,7 +5715,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord1v(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1iv((Int32*)v); + #if DEBUG + } + #endif } @@ -4358,13 +5738,24 @@ namespace OpenTK.Graphics public static void TexCoord1(Int16 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1s((Int16)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1sv")] public static void TexCoord1v(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -4372,12 +5763,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord1sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Drawing", Version = "1.0", EntryPoint = "glTexCoord1sv")] public static void TexCoord1v(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -4385,6 +5783,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord1sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -4392,7 +5793,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord1v(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1sv((Int16*)v); + #if DEBUG + } + #endif } @@ -4408,7 +5816,14 @@ namespace OpenTK.Graphics public static void TexCoord2(Double s, Double t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2d((Double)s, (Double)t); + #if DEBUG + } + #endif } @@ -4424,6 +5839,10 @@ namespace OpenTK.Graphics public static void TexCoord2(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -4431,6 +5850,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4446,6 +5868,10 @@ namespace OpenTK.Graphics public static void TexCoord2(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -4453,6 +5879,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4469,7 +5898,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2dv((Double*)v); + #if DEBUG + } + #endif } @@ -4485,7 +5921,14 @@ namespace OpenTK.Graphics public static void TexCoord2(Single s, Single t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2f((Single)s, (Single)t); + #if DEBUG + } + #endif } @@ -4501,6 +5944,10 @@ namespace OpenTK.Graphics public static void TexCoord2(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -4508,6 +5955,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4523,6 +5973,10 @@ namespace OpenTK.Graphics public static void TexCoord2(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -4530,6 +5984,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4546,7 +6003,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fv((Single*)v); + #if DEBUG + } + #endif } @@ -4562,7 +6026,14 @@ namespace OpenTK.Graphics public static void TexCoord2(Int32 s, Int32 t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2i((Int32)s, (Int32)t); + #if DEBUG + } + #endif } @@ -4578,6 +6049,10 @@ namespace OpenTK.Graphics public static void TexCoord2(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -4585,6 +6060,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4600,6 +6078,10 @@ namespace OpenTK.Graphics public static void TexCoord2(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -4607,6 +6089,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4623,7 +6108,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2iv((Int32*)v); + #if DEBUG + } + #endif } @@ -4639,7 +6131,14 @@ namespace OpenTK.Graphics public static void TexCoord2(Int16 s, Int16 t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2s((Int16)s, (Int16)t); + #if DEBUG + } + #endif } @@ -4655,6 +6154,10 @@ namespace OpenTK.Graphics public static void TexCoord2(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -4662,6 +6165,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4677,6 +6183,10 @@ namespace OpenTK.Graphics public static void TexCoord2(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -4684,6 +6194,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4700,7 +6213,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2sv((Int16*)v); + #if DEBUG + } + #endif } @@ -4716,7 +6236,14 @@ namespace OpenTK.Graphics public static void TexCoord3(Double s, Double t, Double r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3d((Double)s, (Double)t, (Double)r); + #if DEBUG + } + #endif } @@ -4732,6 +6259,10 @@ namespace OpenTK.Graphics public static void TexCoord3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -4739,6 +6270,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4754,6 +6288,10 @@ namespace OpenTK.Graphics public static void TexCoord3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -4761,6 +6299,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4777,7 +6318,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3dv((Double*)v); + #if DEBUG + } + #endif } @@ -4793,7 +6341,14 @@ namespace OpenTK.Graphics public static void TexCoord3(Single s, Single t, Single r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3f((Single)s, (Single)t, (Single)r); + #if DEBUG + } + #endif } @@ -4809,6 +6364,10 @@ namespace OpenTK.Graphics public static void TexCoord3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -4816,6 +6375,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4831,6 +6393,10 @@ namespace OpenTK.Graphics public static void TexCoord3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -4838,6 +6404,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4854,7 +6423,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3fv((Single*)v); + #if DEBUG + } + #endif } @@ -4870,7 +6446,14 @@ namespace OpenTK.Graphics public static void TexCoord3(Int32 s, Int32 t, Int32 r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3i((Int32)s, (Int32)t, (Int32)r); + #if DEBUG + } + #endif } @@ -4886,6 +6469,10 @@ namespace OpenTK.Graphics public static void TexCoord3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -4893,6 +6480,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4908,6 +6498,10 @@ namespace OpenTK.Graphics public static void TexCoord3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -4915,6 +6509,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4931,7 +6528,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -4947,7 +6551,14 @@ namespace OpenTK.Graphics public static void TexCoord3(Int16 s, Int16 t, Int16 r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3s((Int16)s, (Int16)t, (Int16)r); + #if DEBUG + } + #endif } @@ -4963,6 +6574,10 @@ namespace OpenTK.Graphics public static void TexCoord3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -4970,6 +6585,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -4985,6 +6603,10 @@ namespace OpenTK.Graphics public static void TexCoord3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -4992,6 +6614,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5008,7 +6633,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -5024,7 +6656,14 @@ namespace OpenTK.Graphics public static void TexCoord4(Double s, Double t, Double r, Double q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4d((Double)s, (Double)t, (Double)r, (Double)q); + #if DEBUG + } + #endif } @@ -5040,6 +6679,10 @@ namespace OpenTK.Graphics public static void TexCoord4(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -5047,6 +6690,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5062,6 +6708,10 @@ namespace OpenTK.Graphics public static void TexCoord4(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -5069,6 +6719,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5085,7 +6738,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4dv((Double*)v); + #if DEBUG + } + #endif } @@ -5101,7 +6761,14 @@ namespace OpenTK.Graphics public static void TexCoord4(Single s, Single t, Single r, Single q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4f((Single)s, (Single)t, (Single)r, (Single)q); + #if DEBUG + } + #endif } @@ -5117,6 +6784,10 @@ namespace OpenTK.Graphics public static void TexCoord4(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -5124,6 +6795,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5139,6 +6813,10 @@ namespace OpenTK.Graphics public static void TexCoord4(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -5146,6 +6824,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5162,7 +6843,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4fv((Single*)v); + #if DEBUG + } + #endif } @@ -5178,7 +6866,14 @@ namespace OpenTK.Graphics public static void TexCoord4(Int32 s, Int32 t, Int32 r, Int32 q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4i((Int32)s, (Int32)t, (Int32)r, (Int32)q); + #if DEBUG + } + #endif } @@ -5194,6 +6889,10 @@ namespace OpenTK.Graphics public static void TexCoord4(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -5201,6 +6900,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5216,6 +6918,10 @@ namespace OpenTK.Graphics public static void TexCoord4(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -5223,6 +6929,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5239,7 +6948,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4iv((Int32*)v); + #if DEBUG + } + #endif } @@ -5255,7 +6971,14 @@ namespace OpenTK.Graphics public static void TexCoord4(Int16 s, Int16 t, Int16 r, Int16 q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4s((Int16)s, (Int16)t, (Int16)r, (Int16)q); + #if DEBUG + } + #endif } @@ -5271,6 +6994,10 @@ namespace OpenTK.Graphics public static void TexCoord4(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -5278,6 +7005,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5293,6 +7023,10 @@ namespace OpenTK.Graphics public static void TexCoord4(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -5300,6 +7034,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5316,7 +7053,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4sv((Int16*)v); + #if DEBUG + } + #endif } @@ -5332,7 +7076,14 @@ namespace OpenTK.Graphics public static void Vertex2(Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2d((Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -5348,6 +7099,10 @@ namespace OpenTK.Graphics public static void Vertex2(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -5355,6 +7110,9 @@ namespace OpenTK.Graphics Delegates.glVertex2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5370,6 +7128,10 @@ namespace OpenTK.Graphics public static void Vertex2(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -5377,6 +7139,9 @@ namespace OpenTK.Graphics Delegates.glVertex2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5393,7 +7158,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex2(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2dv((Double*)v); + #if DEBUG + } + #endif } @@ -5409,7 +7181,14 @@ namespace OpenTK.Graphics public static void Vertex2(Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2f((Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -5425,6 +7204,10 @@ namespace OpenTK.Graphics public static void Vertex2(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -5432,6 +7215,9 @@ namespace OpenTK.Graphics Delegates.glVertex2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5447,6 +7233,10 @@ namespace OpenTK.Graphics public static void Vertex2(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -5454,6 +7244,9 @@ namespace OpenTK.Graphics Delegates.glVertex2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5470,7 +7263,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex2(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2fv((Single*)v); + #if DEBUG + } + #endif } @@ -5486,7 +7286,14 @@ namespace OpenTK.Graphics public static void Vertex2(Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2i((Int32)x, (Int32)y); + #if DEBUG + } + #endif } @@ -5502,6 +7309,10 @@ namespace OpenTK.Graphics public static void Vertex2(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -5509,6 +7320,9 @@ namespace OpenTK.Graphics Delegates.glVertex2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5524,6 +7338,10 @@ namespace OpenTK.Graphics public static void Vertex2(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -5531,6 +7349,9 @@ namespace OpenTK.Graphics Delegates.glVertex2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5547,7 +7368,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex2(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2iv((Int32*)v); + #if DEBUG + } + #endif } @@ -5563,7 +7391,14 @@ namespace OpenTK.Graphics public static void Vertex2(Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2s((Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -5579,6 +7414,10 @@ namespace OpenTK.Graphics public static void Vertex2(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -5586,6 +7425,9 @@ namespace OpenTK.Graphics Delegates.glVertex2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5601,6 +7443,10 @@ namespace OpenTK.Graphics public static void Vertex2(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -5608,6 +7454,9 @@ namespace OpenTK.Graphics Delegates.glVertex2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5624,7 +7473,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex2(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2sv((Int16*)v); + #if DEBUG + } + #endif } @@ -5640,7 +7496,14 @@ namespace OpenTK.Graphics public static void Vertex3(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3d((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -5656,6 +7519,10 @@ namespace OpenTK.Graphics public static void Vertex3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -5663,6 +7530,9 @@ namespace OpenTK.Graphics Delegates.glVertex3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5678,6 +7548,10 @@ namespace OpenTK.Graphics public static void Vertex3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -5685,6 +7559,9 @@ namespace OpenTK.Graphics Delegates.glVertex3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5701,7 +7578,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3dv((Double*)v); + #if DEBUG + } + #endif } @@ -5717,7 +7601,14 @@ namespace OpenTK.Graphics public static void Vertex3(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3f((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -5733,6 +7624,10 @@ namespace OpenTK.Graphics public static void Vertex3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -5740,6 +7635,9 @@ namespace OpenTK.Graphics Delegates.glVertex3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5755,6 +7653,10 @@ namespace OpenTK.Graphics public static void Vertex3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -5762,6 +7664,9 @@ namespace OpenTK.Graphics Delegates.glVertex3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5778,7 +7683,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3fv((Single*)v); + #if DEBUG + } + #endif } @@ -5794,7 +7706,14 @@ namespace OpenTK.Graphics public static void Vertex3(Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3i((Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } @@ -5810,6 +7729,10 @@ namespace OpenTK.Graphics public static void Vertex3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -5817,6 +7740,9 @@ namespace OpenTK.Graphics Delegates.glVertex3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5832,6 +7758,10 @@ namespace OpenTK.Graphics public static void Vertex3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -5839,6 +7769,9 @@ namespace OpenTK.Graphics Delegates.glVertex3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5855,7 +7788,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -5871,7 +7811,14 @@ namespace OpenTK.Graphics public static void Vertex3(Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3s((Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -5887,6 +7834,10 @@ namespace OpenTK.Graphics public static void Vertex3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -5894,6 +7845,9 @@ namespace OpenTK.Graphics Delegates.glVertex3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5909,6 +7863,10 @@ namespace OpenTK.Graphics public static void Vertex3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -5916,6 +7874,9 @@ namespace OpenTK.Graphics Delegates.glVertex3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5932,7 +7893,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -5948,7 +7916,14 @@ namespace OpenTK.Graphics public static void Vertex4(Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4d((Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } @@ -5964,6 +7939,10 @@ namespace OpenTK.Graphics public static void Vertex4(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -5971,6 +7950,9 @@ namespace OpenTK.Graphics Delegates.glVertex4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -5986,6 +7968,10 @@ namespace OpenTK.Graphics public static void Vertex4(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -5993,6 +7979,9 @@ namespace OpenTK.Graphics Delegates.glVertex4dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6009,7 +7998,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex4(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4dv((Double*)v); + #if DEBUG + } + #endif } @@ -6025,7 +8021,14 @@ namespace OpenTK.Graphics public static void Vertex4(Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4f((Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } @@ -6041,6 +8044,10 @@ namespace OpenTK.Graphics public static void Vertex4(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -6048,6 +8055,9 @@ namespace OpenTK.Graphics Delegates.glVertex4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6063,6 +8073,10 @@ namespace OpenTK.Graphics public static void Vertex4(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -6070,6 +8084,9 @@ namespace OpenTK.Graphics Delegates.glVertex4fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6086,7 +8103,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex4(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4fv((Single*)v); + #if DEBUG + } + #endif } @@ -6102,7 +8126,14 @@ namespace OpenTK.Graphics public static void Vertex4(Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4i((Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } @@ -6118,6 +8149,10 @@ namespace OpenTK.Graphics public static void Vertex4(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -6125,6 +8160,9 @@ namespace OpenTK.Graphics Delegates.glVertex4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6140,6 +8178,10 @@ namespace OpenTK.Graphics public static void Vertex4(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -6147,6 +8189,9 @@ namespace OpenTK.Graphics Delegates.glVertex4iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6163,7 +8208,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex4(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4iv((Int32*)v); + #if DEBUG + } + #endif } @@ -6179,7 +8231,14 @@ namespace OpenTK.Graphics public static void Vertex4(Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4s((Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } @@ -6195,6 +8254,10 @@ namespace OpenTK.Graphics public static void Vertex4(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -6202,6 +8265,9 @@ namespace OpenTK.Graphics Delegates.glVertex4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6217,6 +8283,10 @@ namespace OpenTK.Graphics public static void Vertex4(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -6224,6 +8294,9 @@ namespace OpenTK.Graphics Delegates.glVertex4sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -6240,7 +8313,14 @@ namespace OpenTK.Graphics public static unsafe void Vertex4(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4sv((Int16*)v); + #if DEBUG + } + #endif } @@ -6261,6 +8341,10 @@ namespace OpenTK.Graphics public static void ClipPlane(OpenTK.Graphics.ClipPlaneName plane, Double[] equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* equation_ptr = equation) @@ -6268,6 +8352,9 @@ namespace OpenTK.Graphics Delegates.glClipPlane((OpenTK.Graphics.ClipPlaneName)plane, (Double*)equation_ptr); } } + #if DEBUG + } + #endif } @@ -6288,6 +8375,10 @@ namespace OpenTK.Graphics public static void ClipPlane(OpenTK.Graphics.ClipPlaneName plane, ref Double equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* equation_ptr = &equation) @@ -6295,6 +8386,9 @@ namespace OpenTK.Graphics Delegates.glClipPlane((OpenTK.Graphics.ClipPlaneName)plane, (Double*)equation_ptr); } } + #if DEBUG + } + #endif } @@ -6316,7 +8410,14 @@ namespace OpenTK.Graphics public static unsafe void ClipPlane(OpenTK.Graphics.ClipPlaneName plane, Double* equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClipPlane((OpenTK.Graphics.ClipPlaneName)plane, (Double*)equation); + #if DEBUG + } + #endif } @@ -6337,7 +8438,14 @@ namespace OpenTK.Graphics public static void ColorMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.ColorMaterialParameter mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorMaterial((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.ColorMaterialParameter)mode); + #if DEBUG + } + #endif } @@ -6353,7 +8461,14 @@ namespace OpenTK.Graphics public static void CullFace(OpenTK.Graphics.CullFaceMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCullFace((OpenTK.Graphics.CullFaceMode)mode); + #if DEBUG + } + #endif } @@ -6374,13 +8489,24 @@ namespace OpenTK.Graphics public static void Fog(OpenTK.Graphics.FogParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogf((OpenTK.Graphics.FogParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glFogfv")] public static void Fogv(OpenTK.Graphics.FogParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -6388,12 +8514,19 @@ namespace OpenTK.Graphics Delegates.glFogfv((OpenTK.Graphics.FogParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glFogfv")] public static void Fogv(OpenTK.Graphics.FogParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -6401,6 +8534,9 @@ namespace OpenTK.Graphics Delegates.glFogfv((OpenTK.Graphics.FogParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6408,7 +8544,14 @@ namespace OpenTK.Graphics public static unsafe void Fogv(OpenTK.Graphics.FogParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogfv((OpenTK.Graphics.FogParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -6429,13 +8572,24 @@ namespace OpenTK.Graphics public static void Fog(OpenTK.Graphics.FogParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogi((OpenTK.Graphics.FogParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glFogiv")] public static void Fogv(OpenTK.Graphics.FogParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -6443,12 +8597,19 @@ namespace OpenTK.Graphics Delegates.glFogiv((OpenTK.Graphics.FogParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glFogiv")] public static void Fogv(OpenTK.Graphics.FogParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -6456,6 +8617,9 @@ namespace OpenTK.Graphics Delegates.glFogiv((OpenTK.Graphics.FogParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6463,7 +8627,14 @@ namespace OpenTK.Graphics public static unsafe void Fogv(OpenTK.Graphics.FogParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogiv((OpenTK.Graphics.FogParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -6479,7 +8650,14 @@ namespace OpenTK.Graphics public static void FrontFace(OpenTK.Graphics.FrontFaceDirection mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFrontFace((OpenTK.Graphics.FrontFaceDirection)mode); + #if DEBUG + } + #endif } @@ -6500,7 +8678,14 @@ namespace OpenTK.Graphics public static void Hint(OpenTK.Graphics.HintTarget target, OpenTK.Graphics.HintMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glHint((OpenTK.Graphics.HintTarget)target, (OpenTK.Graphics.HintMode)mode); + #if DEBUG + } + #endif } @@ -6526,13 +8711,24 @@ namespace OpenTK.Graphics public static void Light(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightf((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightfv")] public static void Lightv(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -6540,12 +8736,19 @@ namespace OpenTK.Graphics Delegates.glLightfv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightfv")] public static void Lightv(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -6553,6 +8756,9 @@ namespace OpenTK.Graphics Delegates.glLightfv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6560,7 +8766,14 @@ namespace OpenTK.Graphics public static unsafe void Lightv(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightfv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -6586,13 +8799,24 @@ namespace OpenTK.Graphics public static void Light(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLighti((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightiv")] public static void Lightv(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -6600,12 +8824,19 @@ namespace OpenTK.Graphics Delegates.glLightiv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightiv")] public static void Lightv(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -6613,6 +8844,9 @@ namespace OpenTK.Graphics Delegates.glLightiv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6620,7 +8854,14 @@ namespace OpenTK.Graphics public static unsafe void Lightv(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightiv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -6641,13 +8882,24 @@ namespace OpenTK.Graphics public static void LightModel(OpenTK.Graphics.LightModelParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightModelf((OpenTK.Graphics.LightModelParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightModelfv")] public static void LightModelv(OpenTK.Graphics.LightModelParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -6655,12 +8907,19 @@ namespace OpenTK.Graphics Delegates.glLightModelfv((OpenTK.Graphics.LightModelParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightModelfv")] public static void LightModelv(OpenTK.Graphics.LightModelParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -6668,6 +8927,9 @@ namespace OpenTK.Graphics Delegates.glLightModelfv((OpenTK.Graphics.LightModelParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6675,7 +8937,14 @@ namespace OpenTK.Graphics public static unsafe void LightModelv(OpenTK.Graphics.LightModelParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightModelfv((OpenTK.Graphics.LightModelParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -6696,13 +8965,24 @@ namespace OpenTK.Graphics public static void LightModel(OpenTK.Graphics.LightModelParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightModeli((OpenTK.Graphics.LightModelParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightModeliv")] public static void LightModelv(OpenTK.Graphics.LightModelParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -6710,12 +8990,19 @@ namespace OpenTK.Graphics Delegates.glLightModeliv((OpenTK.Graphics.LightModelParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glLightModeliv")] public static void LightModelv(OpenTK.Graphics.LightModelParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -6723,6 +9010,9 @@ namespace OpenTK.Graphics Delegates.glLightModeliv((OpenTK.Graphics.LightModelParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6730,7 +9020,14 @@ namespace OpenTK.Graphics public static unsafe void LightModelv(OpenTK.Graphics.LightModelParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightModeliv((OpenTK.Graphics.LightModelParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -6752,10 +9049,14 @@ namespace OpenTK.Graphics public static void LineStipple(Int32 factor, UInt16 pattern) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glLineStipple((Int32)factor, (UInt16)pattern); + #endif + Delegates.glLineStipple((Int32)factor, (UInt16)pattern); + #if DEBUG } + #endif } @@ -6776,10 +9077,14 @@ namespace OpenTK.Graphics public static void LineStipple(Int32 factor, Int16 pattern) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glLineStipple((Int32)factor, (UInt16)pattern); + #endif + Delegates.glLineStipple((Int32)factor, (UInt16)pattern); + #if DEBUG } + #endif } @@ -6795,7 +9100,14 @@ namespace OpenTK.Graphics public static void LineWidth(Single width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLineWidth((Single)width); + #if DEBUG + } + #endif } @@ -6821,13 +9133,24 @@ namespace OpenTK.Graphics public static void Material(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMaterialf((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glMaterialfv")] public static void Materialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -6835,12 +9158,19 @@ namespace OpenTK.Graphics Delegates.glMaterialfv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glMaterialfv")] public static void Materialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -6848,6 +9178,9 @@ namespace OpenTK.Graphics Delegates.glMaterialfv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6855,7 +9188,14 @@ namespace OpenTK.Graphics public static unsafe void Materialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMaterialfv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -6881,13 +9221,24 @@ namespace OpenTK.Graphics public static void Material(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMateriali((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glMaterialiv")] public static void Materialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -6895,12 +9246,19 @@ namespace OpenTK.Graphics Delegates.glMaterialiv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glMaterialiv")] public static void Materialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -6908,6 +9266,9 @@ namespace OpenTK.Graphics Delegates.glMaterialiv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -6915,7 +9276,14 @@ namespace OpenTK.Graphics public static unsafe void Materialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMaterialiv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -6931,7 +9299,14 @@ namespace OpenTK.Graphics public static void PointSize(Single size) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointSize((Single)size); + #if DEBUG + } + #endif } @@ -6952,7 +9327,14 @@ namespace OpenTK.Graphics public static void PolygonMode(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.PolygonMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPolygonMode((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.PolygonMode)mode); + #if DEBUG + } + #endif } @@ -6968,6 +9350,10 @@ namespace OpenTK.Graphics public static void PolygonStipple(Byte[] mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* mask_ptr = mask) @@ -6975,6 +9361,9 @@ namespace OpenTK.Graphics Delegates.glPolygonStipple((Byte*)mask_ptr); } } + #if DEBUG + } + #endif } @@ -6990,6 +9379,10 @@ namespace OpenTK.Graphics public static void PolygonStipple(ref Byte mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* mask_ptr = &mask) @@ -6997,6 +9390,9 @@ namespace OpenTK.Graphics Delegates.glPolygonStipple((Byte*)mask_ptr); } } + #if DEBUG + } + #endif } @@ -7013,7 +9409,14 @@ namespace OpenTK.Graphics public static unsafe void PolygonStipple(Byte* mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPolygonStipple((Byte*)mask); + #if DEBUG + } + #endif } @@ -7034,7 +9437,14 @@ namespace OpenTK.Graphics public static void Scissor(Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -7050,7 +9460,14 @@ namespace OpenTK.Graphics public static void ShadeModel(OpenTK.Graphics.ShadingModel mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShadeModel((OpenTK.Graphics.ShadingModel)mode); + #if DEBUG + } + #endif } @@ -7076,13 +9493,24 @@ namespace OpenTK.Graphics public static void TexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameterf((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexParameterfv")] public static void TexParameterv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -7090,12 +9518,19 @@ namespace OpenTK.Graphics Delegates.glTexParameterfv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexParameterfv")] public static void TexParameterv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -7103,6 +9538,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterfv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -7110,7 +9548,14 @@ namespace OpenTK.Graphics public static unsafe void TexParameterv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameterfv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -7136,13 +9581,24 @@ namespace OpenTK.Graphics public static void TexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameteri((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexParameteriv")] public static void TexParameterv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -7150,12 +9606,19 @@ namespace OpenTK.Graphics Delegates.glTexParameteriv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexParameteriv")] public static void TexParameterv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -7163,6 +9626,9 @@ namespace OpenTK.Graphics Delegates.glTexParameteriv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -7170,7 +9636,14 @@ namespace OpenTK.Graphics public static unsafe void TexParameterv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameteriv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -7221,10 +9694,14 @@ namespace OpenTK.Graphics public static void TexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -7276,18 +9753,22 @@ namespace OpenTK.Graphics void TexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T7 pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7339,18 +9820,22 @@ namespace OpenTK.Graphics void TexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7402,18 +9887,22 @@ namespace OpenTK.Graphics void TexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7465,18 +9954,22 @@ namespace OpenTK.Graphics void TexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7532,10 +10025,14 @@ namespace OpenTK.Graphics public static void TexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -7592,18 +10089,22 @@ namespace OpenTK.Graphics void TexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T8 pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7660,18 +10161,22 @@ namespace OpenTK.Graphics void TexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7728,18 +10233,22 @@ namespace OpenTK.Graphics void TexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7796,18 +10305,22 @@ namespace OpenTK.Graphics void TexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -7833,13 +10346,24 @@ namespace OpenTK.Graphics public static void TexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexEnvf((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexEnvfv")] public static void TexEnvv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -7847,12 +10371,19 @@ namespace OpenTK.Graphics Delegates.glTexEnvfv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexEnvfv")] public static void TexEnvv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -7860,6 +10391,9 @@ namespace OpenTK.Graphics Delegates.glTexEnvfv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -7867,7 +10401,14 @@ namespace OpenTK.Graphics public static unsafe void TexEnvv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexEnvfv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -7893,13 +10434,24 @@ namespace OpenTK.Graphics public static void TexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexEnvi((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexEnviv")] public static void TexEnvv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -7907,12 +10459,19 @@ namespace OpenTK.Graphics Delegates.glTexEnviv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexEnviv")] public static void TexEnvv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -7920,6 +10479,9 @@ namespace OpenTK.Graphics Delegates.glTexEnviv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -7927,20 +10489,38 @@ namespace OpenTK.Graphics public static unsafe void TexEnvv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexEnviv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGend")] public static void TexGend(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Double param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexGend((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGendv")] public static void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -7948,12 +10528,19 @@ namespace OpenTK.Graphics Delegates.glTexGendv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGendv")] public static void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -7961,6 +10548,9 @@ namespace OpenTK.Graphics Delegates.glTexGendv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -7968,7 +10558,14 @@ namespace OpenTK.Graphics public static unsafe void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexGendv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -7994,13 +10591,24 @@ namespace OpenTK.Graphics public static void TexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexGenf((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGenfv")] public static void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -8008,12 +10616,19 @@ namespace OpenTK.Graphics Delegates.glTexGenfv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGenfv")] public static void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -8021,6 +10636,9 @@ namespace OpenTK.Graphics Delegates.glTexGenfv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -8028,7 +10646,14 @@ namespace OpenTK.Graphics public static unsafe void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexGenfv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -8054,13 +10679,24 @@ namespace OpenTK.Graphics public static void TexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexGeni((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGeniv")] public static void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -8068,12 +10704,19 @@ namespace OpenTK.Graphics Delegates.glTexGeniv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "DrawingControl", Version = "1.0", EntryPoint = "glTexGeniv")] public static void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -8081,6 +10724,9 @@ namespace OpenTK.Graphics Delegates.glTexGeniv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -8088,7 +10734,14 @@ namespace OpenTK.Graphics public static unsafe void TexGenv(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexGeniv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -8114,6 +10767,10 @@ namespace OpenTK.Graphics public static void FeedbackBuffer(Int32 size, OpenTK.Graphics.FeedbackType type, [Out] Single[] buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* buffer_ptr = buffer) @@ -8121,6 +10778,9 @@ namespace OpenTK.Graphics Delegates.glFeedbackBuffer((Int32)size, (OpenTK.Graphics.FeedbackType)type, (Single*)buffer_ptr); } } + #if DEBUG + } + #endif } @@ -8146,6 +10806,10 @@ namespace OpenTK.Graphics public static void FeedbackBuffer(Int32 size, OpenTK.Graphics.FeedbackType type, [Out] out Single buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* buffer_ptr = &buffer) @@ -8154,6 +10818,9 @@ namespace OpenTK.Graphics buffer = *buffer_ptr; } } + #if DEBUG + } + #endif } @@ -8180,7 +10847,14 @@ namespace OpenTK.Graphics public static unsafe void FeedbackBuffer(Int32 size, OpenTK.Graphics.FeedbackType type, [Out] Single* buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFeedbackBuffer((Int32)size, (OpenTK.Graphics.FeedbackType)type, (Single*)buffer); + #if DEBUG + } + #endif } @@ -8202,6 +10876,10 @@ namespace OpenTK.Graphics public static void SelectBuffer(Int32 size, [Out] UInt32[] buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffer_ptr = buffer) @@ -8209,6 +10887,9 @@ namespace OpenTK.Graphics Delegates.glSelectBuffer((Int32)size, (UInt32*)buffer_ptr); } } + #if DEBUG + } + #endif } @@ -8229,6 +10910,10 @@ namespace OpenTK.Graphics public static void SelectBuffer(Int32 size, [Out] Int32[] buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffer_ptr = buffer) @@ -8236,6 +10921,9 @@ namespace OpenTK.Graphics Delegates.glSelectBuffer((Int32)size, (UInt32*)buffer_ptr); } } + #if DEBUG + } + #endif } @@ -8257,6 +10945,10 @@ namespace OpenTK.Graphics public static void SelectBuffer(Int32 size, [Out] out UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffer_ptr = &buffer) @@ -8265,6 +10957,9 @@ namespace OpenTK.Graphics buffer = *buffer_ptr; } } + #if DEBUG + } + #endif } @@ -8285,6 +10980,10 @@ namespace OpenTK.Graphics public static void SelectBuffer(Int32 size, [Out] out Int32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffer_ptr = &buffer) @@ -8293,6 +10992,9 @@ namespace OpenTK.Graphics buffer = *buffer_ptr; } } + #if DEBUG + } + #endif } @@ -8314,7 +11016,14 @@ namespace OpenTK.Graphics public static unsafe void SelectBuffer(Int32 size, [Out] UInt32* buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSelectBuffer((Int32)size, (UInt32*)buffer); + #if DEBUG + } + #endif } @@ -8336,7 +11045,14 @@ namespace OpenTK.Graphics public static unsafe void SelectBuffer(Int32 size, [Out] Int32* buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSelectBuffer((Int32)size, (UInt32*)buffer); + #if DEBUG + } + #endif } @@ -8352,7 +11068,14 @@ namespace OpenTK.Graphics public static Int32 RenderMode(OpenTK.Graphics.RenderingMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glRenderMode((OpenTK.Graphics.RenderingMode)mode); + #if DEBUG + } + #endif } @@ -8363,7 +11086,14 @@ namespace OpenTK.Graphics public static void InitNames() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glInitNames(); + #if DEBUG + } + #endif } @@ -8380,7 +11110,14 @@ namespace OpenTK.Graphics public static void LoadName(UInt32 name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadName((UInt32)name); + #if DEBUG + } + #endif } @@ -8412,14 +11149,28 @@ namespace OpenTK.Graphics public static void PassThrough(Single token) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPassThrough((Single)token); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Feedback", Version = "1.0", EntryPoint = "glPopName")] public static void PopName() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPopName(); + #if DEBUG + } + #endif } @@ -8436,7 +11187,14 @@ namespace OpenTK.Graphics public static void PushName(UInt32 name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPushName((UInt32)name); + #if DEBUG + } + #endif } @@ -8468,7 +11226,14 @@ namespace OpenTK.Graphics public static void DrawBuffer(OpenTK.Graphics.DrawBufferMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawBuffer((OpenTK.Graphics.DrawBufferMode)mode); + #if DEBUG + } + #endif } @@ -8484,7 +11249,14 @@ namespace OpenTK.Graphics public static void Clear(OpenTK.Graphics.ClearBufferMask mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClear((OpenTK.Graphics.ClearBufferMask)mask); + #if DEBUG + } + #endif } @@ -8500,7 +11272,14 @@ namespace OpenTK.Graphics public static void ClearAccum(Single red, Single green, Single blue, Single alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearAccum((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif } @@ -8516,7 +11295,14 @@ namespace OpenTK.Graphics public static void ClearIndex(Single c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearIndex((Single)c); + #if DEBUG + } + #endif } @@ -8532,7 +11318,14 @@ namespace OpenTK.Graphics public static void ClearColor(Single red, Single green, Single blue, Single alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif } @@ -8548,7 +11341,14 @@ namespace OpenTK.Graphics public static void ClearStencil(Int32 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearStencil((Int32)s); + #if DEBUG + } + #endif } @@ -8564,7 +11364,14 @@ namespace OpenTK.Graphics public static void ClearDepth(Double depth) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearDepth((Double)depth); + #if DEBUG + } + #endif } @@ -8581,7 +11388,14 @@ namespace OpenTK.Graphics public static void StencilMask(UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilMask((UInt32)mask); + #if DEBUG + } + #endif } @@ -8613,7 +11427,14 @@ namespace OpenTK.Graphics public static void ColorMask(bool red, bool green, bool blue, bool alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); + #if DEBUG + } + #endif } @@ -8629,7 +11450,14 @@ namespace OpenTK.Graphics public static void DepthMask(bool flag) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDepthMask((bool)flag); + #if DEBUG + } + #endif } @@ -8646,7 +11474,14 @@ namespace OpenTK.Graphics public static void IndexMask(UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexMask((UInt32)mask); + #if DEBUG + } + #endif } @@ -8683,14 +11518,28 @@ namespace OpenTK.Graphics public static void Accum(OpenTK.Graphics.AccumOp op, Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAccum((OpenTK.Graphics.AccumOp)op, (Single)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Misc", Version = "1.0", EntryPoint = "glDisable")] public static void Disable(OpenTK.Graphics.EnableCap cap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisable((OpenTK.Graphics.EnableCap)cap); + #if DEBUG + } + #endif } @@ -8706,7 +11555,14 @@ namespace OpenTK.Graphics public static void Enable(OpenTK.Graphics.EnableCap cap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnable((OpenTK.Graphics.EnableCap)cap); + #if DEBUG + } + #endif } @@ -8717,7 +11573,14 @@ namespace OpenTK.Graphics public static void Finish() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFinish(); + #if DEBUG + } + #endif } @@ -8728,14 +11591,28 @@ namespace OpenTK.Graphics public static void Flush() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFlush(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Misc", Version = "1.0", EntryPoint = "glPopAttrib")] public static void PopAttrib() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPopAttrib(); + #if DEBUG + } + #endif } @@ -8751,7 +11628,14 @@ namespace OpenTK.Graphics public static void PushAttrib(OpenTK.Graphics.AttribMask mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPushAttrib((OpenTK.Graphics.AttribMask)mask); + #if DEBUG + } + #endif } @@ -8787,6 +11671,10 @@ namespace OpenTK.Graphics public static void Map1(OpenTK.Graphics.MapTarget target, Double u1, Double u2, Int32 stride, Int32 order, Double[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* points_ptr = points) @@ -8794,6 +11682,9 @@ namespace OpenTK.Graphics Delegates.glMap1d((OpenTK.Graphics.MapTarget)target, (Double)u1, (Double)u2, (Int32)stride, (Int32)order, (Double*)points_ptr); } } + #if DEBUG + } + #endif } @@ -8829,6 +11720,10 @@ namespace OpenTK.Graphics public static void Map1(OpenTK.Graphics.MapTarget target, Double u1, Double u2, Int32 stride, Int32 order, ref Double points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* points_ptr = &points) @@ -8836,6 +11731,9 @@ namespace OpenTK.Graphics Delegates.glMap1d((OpenTK.Graphics.MapTarget)target, (Double)u1, (Double)u2, (Int32)stride, (Int32)order, (Double*)points_ptr); } } + #if DEBUG + } + #endif } @@ -8872,7 +11770,14 @@ namespace OpenTK.Graphics public static unsafe void Map1(OpenTK.Graphics.MapTarget target, Double u1, Double u2, Int32 stride, Int32 order, Double* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMap1d((OpenTK.Graphics.MapTarget)target, (Double)u1, (Double)u2, (Int32)stride, (Int32)order, (Double*)points); + #if DEBUG + } + #endif } @@ -8908,6 +11813,10 @@ namespace OpenTK.Graphics public static void Map1(OpenTK.Graphics.MapTarget target, Single u1, Single u2, Int32 stride, Int32 order, Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -8915,6 +11824,9 @@ namespace OpenTK.Graphics Delegates.glMap1f((OpenTK.Graphics.MapTarget)target, (Single)u1, (Single)u2, (Int32)stride, (Int32)order, (Single*)points_ptr); } } + #if DEBUG + } + #endif } @@ -8950,6 +11862,10 @@ namespace OpenTK.Graphics public static void Map1(OpenTK.Graphics.MapTarget target, Single u1, Single u2, Int32 stride, Int32 order, ref Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -8957,6 +11873,9 @@ namespace OpenTK.Graphics Delegates.glMap1f((OpenTK.Graphics.MapTarget)target, (Single)u1, (Single)u2, (Int32)stride, (Int32)order, (Single*)points_ptr); } } + #if DEBUG + } + #endif } @@ -8993,7 +11912,14 @@ namespace OpenTK.Graphics public static unsafe void Map1(OpenTK.Graphics.MapTarget target, Single u1, Single u2, Int32 stride, Int32 order, Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMap1f((OpenTK.Graphics.MapTarget)target, (Single)u1, (Single)u2, (Int32)stride, (Int32)order, (Single*)points); + #if DEBUG + } + #endif } @@ -9044,6 +11970,10 @@ namespace OpenTK.Graphics public static void Map2(OpenTK.Graphics.MapTarget target, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* points_ptr = points) @@ -9051,6 +11981,9 @@ namespace OpenTK.Graphics Delegates.glMap2d((OpenTK.Graphics.MapTarget)target, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double*)points_ptr); } } + #if DEBUG + } + #endif } @@ -9101,6 +12034,10 @@ namespace OpenTK.Graphics public static void Map2(OpenTK.Graphics.MapTarget target, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, ref Double points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* points_ptr = &points) @@ -9108,6 +12045,9 @@ namespace OpenTK.Graphics Delegates.glMap2d((OpenTK.Graphics.MapTarget)target, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double*)points_ptr); } } + #if DEBUG + } + #endif } @@ -9159,7 +12099,14 @@ namespace OpenTK.Graphics public static unsafe void Map2(OpenTK.Graphics.MapTarget target, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMap2d((OpenTK.Graphics.MapTarget)target, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double*)points); + #if DEBUG + } + #endif } @@ -9210,6 +12157,10 @@ namespace OpenTK.Graphics public static void Map2(OpenTK.Graphics.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -9217,6 +12168,9 @@ namespace OpenTK.Graphics Delegates.glMap2f((OpenTK.Graphics.MapTarget)target, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single*)points_ptr); } } + #if DEBUG + } + #endif } @@ -9267,6 +12221,10 @@ namespace OpenTK.Graphics public static void Map2(OpenTK.Graphics.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, ref Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -9274,6 +12232,9 @@ namespace OpenTK.Graphics Delegates.glMap2f((OpenTK.Graphics.MapTarget)target, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single*)points_ptr); } } + #if DEBUG + } + #endif } @@ -9325,7 +12286,14 @@ namespace OpenTK.Graphics public static unsafe void Map2(OpenTK.Graphics.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMap2f((OpenTK.Graphics.MapTarget)target, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single*)points); + #if DEBUG + } + #endif } @@ -9356,7 +12324,14 @@ namespace OpenTK.Graphics public static void MapGrid1(Int32 un, Double u1, Double u2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMapGrid1d((Int32)un, (Double)u1, (Double)u2); + #if DEBUG + } + #endif } @@ -9387,7 +12362,14 @@ namespace OpenTK.Graphics public static void MapGrid1(Int32 un, Single u1, Single u2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMapGrid1f((Int32)un, (Single)u1, (Single)u2); + #if DEBUG + } + #endif } @@ -9418,7 +12400,14 @@ namespace OpenTK.Graphics public static void MapGrid2(Int32 un, Double u1, Double u2, Int32 vn, Double v1, Double v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMapGrid2d((Int32)un, (Double)u1, (Double)u2, (Int32)vn, (Double)v1, (Double)v2); + #if DEBUG + } + #endif } @@ -9449,7 +12438,14 @@ namespace OpenTK.Graphics public static void MapGrid2(Int32 un, Single u1, Single u2, Int32 vn, Single v1, Single v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMapGrid2f((Int32)un, (Single)u1, (Single)u2, (Int32)vn, (Single)v1, (Single)v2); + #if DEBUG + } + #endif } @@ -9470,13 +12466,24 @@ namespace OpenTK.Graphics public static void EvalCoord1(Double u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord1d((Double)u); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Modeling", Version = "1.0", EntryPoint = "glEvalCoord1dv")] public static void EvalCoord1v(Double[] u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* u_ptr = u) @@ -9484,12 +12491,19 @@ namespace OpenTK.Graphics Delegates.glEvalCoord1dv((Double*)u_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Modeling", Version = "1.0", EntryPoint = "glEvalCoord1dv")] public static void EvalCoord1v(ref Double u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* u_ptr = &u) @@ -9497,6 +12511,9 @@ namespace OpenTK.Graphics Delegates.glEvalCoord1dv((Double*)u_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -9504,7 +12521,14 @@ namespace OpenTK.Graphics public static unsafe void EvalCoord1v(Double* u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord1dv((Double*)u); + #if DEBUG + } + #endif } @@ -9525,13 +12549,24 @@ namespace OpenTK.Graphics public static void EvalCoord1(Single u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord1f((Single)u); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Modeling", Version = "1.0", EntryPoint = "glEvalCoord1fv")] public static void EvalCoord1v(Single[] u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* u_ptr = u) @@ -9539,12 +12574,19 @@ namespace OpenTK.Graphics Delegates.glEvalCoord1fv((Single*)u_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Modeling", Version = "1.0", EntryPoint = "glEvalCoord1fv")] public static void EvalCoord1v(ref Single u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* u_ptr = &u) @@ -9552,6 +12594,9 @@ namespace OpenTK.Graphics Delegates.glEvalCoord1fv((Single*)u_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -9559,7 +12604,14 @@ namespace OpenTK.Graphics public static unsafe void EvalCoord1v(Single* u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord1fv((Single*)u); + #if DEBUG + } + #endif } @@ -9580,7 +12632,14 @@ namespace OpenTK.Graphics public static void EvalCoord2(Double u, Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord2d((Double)u, (Double)v); + #if DEBUG + } + #endif } @@ -9601,6 +12660,10 @@ namespace OpenTK.Graphics public static void EvalCoord2(Double[] u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* u_ptr = u) @@ -9608,6 +12671,9 @@ namespace OpenTK.Graphics Delegates.glEvalCoord2dv((Double*)u_ptr); } } + #if DEBUG + } + #endif } @@ -9628,6 +12694,10 @@ namespace OpenTK.Graphics public static void EvalCoord2(ref Double u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* u_ptr = &u) @@ -9635,6 +12705,9 @@ namespace OpenTK.Graphics Delegates.glEvalCoord2dv((Double*)u_ptr); } } + #if DEBUG + } + #endif } @@ -9656,7 +12729,14 @@ namespace OpenTK.Graphics public static unsafe void EvalCoord2(Double* u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord2dv((Double*)u); + #if DEBUG + } + #endif } @@ -9677,7 +12757,14 @@ namespace OpenTK.Graphics public static void EvalCoord2(Single u, Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord2f((Single)u, (Single)v); + #if DEBUG + } + #endif } @@ -9698,6 +12785,10 @@ namespace OpenTK.Graphics public static void EvalCoord2(Single[] u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* u_ptr = u) @@ -9705,6 +12796,9 @@ namespace OpenTK.Graphics Delegates.glEvalCoord2fv((Single*)u_ptr); } } + #if DEBUG + } + #endif } @@ -9725,6 +12819,10 @@ namespace OpenTK.Graphics public static void EvalCoord2(ref Single u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* u_ptr = &u) @@ -9732,6 +12830,9 @@ namespace OpenTK.Graphics Delegates.glEvalCoord2fv((Single*)u_ptr); } } + #if DEBUG + } + #endif } @@ -9753,7 +12854,14 @@ namespace OpenTK.Graphics public static unsafe void EvalCoord2(Single* u) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalCoord2fv((Single*)u); + #if DEBUG + } + #endif } @@ -9774,7 +12882,14 @@ namespace OpenTK.Graphics public static void EvalMesh1(OpenTK.Graphics.MeshMode1 mode, Int32 i1, Int32 i2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalMesh1((OpenTK.Graphics.MeshMode1)mode, (Int32)i1, (Int32)i2); + #if DEBUG + } + #endif } @@ -9795,7 +12910,14 @@ namespace OpenTK.Graphics public static void EvalPoint1(Int32 i) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalPoint1((Int32)i); + #if DEBUG + } + #endif } @@ -9816,7 +12938,14 @@ namespace OpenTK.Graphics public static void EvalMesh2(OpenTK.Graphics.MeshMode2 mode, Int32 i1, Int32 i2, Int32 j1, Int32 j2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalMesh2((OpenTK.Graphics.MeshMode2)mode, (Int32)i1, (Int32)i2, (Int32)j1, (Int32)j2); + #if DEBUG + } + #endif } @@ -9837,7 +12966,14 @@ namespace OpenTK.Graphics public static void EvalPoint2(Int32 i, Int32 j) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalPoint2((Int32)i, (Int32)j); + #if DEBUG + } + #endif } @@ -9858,7 +12994,14 @@ namespace OpenTK.Graphics public static void AlphaFunc(OpenTK.Graphics.AlphaFunction func, Single @ref) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAlphaFunc((OpenTK.Graphics.AlphaFunction)func, (Single)@ref); + #if DEBUG + } + #endif } @@ -9879,7 +13022,14 @@ namespace OpenTK.Graphics public static void BlendFunc(OpenTK.Graphics.BlendingFactorSrc sfactor, OpenTK.Graphics.BlendingFactorDest dfactor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendFunc((OpenTK.Graphics.BlendingFactorSrc)sfactor, (OpenTK.Graphics.BlendingFactorDest)dfactor); + #if DEBUG + } + #endif } @@ -9895,7 +13045,14 @@ namespace OpenTK.Graphics public static void LogicOp(OpenTK.Graphics.LogicOp opcode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLogicOp((OpenTK.Graphics.LogicOp)opcode); + #if DEBUG + } + #endif } @@ -9922,7 +13079,14 @@ namespace OpenTK.Graphics public static void StencilFunc(OpenTK.Graphics.StencilFunction func, Int32 @ref, UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilFunc((OpenTK.Graphics.StencilFunction)func, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif } @@ -9974,7 +13138,14 @@ namespace OpenTK.Graphics public static void StencilOp(OpenTK.Graphics.StencilOp fail, OpenTK.Graphics.StencilOp zfail, OpenTK.Graphics.StencilOp zpass) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilOp((OpenTK.Graphics.StencilOp)fail, (OpenTK.Graphics.StencilOp)zfail, (OpenTK.Graphics.StencilOp)zpass); + #if DEBUG + } + #endif } @@ -9990,7 +13161,14 @@ namespace OpenTK.Graphics public static void DepthFunc(OpenTK.Graphics.DepthFunction func) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDepthFunc((OpenTK.Graphics.DepthFunction)func); + #if DEBUG + } + #endif } @@ -10006,7 +13184,14 @@ namespace OpenTK.Graphics public static void PixelZoom(Single xfactor, Single yfactor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelZoom((Single)xfactor, (Single)yfactor); + #if DEBUG + } + #endif } @@ -10030,7 +13215,14 @@ namespace OpenTK.Graphics public static void PixelTransfer(OpenTK.Graphics.PixelTransferParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTransferf((OpenTK.Graphics.PixelTransferParameter)pname, (Single)param); + #if DEBUG + } + #endif } @@ -10054,7 +13246,14 @@ namespace OpenTK.Graphics public static void PixelTransfer(OpenTK.Graphics.PixelTransferParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTransferi((OpenTK.Graphics.PixelTransferParameter)pname, (Int32)param); + #if DEBUG + } + #endif } @@ -10075,7 +13274,14 @@ namespace OpenTK.Graphics public static void PixelStore(OpenTK.Graphics.PixelStoreParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelStoref((OpenTK.Graphics.PixelStoreParameter)pname, (Single)param); + #if DEBUG + } + #endif } @@ -10096,7 +13302,14 @@ namespace OpenTK.Graphics public static void PixelStore(OpenTK.Graphics.PixelStoreParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelStorei((OpenTK.Graphics.PixelStoreParameter)pname, (Int32)param); + #if DEBUG + } + #endif } @@ -10122,6 +13335,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, Single[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* values_ptr = values) @@ -10129,6 +13346,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapfv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (Single*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10154,6 +13374,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, ref Single values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* values_ptr = &values) @@ -10161,6 +13385,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapfv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (Single*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10187,7 +13414,14 @@ namespace OpenTK.Graphics public static unsafe void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, Single* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelMapfv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (Single*)values); + #if DEBUG + } + #endif } @@ -10214,6 +13448,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, UInt32[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* values_ptr = values) @@ -10221,6 +13459,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapuiv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt32*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10246,6 +13487,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, Int32[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* values_ptr = values) @@ -10253,6 +13498,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapuiv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt32*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10279,6 +13527,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, ref UInt32 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* values_ptr = &values) @@ -10286,6 +13538,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapuiv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt32*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10311,6 +13566,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, ref Int32 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* values_ptr = &values) @@ -10318,6 +13577,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapuiv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt32*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10344,7 +13606,14 @@ namespace OpenTK.Graphics public static unsafe void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, UInt32* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelMapuiv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt32*)values); + #if DEBUG + } + #endif } @@ -10371,7 +13640,14 @@ namespace OpenTK.Graphics public static unsafe void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, Int32* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelMapuiv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt32*)values); + #if DEBUG + } + #endif } @@ -10398,6 +13674,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, UInt16[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* values_ptr = values) @@ -10405,6 +13685,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapusv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt16*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10430,6 +13713,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, Int16[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* values_ptr = values) @@ -10437,6 +13724,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapusv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt16*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10463,6 +13753,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, ref UInt16 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* values_ptr = &values) @@ -10470,6 +13764,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapusv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt16*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10495,6 +13792,10 @@ namespace OpenTK.Graphics public static void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, ref Int16 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* values_ptr = &values) @@ -10502,6 +13803,9 @@ namespace OpenTK.Graphics Delegates.glPixelMapusv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt16*)values_ptr); } } + #if DEBUG + } + #endif } @@ -10528,7 +13832,14 @@ namespace OpenTK.Graphics public static unsafe void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, UInt16* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelMapusv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt16*)values); + #if DEBUG + } + #endif } @@ -10555,7 +13866,14 @@ namespace OpenTK.Graphics public static unsafe void PixelMap(OpenTK.Graphics.PixelMap map, Int32 mapsize, Int16* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelMapusv((OpenTK.Graphics.PixelMap)map, (Int32)mapsize, (UInt16*)values); + #if DEBUG + } + #endif } @@ -10571,7 +13889,14 @@ namespace OpenTK.Graphics public static void ReadBuffer(OpenTK.Graphics.ReadBufferMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReadBuffer((OpenTK.Graphics.ReadBufferMode)mode); + #if DEBUG + } + #endif } @@ -10597,7 +13922,14 @@ namespace OpenTK.Graphics public static void CopyPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.PixelCopyType type) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelCopyType)type); + #if DEBUG + } + #endif } @@ -10633,10 +13965,14 @@ namespace OpenTK.Graphics public static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -10673,18 +14009,22 @@ namespace OpenTK.Graphics void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T6 pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -10721,18 +14061,22 @@ namespace OpenTK.Graphics void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -10769,18 +14113,22 @@ namespace OpenTK.Graphics void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -10817,18 +14165,22 @@ namespace OpenTK.Graphics void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,,] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -10859,10 +14211,14 @@ namespace OpenTK.Graphics public static void DrawPixels(Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -10894,18 +14250,22 @@ namespace OpenTK.Graphics void DrawPixels(Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T4 pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -10937,18 +14297,22 @@ namespace OpenTK.Graphics void DrawPixels(Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[] pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -10980,18 +14344,22 @@ namespace OpenTK.Graphics void DrawPixels(Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,] pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -11023,18 +14391,22 @@ namespace OpenTK.Graphics void DrawPixels(Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,,] pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glDrawPixels((Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -11055,6 +14427,10 @@ namespace OpenTK.Graphics public static void GetClipPlane(OpenTK.Graphics.ClipPlaneName plane, [Out] Double[] equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* equation_ptr = equation) @@ -11062,6 +14438,9 @@ namespace OpenTK.Graphics Delegates.glGetClipPlane((OpenTK.Graphics.ClipPlaneName)plane, (Double*)equation_ptr); } } + #if DEBUG + } + #endif } @@ -11082,6 +14461,10 @@ namespace OpenTK.Graphics public static void GetClipPlane(OpenTK.Graphics.ClipPlaneName plane, [Out] out Double equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* equation_ptr = &equation) @@ -11090,6 +14473,9 @@ namespace OpenTK.Graphics equation = *equation_ptr; } } + #if DEBUG + } + #endif } @@ -11111,13 +14497,24 @@ namespace OpenTK.Graphics public static unsafe void GetClipPlane(OpenTK.Graphics.ClipPlaneName plane, [Out] Double* equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetClipPlane((OpenTK.Graphics.ClipPlaneName)plane, (Double*)equation); + #if DEBUG + } + #endif } [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetDoublev")] public static void GetDouble(OpenTK.Graphics.GetPName pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -11125,12 +14522,19 @@ namespace OpenTK.Graphics Delegates.glGetDoublev((OpenTK.Graphics.GetPName)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetDoublev")] public static void GetDouble(OpenTK.Graphics.GetPName pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -11139,6 +14543,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -11146,7 +14553,14 @@ namespace OpenTK.Graphics public static unsafe void GetDouble(OpenTK.Graphics.GetPName pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetDoublev((OpenTK.Graphics.GetPName)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -11164,6 +14578,10 @@ namespace OpenTK.Graphics public static void GetFloat(OpenTK.Graphics.GetPName pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -11171,12 +14589,19 @@ namespace OpenTK.Graphics Delegates.glGetFloatv((OpenTK.Graphics.GetPName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetFloatv")] public static void GetFloat(OpenTK.Graphics.GetPName pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -11185,6 +14610,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -11192,13 +14620,24 @@ namespace OpenTK.Graphics public static unsafe void GetFloat(OpenTK.Graphics.GetPName pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFloatv((OpenTK.Graphics.GetPName)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetIntegerv")] public static void GetInteger(OpenTK.Graphics.GetPName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -11206,12 +14645,19 @@ namespace OpenTK.Graphics Delegates.glGetIntegerv((OpenTK.Graphics.GetPName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetIntegerv")] public static void GetInteger(OpenTK.Graphics.GetPName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -11220,6 +14666,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -11227,7 +14676,14 @@ namespace OpenTK.Graphics public static unsafe void GetInteger(OpenTK.Graphics.GetPName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetIntegerv((OpenTK.Graphics.GetPName)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -11253,6 +14709,10 @@ namespace OpenTK.Graphics public static void GetLight(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -11260,6 +14720,9 @@ namespace OpenTK.Graphics Delegates.glGetLightfv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -11285,6 +14748,10 @@ namespace OpenTK.Graphics public static void GetLight(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -11293,6 +14760,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -11319,7 +14789,14 @@ namespace OpenTK.Graphics public static unsafe void GetLight(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLightfv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -11345,6 +14822,10 @@ namespace OpenTK.Graphics public static void GetLight(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -11352,6 +14833,9 @@ namespace OpenTK.Graphics Delegates.glGetLightiv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -11377,6 +14861,10 @@ namespace OpenTK.Graphics public static void GetLight(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -11385,6 +14873,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -11411,7 +14902,14 @@ namespace OpenTK.Graphics public static unsafe void GetLight(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLightiv((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -11437,6 +14935,10 @@ namespace OpenTK.Graphics public static void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -11444,6 +14946,9 @@ namespace OpenTK.Graphics Delegates.glGetMapdv((OpenTK.Graphics.MapTarget)target, (OpenTK.Graphics.GetMapQuery)query, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -11469,6 +14974,10 @@ namespace OpenTK.Graphics public static void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] out Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -11477,6 +14986,9 @@ namespace OpenTK.Graphics v = *v_ptr; } } + #if DEBUG + } + #endif } @@ -11503,7 +15015,14 @@ namespace OpenTK.Graphics public static unsafe void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapdv((OpenTK.Graphics.MapTarget)target, (OpenTK.Graphics.GetMapQuery)query, (Double*)v); + #if DEBUG + } + #endif } @@ -11529,6 +15048,10 @@ namespace OpenTK.Graphics public static void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -11536,6 +15059,9 @@ namespace OpenTK.Graphics Delegates.glGetMapfv((OpenTK.Graphics.MapTarget)target, (OpenTK.Graphics.GetMapQuery)query, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -11561,6 +15087,10 @@ namespace OpenTK.Graphics public static void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] out Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -11569,6 +15099,9 @@ namespace OpenTK.Graphics v = *v_ptr; } } + #if DEBUG + } + #endif } @@ -11595,7 +15128,14 @@ namespace OpenTK.Graphics public static unsafe void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapfv((OpenTK.Graphics.MapTarget)target, (OpenTK.Graphics.GetMapQuery)query, (Single*)v); + #if DEBUG + } + #endif } @@ -11621,6 +15161,10 @@ namespace OpenTK.Graphics public static void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -11628,6 +15172,9 @@ namespace OpenTK.Graphics Delegates.glGetMapiv((OpenTK.Graphics.MapTarget)target, (OpenTK.Graphics.GetMapQuery)query, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -11653,6 +15200,10 @@ namespace OpenTK.Graphics public static void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] out Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -11661,6 +15212,9 @@ namespace OpenTK.Graphics v = *v_ptr; } } + #if DEBUG + } + #endif } @@ -11687,7 +15241,14 @@ namespace OpenTK.Graphics public static unsafe void GetMap(OpenTK.Graphics.MapTarget target, OpenTK.Graphics.GetMapQuery query, [Out] Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapiv((OpenTK.Graphics.MapTarget)target, (OpenTK.Graphics.GetMapQuery)query, (Int32*)v); + #if DEBUG + } + #endif } @@ -11713,6 +15274,10 @@ namespace OpenTK.Graphics public static void GetMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -11720,6 +15285,9 @@ namespace OpenTK.Graphics Delegates.glGetMaterialfv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -11745,6 +15313,10 @@ namespace OpenTK.Graphics public static void GetMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -11753,6 +15325,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -11779,7 +15354,14 @@ namespace OpenTK.Graphics public static unsafe void GetMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMaterialfv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -11805,6 +15387,10 @@ namespace OpenTK.Graphics public static void GetMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -11812,6 +15398,9 @@ namespace OpenTK.Graphics Delegates.glGetMaterialiv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -11837,6 +15426,10 @@ namespace OpenTK.Graphics public static void GetMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -11845,6 +15438,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -11871,7 +15467,14 @@ namespace OpenTK.Graphics public static unsafe void GetMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMaterialiv((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -11892,6 +15495,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] Single[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* values_ptr = values) @@ -11899,6 +15506,9 @@ namespace OpenTK.Graphics Delegates.glGetPixelMapfv((OpenTK.Graphics.PixelMap)map, (Single*)values_ptr); } } + #if DEBUG + } + #endif } @@ -11919,6 +15529,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] out Single values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* values_ptr = &values) @@ -11927,6 +15541,9 @@ namespace OpenTK.Graphics values = *values_ptr; } } + #if DEBUG + } + #endif } @@ -11948,7 +15565,14 @@ namespace OpenTK.Graphics public static unsafe void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] Single* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelMapfv((OpenTK.Graphics.PixelMap)map, (Single*)values); + #if DEBUG + } + #endif } @@ -11970,6 +15594,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] UInt32[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* values_ptr = values) @@ -11977,6 +15605,9 @@ namespace OpenTK.Graphics Delegates.glGetPixelMapuiv((OpenTK.Graphics.PixelMap)map, (UInt32*)values_ptr); } } + #if DEBUG + } + #endif } @@ -11997,6 +15628,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] Int32[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* values_ptr = values) @@ -12004,6 +15639,9 @@ namespace OpenTK.Graphics Delegates.glGetPixelMapuiv((OpenTK.Graphics.PixelMap)map, (UInt32*)values_ptr); } } + #if DEBUG + } + #endif } @@ -12025,6 +15663,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] out UInt32 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* values_ptr = &values) @@ -12033,6 +15675,9 @@ namespace OpenTK.Graphics values = *values_ptr; } } + #if DEBUG + } + #endif } @@ -12053,6 +15698,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] out Int32 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* values_ptr = &values) @@ -12061,6 +15710,9 @@ namespace OpenTK.Graphics values = *values_ptr; } } + #if DEBUG + } + #endif } @@ -12082,7 +15734,14 @@ namespace OpenTK.Graphics public static unsafe void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] UInt32* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelMapuiv((OpenTK.Graphics.PixelMap)map, (UInt32*)values); + #if DEBUG + } + #endif } @@ -12104,7 +15763,14 @@ namespace OpenTK.Graphics public static unsafe void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] Int32* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelMapuiv((OpenTK.Graphics.PixelMap)map, (UInt32*)values); + #if DEBUG + } + #endif } @@ -12126,6 +15792,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] UInt16[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* values_ptr = values) @@ -12133,6 +15803,9 @@ namespace OpenTK.Graphics Delegates.glGetPixelMapusv((OpenTK.Graphics.PixelMap)map, (UInt16*)values_ptr); } } + #if DEBUG + } + #endif } @@ -12153,6 +15826,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] Int16[] values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* values_ptr = values) @@ -12160,6 +15837,9 @@ namespace OpenTK.Graphics Delegates.glGetPixelMapusv((OpenTK.Graphics.PixelMap)map, (UInt16*)values_ptr); } } + #if DEBUG + } + #endif } @@ -12181,6 +15861,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] out UInt16 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* values_ptr = &values) @@ -12189,6 +15873,9 @@ namespace OpenTK.Graphics values = *values_ptr; } } + #if DEBUG + } + #endif } @@ -12209,6 +15896,10 @@ namespace OpenTK.Graphics public static void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] out Int16 values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* values_ptr = &values) @@ -12217,6 +15908,9 @@ namespace OpenTK.Graphics values = *values_ptr; } } + #if DEBUG + } + #endif } @@ -12238,7 +15932,14 @@ namespace OpenTK.Graphics public static unsafe void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] UInt16* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelMapusv((OpenTK.Graphics.PixelMap)map, (UInt16*)values); + #if DEBUG + } + #endif } @@ -12260,7 +15961,14 @@ namespace OpenTK.Graphics public static unsafe void GetPixelMap(OpenTK.Graphics.PixelMap map, [Out] Int16* values) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelMapusv((OpenTK.Graphics.PixelMap)map, (UInt16*)values); + #if DEBUG + } + #endif } @@ -12276,6 +15984,10 @@ namespace OpenTK.Graphics public static void GetPolygonStipple([Out] Byte[] mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* mask_ptr = mask) @@ -12283,6 +15995,9 @@ namespace OpenTK.Graphics Delegates.glGetPolygonStipple((Byte*)mask_ptr); } } + #if DEBUG + } + #endif } @@ -12298,6 +16013,10 @@ namespace OpenTK.Graphics public static void GetPolygonStipple([Out] out Byte mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* mask_ptr = &mask) @@ -12306,6 +16025,9 @@ namespace OpenTK.Graphics mask = *mask_ptr; } } + #if DEBUG + } + #endif } @@ -12322,7 +16044,14 @@ namespace OpenTK.Graphics public static unsafe void GetPolygonStipple([Out] Byte* mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPolygonStipple((Byte*)mask); + #if DEBUG + } + #endif } @@ -12338,10 +16067,14 @@ namespace OpenTK.Graphics public static string GetString(OpenTK.Graphics.StringName name) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.StringName)name)); + #endif + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.StringName)name)); + #if DEBUG } + #endif } @@ -12367,6 +16100,10 @@ namespace OpenTK.Graphics public static void GetTexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -12374,6 +16111,9 @@ namespace OpenTK.Graphics Delegates.glGetTexEnvfv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -12399,6 +16139,10 @@ namespace OpenTK.Graphics public static void GetTexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -12407,6 +16151,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -12433,7 +16180,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexEnvfv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -12459,6 +16213,10 @@ namespace OpenTK.Graphics public static void GetTexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -12466,6 +16224,9 @@ namespace OpenTK.Graphics Delegates.glGetTexEnviv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -12491,6 +16252,10 @@ namespace OpenTK.Graphics public static void GetTexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -12499,6 +16264,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -12525,7 +16293,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexEnv(OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexEnviv((OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -12551,6 +16326,10 @@ namespace OpenTK.Graphics public static void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -12558,6 +16337,9 @@ namespace OpenTK.Graphics Delegates.glGetTexGendv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -12583,6 +16365,10 @@ namespace OpenTK.Graphics public static void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -12591,6 +16377,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -12617,7 +16406,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexGendv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -12643,6 +16439,10 @@ namespace OpenTK.Graphics public static void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -12650,6 +16450,9 @@ namespace OpenTK.Graphics Delegates.glGetTexGenfv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -12675,6 +16478,10 @@ namespace OpenTK.Graphics public static void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -12683,6 +16490,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -12709,7 +16519,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexGenfv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -12735,6 +16552,10 @@ namespace OpenTK.Graphics public static void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -12742,6 +16563,9 @@ namespace OpenTK.Graphics Delegates.glGetTexGeniv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -12767,6 +16591,10 @@ namespace OpenTK.Graphics public static void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -12775,6 +16603,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -12801,7 +16632,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexGen(OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexGeniv((OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -12837,10 +16675,14 @@ namespace OpenTK.Graphics public static void GetTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -12877,18 +16719,22 @@ namespace OpenTK.Graphics void GetTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T4 pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -12925,18 +16771,22 @@ namespace OpenTK.Graphics void GetTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[] pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -12973,18 +16823,22 @@ namespace OpenTK.Graphics void GetTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,] pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -13021,18 +16875,22 @@ namespace OpenTK.Graphics void GetTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,,] pixels) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -13058,6 +16916,10 @@ namespace OpenTK.Graphics public static void GetTexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -13065,6 +16927,9 @@ namespace OpenTK.Graphics Delegates.glGetTexParameterfv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -13090,6 +16955,10 @@ namespace OpenTK.Graphics public static void GetTexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -13098,6 +16967,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -13124,7 +16996,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexParameterfv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -13150,6 +17029,10 @@ namespace OpenTK.Graphics public static void GetTexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -13157,6 +17040,9 @@ namespace OpenTK.Graphics Delegates.glGetTexParameteriv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -13182,6 +17068,10 @@ namespace OpenTK.Graphics public static void GetTexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -13190,6 +17080,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -13216,7 +17109,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexParameter(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexParameteriv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -13247,6 +17147,10 @@ namespace OpenTK.Graphics public static void GetTexLevelParameter(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -13254,6 +17158,9 @@ namespace OpenTK.Graphics Delegates.glGetTexLevelParameterfv((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -13284,6 +17191,10 @@ namespace OpenTK.Graphics public static void GetTexLevelParameter(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -13292,6 +17203,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -13323,7 +17237,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexLevelParameter(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexLevelParameterfv((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -13354,6 +17275,10 @@ namespace OpenTK.Graphics public static void GetTexLevelParameter(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -13361,6 +17286,9 @@ namespace OpenTK.Graphics Delegates.glGetTexLevelParameteriv((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -13391,6 +17319,10 @@ namespace OpenTK.Graphics public static void GetTexLevelParameter(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -13399,6 +17331,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -13430,7 +17365,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexLevelParameter(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexLevelParameteriv((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -13446,7 +17388,14 @@ namespace OpenTK.Graphics public static bool IsEnabled(OpenTK.Graphics.EnableCap cap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsEnabled((OpenTK.Graphics.EnableCap)cap); + #if DEBUG + } + #endif } @@ -13463,7 +17412,14 @@ namespace OpenTK.Graphics public static bool IsList(UInt32 list) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsList((UInt32)list); + #if DEBUG + } + #endif } @@ -13500,7 +17456,14 @@ namespace OpenTK.Graphics public static void DepthRange(Double near, Double far) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDepthRange((Double)near, (Double)far); + #if DEBUG + } + #endif } @@ -13526,7 +17489,14 @@ namespace OpenTK.Graphics public static void Frustum(Double left, Double right, Double bottom, Double top, Double zNear, Double zFar) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFrustum((Double)left, (Double)right, (Double)bottom, (Double)top, (Double)zNear, (Double)zFar); + #if DEBUG + } + #endif } @@ -13537,7 +17507,14 @@ namespace OpenTK.Graphics public static void LoadIdentity() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadIdentity(); + #if DEBUG + } + #endif } @@ -13553,6 +17530,10 @@ namespace OpenTK.Graphics public static void LoadMatrix(Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -13560,6 +17541,9 @@ namespace OpenTK.Graphics Delegates.glLoadMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13575,6 +17559,10 @@ namespace OpenTK.Graphics public static void LoadMatrix(ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -13582,6 +17570,9 @@ namespace OpenTK.Graphics Delegates.glLoadMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13598,7 +17589,14 @@ namespace OpenTK.Graphics public static unsafe void LoadMatrix(Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadMatrixf((Single*)m); + #if DEBUG + } + #endif } @@ -13614,6 +17612,10 @@ namespace OpenTK.Graphics public static void LoadMatrix(Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -13621,6 +17623,9 @@ namespace OpenTK.Graphics Delegates.glLoadMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13636,6 +17641,10 @@ namespace OpenTK.Graphics public static void LoadMatrix(ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -13643,6 +17652,9 @@ namespace OpenTK.Graphics Delegates.glLoadMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13659,7 +17671,14 @@ namespace OpenTK.Graphics public static unsafe void LoadMatrix(Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadMatrixd((Double*)m); + #if DEBUG + } + #endif } @@ -13675,7 +17694,14 @@ namespace OpenTK.Graphics public static void MatrixMode(OpenTK.Graphics.MatrixMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixMode((OpenTK.Graphics.MatrixMode)mode); + #if DEBUG + } + #endif } @@ -13691,6 +17717,10 @@ namespace OpenTK.Graphics public static void MultMatrix(Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -13698,6 +17728,9 @@ namespace OpenTK.Graphics Delegates.glMultMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13713,6 +17746,10 @@ namespace OpenTK.Graphics public static void MultMatrix(ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -13720,6 +17757,9 @@ namespace OpenTK.Graphics Delegates.glMultMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13736,7 +17776,14 @@ namespace OpenTK.Graphics public static unsafe void MultMatrix(Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultMatrixf((Single*)m); + #if DEBUG + } + #endif } @@ -13752,6 +17799,10 @@ namespace OpenTK.Graphics public static void MultMatrix(Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -13759,6 +17810,9 @@ namespace OpenTK.Graphics Delegates.glMultMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13774,6 +17828,10 @@ namespace OpenTK.Graphics public static void MultMatrix(ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -13781,6 +17839,9 @@ namespace OpenTK.Graphics Delegates.glMultMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -13797,7 +17858,14 @@ namespace OpenTK.Graphics public static unsafe void MultMatrix(Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultMatrixd((Double*)m); + #if DEBUG + } + #endif } @@ -13823,14 +17891,28 @@ namespace OpenTK.Graphics public static void Ortho(Double left, Double right, Double bottom, Double top, Double zNear, Double zFar) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glOrtho((Double)left, (Double)right, (Double)bottom, (Double)top, (Double)zNear, (Double)zFar); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Xform", Version = "1.0", EntryPoint = "glPopMatrix")] public static void PopMatrix() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPopMatrix(); + #if DEBUG + } + #endif } @@ -13841,7 +17923,14 @@ namespace OpenTK.Graphics public static void PushMatrix() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPushMatrix(); + #if DEBUG + } + #endif } @@ -13862,7 +17951,14 @@ namespace OpenTK.Graphics public static void Rotate(Double angle, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRotated((Double)angle, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -13883,7 +17979,14 @@ namespace OpenTK.Graphics public static void Rotate(Single angle, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRotatef((Single)angle, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -13899,7 +18002,14 @@ namespace OpenTK.Graphics public static void Scale(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glScaled((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -13915,7 +18025,14 @@ namespace OpenTK.Graphics public static void Scale(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glScalef((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -13931,7 +18048,14 @@ namespace OpenTK.Graphics public static void Translate(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTranslated((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -13947,7 +18071,14 @@ namespace OpenTK.Graphics public static void Translate(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTranslatef((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -13968,7 +18099,14 @@ namespace OpenTK.Graphics public static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -13984,7 +18122,14 @@ namespace OpenTK.Graphics public static void ArrayElement(Int32 i) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glArrayElement((Int32)i); + #if DEBUG + } + #endif } @@ -14015,10 +18160,14 @@ namespace OpenTK.Graphics public static void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -14050,18 +18199,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14093,18 +18246,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14136,18 +18293,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14179,25 +18340,36 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "11", Version = "1.1", EntryPoint = "glDisableClientState")] public static void DisableClientState(OpenTK.Graphics.EnableCap array) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisableClientState((OpenTK.Graphics.EnableCap)array); + #if DEBUG + } + #endif } @@ -14223,7 +18395,14 @@ namespace OpenTK.Graphics public static void DrawArrays(OpenTK.Graphics.BeginMode mode, Int32 first, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawArrays((OpenTK.Graphics.BeginMode)mode, (Int32)first, (Int32)count); + #if DEBUG + } + #endif } @@ -14254,10 +18433,14 @@ namespace OpenTK.Graphics public static void DrawElements(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #endif + Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #if DEBUG } + #endif } @@ -14289,18 +18472,22 @@ namespace OpenTK.Graphics void DrawElements(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14332,18 +18519,22 @@ namespace OpenTK.Graphics void DrawElements(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14375,18 +18566,22 @@ namespace OpenTK.Graphics void DrawElements(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14418,18 +18613,22 @@ namespace OpenTK.Graphics void DrawElements(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14450,10 +18649,14 @@ namespace OpenTK.Graphics public static void EdgeFlagPointer(Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer); + #endif + Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -14475,18 +18678,22 @@ namespace OpenTK.Graphics void EdgeFlagPointer(Int32 stride, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14508,18 +18715,22 @@ namespace OpenTK.Graphics void EdgeFlagPointer(Int32 stride, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14541,18 +18752,22 @@ namespace OpenTK.Graphics void EdgeFlagPointer(Int32 stride, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14574,18 +18789,22 @@ namespace OpenTK.Graphics void EdgeFlagPointer(Int32 stride, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glEdgeFlagPointer((Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14601,7 +18820,14 @@ namespace OpenTK.Graphics public static void EnableClientState(OpenTK.Graphics.EnableCap array) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnableClientState((OpenTK.Graphics.EnableCap)array); + #if DEBUG + } + #endif } @@ -14622,10 +18848,14 @@ namespace OpenTK.Graphics public static void GetPointer(OpenTK.Graphics.GetPointervPName pname, [Out] IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params); + #endif + Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params); + #if DEBUG } + #endif } @@ -14647,18 +18877,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] ref T1 @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14680,18 +18914,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] T1[] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14713,18 +18951,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] T1[,] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14746,18 +18988,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] T1[,,] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14783,10 +19029,14 @@ namespace OpenTK.Graphics public static void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -14813,18 +19063,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14851,18 +19105,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14889,18 +19147,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14927,18 +19189,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointer((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -14959,10 +19225,14 @@ namespace OpenTK.Graphics public static void InterleavedArrays(OpenTK.Graphics.InterleavedArrayFormat format, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -14984,18 +19254,22 @@ namespace OpenTK.Graphics void InterleavedArrays(OpenTK.Graphics.InterleavedArrayFormat format, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15017,18 +19291,22 @@ namespace OpenTK.Graphics void InterleavedArrays(OpenTK.Graphics.InterleavedArrayFormat format, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15050,18 +19328,22 @@ namespace OpenTK.Graphics void InterleavedArrays(OpenTK.Graphics.InterleavedArrayFormat format, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15083,18 +19365,22 @@ namespace OpenTK.Graphics void InterleavedArrays(OpenTK.Graphics.InterleavedArrayFormat format, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glInterleavedArrays((OpenTK.Graphics.InterleavedArrayFormat)format, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15120,10 +19406,14 @@ namespace OpenTK.Graphics public static void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -15150,18 +19440,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15188,18 +19482,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15226,18 +19524,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15264,18 +19566,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15306,10 +19612,14 @@ namespace OpenTK.Graphics public static void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -15341,18 +19651,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15384,18 +19698,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15427,18 +19745,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15470,18 +19792,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15512,10 +19838,14 @@ namespace OpenTK.Graphics public static void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -15547,18 +19877,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15590,18 +19924,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15633,18 +19971,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15676,18 +20018,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -15708,7 +20054,14 @@ namespace OpenTK.Graphics public static void PolygonOffset(Single factor, Single units) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPolygonOffset((Single)factor, (Single)units); + #if DEBUG + } + #endif } @@ -15749,7 +20102,14 @@ namespace OpenTK.Graphics public static void CopyTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)border); + #if DEBUG + } + #endif } @@ -15795,7 +20155,14 @@ namespace OpenTK.Graphics public static void CopyTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif } @@ -15831,7 +20198,14 @@ namespace OpenTK.Graphics public static void CopyTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -15877,7 +20251,14 @@ namespace OpenTK.Graphics public static void CopyTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -15923,10 +20304,14 @@ namespace OpenTK.Graphics public static void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -15973,18 +20358,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T6 pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16031,18 +20420,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16089,18 +20482,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16147,18 +20544,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,,] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16214,10 +20615,14 @@ namespace OpenTK.Graphics public static void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -16274,18 +20679,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T8 pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16342,18 +20751,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16410,18 +20823,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16478,18 +20895,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -16516,6 +20937,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, UInt32[] textures, [Out] bool[] residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -16524,6 +20949,9 @@ namespace OpenTK.Graphics return Delegates.glAreTexturesResident((Int32)n, (UInt32*)textures_ptr, (bool*)residences_ptr); } } + #if DEBUG + } + #endif } @@ -16549,6 +20977,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, Int32[] textures, [Out] bool[] residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -16557,6 +20989,9 @@ namespace OpenTK.Graphics return Delegates.glAreTexturesResident((Int32)n, (UInt32*)textures_ptr, (bool*)residences_ptr); } } + #if DEBUG + } + #endif } @@ -16583,6 +21018,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, ref UInt32 textures, [Out] out bool residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -16593,6 +21032,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } @@ -16618,6 +21060,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, ref Int32 textures, [Out] out bool residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -16628,6 +21074,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } @@ -16654,7 +21103,14 @@ namespace OpenTK.Graphics public static unsafe bool AreTexturesResident(Int32 n, UInt32* textures, [Out] bool* residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glAreTexturesResident((Int32)n, (UInt32*)textures, (bool*)residences); + #if DEBUG + } + #endif } @@ -16681,7 +21137,14 @@ namespace OpenTK.Graphics public static unsafe bool AreTexturesResident(Int32 n, Int32* textures, [Out] bool* residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glAreTexturesResident((Int32)n, (UInt32*)textures, (bool*)residences); + #if DEBUG + } + #endif } @@ -16703,7 +21166,14 @@ namespace OpenTK.Graphics public static void BindTexture(OpenTK.Graphics.TextureTarget target, UInt32 texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindTexture((OpenTK.Graphics.TextureTarget)target, (UInt32)texture); + #if DEBUG + } + #endif } @@ -16746,6 +21216,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, UInt32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -16753,6 +21227,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -16773,6 +21250,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, Int32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -16780,6 +21261,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -16801,6 +21285,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, ref UInt32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -16808,6 +21296,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -16828,6 +21319,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, ref Int32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -16835,6 +21330,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -16856,7 +21354,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteTextures(Int32 n, UInt32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -16878,7 +21383,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteTextures(Int32 n, Int32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -16900,6 +21412,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] UInt32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -16907,6 +21423,9 @@ namespace OpenTK.Graphics Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -16927,6 +21446,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] Int32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -16934,6 +21457,9 @@ namespace OpenTK.Graphics Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -16955,6 +21481,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] out UInt32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -16963,6 +21493,9 @@ namespace OpenTK.Graphics textures = *textures_ptr; } } + #if DEBUG + } + #endif } @@ -16983,6 +21516,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] out Int32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -16991,6 +21528,9 @@ namespace OpenTK.Graphics textures = *textures_ptr; } } + #if DEBUG + } + #endif } @@ -17012,7 +21552,14 @@ namespace OpenTK.Graphics public static unsafe void GenTextures(Int32 n, [Out] UInt32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -17034,7 +21581,14 @@ namespace OpenTK.Graphics public static unsafe void GenTextures(Int32 n, [Out] Int32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -17051,7 +21605,14 @@ namespace OpenTK.Graphics public static bool IsTexture(UInt32 texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsTexture((UInt32)texture); + #if DEBUG + } + #endif } @@ -17094,6 +21655,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, UInt32[] textures, Single[] priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -17102,6 +21667,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTextures((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -17127,6 +21695,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, Int32[] textures, Single[] priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -17135,6 +21707,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTextures((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -17161,6 +21736,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, ref UInt32 textures, ref Single priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -17169,6 +21748,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTextures((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -17194,6 +21776,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, ref Int32 textures, ref Single priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -17202,6 +21788,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTextures((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -17228,7 +21817,14 @@ namespace OpenTK.Graphics public static unsafe void PrioritizeTextures(Int32 n, UInt32* textures, Single* priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPrioritizeTextures((Int32)n, (UInt32*)textures, (Single*)priorities); + #if DEBUG + } + #endif } @@ -17255,7 +21851,14 @@ namespace OpenTK.Graphics public static unsafe void PrioritizeTextures(Int32 n, Int32* textures, Single* priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPrioritizeTextures((Int32)n, (UInt32*)textures, (Single*)priorities); + #if DEBUG + } + #endif } @@ -17274,13 +21877,24 @@ namespace OpenTK.Graphics public static void Index(Byte c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexub((Byte)c); + #if DEBUG + } + #endif } [AutoGenerated(Category = "11", Version = "1.1", EntryPoint = "glIndexubv")] public static void Indexv(Byte[] c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* c_ptr = c) @@ -17288,12 +21902,19 @@ namespace OpenTK.Graphics Delegates.glIndexubv((Byte*)c_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "11", Version = "1.1", EntryPoint = "glIndexubv")] public static void Indexv(ref Byte c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* c_ptr = &c) @@ -17301,6 +21922,9 @@ namespace OpenTK.Graphics Delegates.glIndexubv((Byte*)c_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -17308,14 +21932,28 @@ namespace OpenTK.Graphics public static unsafe void Indexv(Byte* c) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexubv((Byte*)c); + #if DEBUG + } + #endif } [AutoGenerated(Category = "11", Version = "1.1", EntryPoint = "glPopClientAttrib")] public static void PopClientAttrib() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPopClientAttrib(); + #if DEBUG + } + #endif } @@ -17331,7 +21969,14 @@ namespace OpenTK.Graphics public static void PushClientAttrib(OpenTK.Graphics.ClientAttribMask mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPushClientAttrib((OpenTK.Graphics.ClientAttribMask)mask); + #if DEBUG + } + #endif } @@ -17347,7 +21992,14 @@ namespace OpenTK.Graphics public static void BlendColor(Single red, Single green, Single blue, Single alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendColor((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif } @@ -17363,7 +22015,14 @@ namespace OpenTK.Graphics public static void BlendEquation(OpenTK.Graphics.BlendEquationMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendEquation((OpenTK.Graphics.BlendEquationMode)mode); + #if DEBUG + } + #endif } @@ -17405,10 +22064,14 @@ namespace OpenTK.Graphics public static void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #endif + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #if DEBUG } + #endif } @@ -17449,10 +22112,14 @@ namespace OpenTK.Graphics public static void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #endif + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #if DEBUG } + #endif } @@ -17495,18 +22162,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T5 indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17548,18 +22219,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T5 indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17602,18 +22277,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17655,18 +22334,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17709,18 +22392,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17762,18 +22449,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17816,18 +22507,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17869,18 +22564,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElements((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -17921,10 +22620,14 @@ namespace OpenTK.Graphics public static void ColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr table) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #endif + Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #if DEBUG } + #endif } @@ -17966,18 +22669,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18019,18 +22726,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18072,18 +22783,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18125,18 +22840,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18162,6 +22881,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -18169,6 +22892,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -18194,6 +22920,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -18201,6 +22931,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -18227,7 +22960,14 @@ namespace OpenTK.Graphics public static unsafe void ColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorTableParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -18253,6 +22993,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -18260,6 +23004,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -18285,6 +23032,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -18292,6 +23043,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -18318,7 +23072,14 @@ namespace OpenTK.Graphics public static unsafe void ColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorTableParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -18354,7 +23115,14 @@ namespace OpenTK.Graphics public static void CopyColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -18385,10 +23153,14 @@ namespace OpenTK.Graphics public static void GetColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr table) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #endif + Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #if DEBUG } + #endif } @@ -18420,18 +23192,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T3 table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18463,18 +23239,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[] table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18506,18 +23286,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,] table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18549,18 +23333,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,,] table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTable((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18586,6 +23374,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -18593,6 +23385,9 @@ namespace OpenTK.Graphics Delegates.glGetColorTableParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -18618,6 +23413,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -18626,6 +23425,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -18652,7 +23454,14 @@ namespace OpenTK.Graphics public static unsafe void GetColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetColorTableParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -18678,6 +23487,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -18685,6 +23498,9 @@ namespace OpenTK.Graphics Delegates.glGetColorTableParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -18710,6 +23526,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -18718,6 +23538,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -18744,7 +23567,14 @@ namespace OpenTK.Graphics public static unsafe void GetColorTableParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetColorTableParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -18785,10 +23615,14 @@ namespace OpenTK.Graphics public static void ColorSubTable(OpenTK.Graphics.Version12 target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data); + #endif + Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data); + #if DEBUG } + #endif } @@ -18830,18 +23664,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.Version12 target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18883,18 +23721,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.Version12 target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18936,18 +23778,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.Version12 target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -18989,18 +23835,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.Version12 target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19031,7 +23881,14 @@ namespace OpenTK.Graphics public static void CopyColorSubTable(OpenTK.Graphics.Version12 target, Int32 start, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyColorSubTable((OpenTK.Graphics.Version12)target, (Int32)start, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -19072,10 +23929,14 @@ namespace OpenTK.Graphics public static void ConvolutionFilter1D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr image) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #endif + Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #if DEBUG } + #endif } @@ -19117,18 +23978,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19170,18 +24035,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19223,18 +24092,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19276,18 +24149,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19333,10 +24210,14 @@ namespace OpenTK.Graphics public static void ConvolutionFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr image) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #endif + Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #if DEBUG } + #endif } @@ -19383,18 +24264,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T6 image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19441,18 +24326,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[] image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19499,18 +24388,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,] image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19557,18 +24450,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,,] image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19597,13 +24494,24 @@ namespace OpenTK.Graphics public static void ConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameterf((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version12", Version = "1.2", EntryPoint = "glConvolutionParameterfv")] public static void ConvolutionParameterv(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -19611,12 +24519,19 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version12", Version = "1.2", EntryPoint = "glConvolutionParameterfv")] public static void ConvolutionParameterv(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -19624,6 +24539,9 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -19631,7 +24549,14 @@ namespace OpenTK.Graphics public static unsafe void ConvolutionParameterv(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -19660,13 +24585,24 @@ namespace OpenTK.Graphics public static void ConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameteri((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version12", Version = "1.2", EntryPoint = "glConvolutionParameteriv")] public static void ConvolutionParameterv(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -19674,12 +24610,19 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version12", Version = "1.2", EntryPoint = "glConvolutionParameteriv")] public static void ConvolutionParameterv(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -19687,6 +24630,9 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -19694,7 +24640,14 @@ namespace OpenTK.Graphics public static unsafe void ConvolutionParameterv(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -19725,7 +24678,14 @@ namespace OpenTK.Graphics public static void CopyConvolutionFilter1D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyConvolutionFilter1D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -19761,7 +24721,14 @@ namespace OpenTK.Graphics public static void CopyConvolutionFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyConvolutionFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -19792,10 +24759,14 @@ namespace OpenTK.Graphics public static void GetConvolutionFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr image) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #endif + Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #if DEBUG } + #endif } @@ -19827,18 +24798,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T3 image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19870,18 +24845,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[] image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19913,18 +24892,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,] image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19956,18 +24939,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,,] image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -19993,6 +24980,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -20000,6 +24991,9 @@ namespace OpenTK.Graphics Delegates.glGetConvolutionParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -20025,6 +25019,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -20033,6 +25031,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -20059,7 +25060,14 @@ namespace OpenTK.Graphics public static unsafe void GetConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetConvolutionParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -20085,6 +25093,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -20092,6 +25104,9 @@ namespace OpenTK.Graphics Delegates.glGetConvolutionParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -20117,6 +25132,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -20125,6 +25144,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -20151,7 +25173,14 @@ namespace OpenTK.Graphics public static unsafe void GetConvolutionParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetConvolutionParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -20192,10 +25221,14 @@ namespace OpenTK.Graphics public static void GetSeparableFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [Out] IntPtr span) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span); + #endif + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span); + #if DEBUG } + #endif } @@ -20237,18 +25270,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] ref T5 span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20290,18 +25327,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] T5[] span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20343,18 +25384,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] T5[,] span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20396,18 +25441,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] T5[,,] span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20450,20 +25499,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20506,20 +25559,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20562,20 +25619,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20618,20 +25679,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20675,22 +25740,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20734,22 +25803,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20793,22 +25866,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20852,22 +25929,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilter((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -20918,10 +25999,14 @@ namespace OpenTK.Graphics public static void SeparableFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, IntPtr column) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column); + #endif + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column); + #if DEBUG } + #endif } @@ -20973,18 +26058,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] ref T7 column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21036,18 +26125,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] T7[] column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21099,18 +26192,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] T7[,] column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21162,18 +26259,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] T7[,,] column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21226,20 +26327,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21292,20 +26397,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21358,20 +26467,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21424,20 +26537,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2D((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21473,10 +26590,14 @@ namespace OpenTK.Graphics public static void GetHistogram(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr values) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #endif + Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #if DEBUG } + #endif } @@ -21513,18 +26634,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T4 values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21561,18 +26686,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21609,18 +26738,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21657,18 +26790,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogram((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21694,6 +26831,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -21701,6 +26842,9 @@ namespace OpenTK.Graphics Delegates.glGetHistogramParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -21726,6 +26870,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -21734,6 +26882,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -21760,7 +26911,14 @@ namespace OpenTK.Graphics public static unsafe void GetHistogramParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetHistogramParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -21786,6 +26944,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -21793,6 +26955,9 @@ namespace OpenTK.Graphics Delegates.glGetHistogramParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -21818,6 +26983,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -21826,6 +26995,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -21852,7 +27024,14 @@ namespace OpenTK.Graphics public static unsafe void GetHistogramParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetHistogramParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -21888,10 +27067,14 @@ namespace OpenTK.Graphics public static void GetMinmax(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr values) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #endif + Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #if DEBUG } + #endif } @@ -21928,18 +27111,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T4 values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -21976,18 +27163,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22024,18 +27215,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22072,18 +27267,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.Version12 target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmax((OpenTK.Graphics.Version12)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22109,6 +27308,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -22116,6 +27319,9 @@ namespace OpenTK.Graphics Delegates.glGetMinmaxParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -22141,6 +27347,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -22149,6 +27359,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -22175,7 +27388,14 @@ namespace OpenTK.Graphics public static unsafe void GetMinmaxParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMinmaxParameterfv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -22201,6 +27421,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -22208,6 +27432,9 @@ namespace OpenTK.Graphics Delegates.glGetMinmaxParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -22233,6 +27460,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -22241,6 +27472,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -22267,7 +27501,14 @@ namespace OpenTK.Graphics public static unsafe void GetMinmaxParameter(OpenTK.Graphics.Version12 target, OpenTK.Graphics.Version12 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMinmaxParameteriv((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.Version12)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -22298,7 +27539,14 @@ namespace OpenTK.Graphics public static void Histogram(OpenTK.Graphics.Version12 target, Int32 width, OpenTK.Graphics.PixelInternalFormat internalformat, bool sink) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glHistogram((OpenTK.Graphics.Version12)target, (Int32)width, (OpenTK.Graphics.PixelInternalFormat)internalformat, (bool)sink); + #if DEBUG + } + #endif } @@ -22324,7 +27572,14 @@ namespace OpenTK.Graphics public static void Minmax(OpenTK.Graphics.Version12 target, OpenTK.Graphics.PixelInternalFormat internalformat, bool sink) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMinmax((OpenTK.Graphics.Version12)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (bool)sink); + #if DEBUG + } + #endif } @@ -22340,7 +27595,14 @@ namespace OpenTK.Graphics public static void ResetHistogram(OpenTK.Graphics.Version12 target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glResetHistogram((OpenTK.Graphics.Version12)target); + #if DEBUG + } + #endif } @@ -22356,7 +27618,14 @@ namespace OpenTK.Graphics public static void ResetMinmax(OpenTK.Graphics.Version12 target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glResetMinmax((OpenTK.Graphics.Version12)target); + #if DEBUG + } + #endif } @@ -22417,10 +27686,14 @@ namespace OpenTK.Graphics public static void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -22482,18 +27755,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22555,18 +27832,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22628,18 +27909,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22701,18 +27986,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22778,10 +28067,14 @@ namespace OpenTK.Graphics public static void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -22848,18 +28141,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T10 pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -22926,18 +28223,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -23004,18 +28305,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -23082,18 +28387,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -23144,7 +28453,14 @@ namespace OpenTK.Graphics public static void CopyTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -23160,7 +28476,14 @@ namespace OpenTK.Graphics public static void ActiveTexture(OpenTK.Graphics.TextureUnit texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glActiveTexture((OpenTK.Graphics.TextureUnit)texture); + #if DEBUG + } + #endif } @@ -23176,7 +28499,14 @@ namespace OpenTK.Graphics public static void ClientActiveTexture(OpenTK.Graphics.TextureUnit texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClientActiveTexture((OpenTK.Graphics.TextureUnit)texture); + #if DEBUG + } + #endif } @@ -23197,13 +28527,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Double s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1d((OpenTK.Graphics.TextureUnit)target, (Double)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1dv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -23211,12 +28552,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1dv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -23224,6 +28572,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -23231,7 +28582,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1dv((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -23252,13 +28610,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Single s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1f((OpenTK.Graphics.TextureUnit)target, (Single)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1fv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -23266,12 +28635,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1fv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -23279,6 +28655,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -23286,7 +28665,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1fv((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -23307,13 +28693,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Int32 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1i((OpenTK.Graphics.TextureUnit)target, (Int32)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1iv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -23321,12 +28718,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1iv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -23334,6 +28738,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -23341,7 +28748,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -23362,13 +28776,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Int16 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1s((OpenTK.Graphics.TextureUnit)target, (Int16)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1sv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -23376,12 +28801,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version13", Version = "1.3", EntryPoint = "glMultiTexCoord1sv")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -23389,6 +28821,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -23396,7 +28831,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -23417,7 +28859,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Double s, Double t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2d((OpenTK.Graphics.TextureUnit)target, (Double)s, (Double)t); + #if DEBUG + } + #endif } @@ -23438,6 +28887,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -23445,6 +28898,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23465,6 +28921,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -23472,6 +28932,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23493,7 +28956,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2dv((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -23514,7 +28984,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Single s, Single t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2f((OpenTK.Graphics.TextureUnit)target, (Single)s, (Single)t); + #if DEBUG + } + #endif } @@ -23535,6 +29012,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -23542,6 +29023,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23562,6 +29046,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -23569,6 +29057,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23590,7 +29081,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2fv((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -23611,7 +29109,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int32 s, Int32 t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2i((OpenTK.Graphics.TextureUnit)target, (Int32)s, (Int32)t); + #if DEBUG + } + #endif } @@ -23632,6 +29137,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -23639,6 +29148,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23659,6 +29171,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -23666,6 +29182,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23687,7 +29206,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -23708,7 +29234,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int16 s, Int16 t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2s((OpenTK.Graphics.TextureUnit)target, (Int16)s, (Int16)t); + #if DEBUG + } + #endif } @@ -23729,6 +29262,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -23736,6 +29273,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23756,6 +29296,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -23763,6 +29307,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23784,7 +29331,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -23805,7 +29359,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Double s, Double t, Double r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3d((OpenTK.Graphics.TextureUnit)target, (Double)s, (Double)t, (Double)r); + #if DEBUG + } + #endif } @@ -23826,6 +29387,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -23833,6 +29398,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23853,6 +29421,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -23860,6 +29432,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23881,7 +29456,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3dv((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -23902,7 +29484,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Single s, Single t, Single r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3f((OpenTK.Graphics.TextureUnit)target, (Single)s, (Single)t, (Single)r); + #if DEBUG + } + #endif } @@ -23923,6 +29512,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -23930,6 +29523,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23950,6 +29546,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -23957,6 +29557,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -23978,7 +29581,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3fv((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -23999,7 +29609,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int32 s, Int32 t, Int32 r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3i((OpenTK.Graphics.TextureUnit)target, (Int32)s, (Int32)t, (Int32)r); + #if DEBUG + } + #endif } @@ -24020,6 +29637,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -24027,6 +29648,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24047,6 +29671,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -24054,6 +29682,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24075,7 +29706,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -24096,7 +29734,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int16 s, Int16 t, Int16 r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3s((OpenTK.Graphics.TextureUnit)target, (Int16)s, (Int16)t, (Int16)r); + #if DEBUG + } + #endif } @@ -24117,6 +29762,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -24124,6 +29773,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24144,6 +29796,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -24151,6 +29807,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24172,7 +29831,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -24193,7 +29859,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Double s, Double t, Double r, Double q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4d((OpenTK.Graphics.TextureUnit)target, (Double)s, (Double)t, (Double)r, (Double)q); + #if DEBUG + } + #endif } @@ -24214,6 +29887,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -24221,6 +29898,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24241,6 +29921,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -24248,6 +29932,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4dv((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24269,7 +29956,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4dv((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -24290,7 +29984,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Single s, Single t, Single r, Single q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4f((OpenTK.Graphics.TextureUnit)target, (Single)s, (Single)t, (Single)r, (Single)q); + #if DEBUG + } + #endif } @@ -24311,6 +30012,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -24318,6 +30023,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24338,6 +30046,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -24345,6 +30057,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4fv((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24366,7 +30081,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4fv((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -24387,7 +30109,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int32 s, Int32 t, Int32 r, Int32 q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4i((OpenTK.Graphics.TextureUnit)target, (Int32)s, (Int32)t, (Int32)r, (Int32)q); + #if DEBUG + } + #endif } @@ -24408,6 +30137,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -24415,6 +30148,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24435,6 +30171,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -24442,6 +30182,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24463,7 +30206,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4iv((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -24484,7 +30234,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int16 s, Int16 t, Int16 r, Int16 q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4s((OpenTK.Graphics.TextureUnit)target, (Int16)s, (Int16)t, (Int16)r, (Int16)q); + #if DEBUG + } + #endif } @@ -24505,6 +30262,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -24512,6 +30273,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24532,6 +30296,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -24539,6 +30307,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -24560,7 +30331,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4sv((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -24576,6 +30354,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -24583,6 +30365,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24598,6 +30383,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -24605,6 +30394,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24621,7 +30413,14 @@ namespace OpenTK.Graphics public static unsafe void LoadTransposeMatrix(Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadTransposeMatrixf((Single*)m); + #if DEBUG + } + #endif } @@ -24637,6 +30436,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -24644,6 +30447,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24659,6 +30465,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -24666,6 +30476,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24682,7 +30495,14 @@ namespace OpenTK.Graphics public static unsafe void LoadTransposeMatrix(Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadTransposeMatrixd((Double*)m); + #if DEBUG + } + #endif } @@ -24698,6 +30518,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -24705,6 +30529,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24720,6 +30547,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -24727,6 +30558,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixf((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24743,7 +30577,14 @@ namespace OpenTK.Graphics public static unsafe void MultTransposeMatrix(Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultTransposeMatrixf((Single*)m); + #if DEBUG + } + #endif } @@ -24759,6 +30600,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -24766,6 +30611,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24781,6 +30629,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -24788,6 +30640,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixd((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -24804,7 +30659,14 @@ namespace OpenTK.Graphics public static unsafe void MultTransposeMatrix(Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultTransposeMatrixd((Double*)m); + #if DEBUG + } + #endif } @@ -24825,7 +30687,14 @@ namespace OpenTK.Graphics public static void SampleCoverage(Single value, bool invert) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSampleCoverage((Single)value, (bool)invert); + #if DEBUG + } + #endif } @@ -24881,10 +30750,14 @@ namespace OpenTK.Graphics public static void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -24941,18 +30814,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] ref T8 data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25009,18 +30886,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T8[] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25077,18 +30958,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T8[,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25145,18 +31030,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T8[,,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25207,10 +31096,14 @@ namespace OpenTK.Graphics public static void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -25262,18 +31155,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] ref T7 data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25325,18 +31222,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T7[] data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25388,18 +31289,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T7[,] data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25451,18 +31356,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T7[,,] data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25508,10 +31417,14 @@ namespace OpenTK.Graphics public static void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -25558,18 +31471,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] ref T6 data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25616,18 +31533,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T6[] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25674,18 +31595,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T6[,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25732,18 +31657,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T6[,,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25804,10 +31733,14 @@ namespace OpenTK.Graphics public static void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -25869,18 +31802,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T10 data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -25942,18 +31879,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T10[] data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26015,18 +31956,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T10[,] data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26088,18 +32033,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T10[,,] data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26155,10 +32104,14 @@ namespace OpenTK.Graphics public static void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -26215,18 +32168,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T8 data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26283,18 +32240,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T8[] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26351,18 +32312,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T8[,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26419,18 +32384,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T8[,,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26476,10 +32445,14 @@ namespace OpenTK.Graphics public static void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -26526,18 +32499,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T6 data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26584,18 +32561,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T6[] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26642,18 +32623,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T6[,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26700,18 +32685,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T6[,,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1D((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26737,10 +32726,14 @@ namespace OpenTK.Graphics public static void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [Out] IntPtr img) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img); + #endif + Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img); + #if DEBUG } + #endif } @@ -26767,18 +32760,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] ref T2 img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26805,18 +32802,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] T2[] img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26843,18 +32844,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] T2[,] img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26881,18 +32886,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] T2[,,] img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImage((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -26923,7 +32932,14 @@ namespace OpenTK.Graphics public static void BlendFuncSeparate(OpenTK.Graphics.BlendingFactorSrc sfactorRGB, OpenTK.Graphics.BlendingFactorDest dfactorRGB, OpenTK.Graphics.BlendingFactorSrc sfactorAlpha, OpenTK.Graphics.BlendingFactorDest dfactorAlpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendFuncSeparate((OpenTK.Graphics.BlendingFactorSrc)sfactorRGB, (OpenTK.Graphics.BlendingFactorDest)dfactorRGB, (OpenTK.Graphics.BlendingFactorSrc)sfactorAlpha, (OpenTK.Graphics.BlendingFactorDest)dfactorAlpha); + #if DEBUG + } + #endif } @@ -26939,13 +32955,24 @@ namespace OpenTK.Graphics public static void FogCoord(Single coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordf((Single)coord); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glFogCoordfv")] public static void FogCoordv(Single[] coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coord_ptr = coord) @@ -26953,12 +32980,19 @@ namespace OpenTK.Graphics Delegates.glFogCoordfv((Single*)coord_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glFogCoordfv")] public static void FogCoordv(ref Single coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coord_ptr = &coord) @@ -26966,6 +33000,9 @@ namespace OpenTK.Graphics Delegates.glFogCoordfv((Single*)coord_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -26973,7 +33010,14 @@ namespace OpenTK.Graphics public static unsafe void FogCoordv(Single* coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordfv((Single*)coord); + #if DEBUG + } + #endif } @@ -26989,13 +33033,24 @@ namespace OpenTK.Graphics public static void FogCoord(Double coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordd((Double)coord); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glFogCoorddv")] public static void FogCoordv(Double[] coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coord_ptr = coord) @@ -27003,12 +33058,19 @@ namespace OpenTK.Graphics Delegates.glFogCoorddv((Double*)coord_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glFogCoorddv")] public static void FogCoordv(ref Double coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coord_ptr = &coord) @@ -27016,6 +33078,9 @@ namespace OpenTK.Graphics Delegates.glFogCoorddv((Double*)coord_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -27023,7 +33088,14 @@ namespace OpenTK.Graphics public static unsafe void FogCoordv(Double* coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoorddv((Double*)coord); + #if DEBUG + } + #endif } @@ -27049,10 +33121,14 @@ namespace OpenTK.Graphics public static void FogCoordPointer(OpenTK.Graphics.FogPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -27079,18 +33155,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.FogPointerType type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -27117,18 +33197,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.FogPointerType type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -27155,18 +33239,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.FogPointerType type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -27193,18 +33281,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.FogPointerType type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointer((OpenTK.Graphics.FogPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -27235,6 +33327,10 @@ namespace OpenTK.Graphics public static void MultiDrawArrays(OpenTK.Graphics.BeginMode mode, [Out] Int32[] first, [Out] Int32[] count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = first) @@ -27243,6 +33339,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawArrays((OpenTK.Graphics.BeginMode)mode, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } @@ -27273,6 +33372,10 @@ namespace OpenTK.Graphics public static void MultiDrawArrays(OpenTK.Graphics.BeginMode mode, [Out] out Int32 first, [Out] out Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = &first) @@ -27283,6 +33386,9 @@ namespace OpenTK.Graphics count = *count_ptr; } } + #if DEBUG + } + #endif } @@ -27314,7 +33420,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawArrays(OpenTK.Graphics.BeginMode mode, [Out] Int32* first, [Out] Int32* count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawArrays((OpenTK.Graphics.BeginMode)mode, (Int32*)first, (Int32*)count, (Int32)primcount); + #if DEBUG + } + #endif } @@ -27350,6 +33463,10 @@ namespace OpenTK.Graphics public static void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -27357,6 +33474,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); } } + #if DEBUG + } + #endif } @@ -27393,6 +33513,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -27408,6 +33532,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27444,6 +33571,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -27459,6 +33590,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27495,6 +33629,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -27510,6 +33648,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27546,6 +33687,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -27561,6 +33706,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27596,6 +33744,10 @@ namespace OpenTK.Graphics public static void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -27603,6 +33755,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); } } + #if DEBUG + } + #endif } @@ -27639,6 +33794,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -27654,6 +33813,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27690,6 +33852,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -27705,6 +33871,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27741,6 +33910,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -27756,6 +33929,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27792,6 +33968,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -27807,6 +33987,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -27843,7 +34026,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawElements((OpenTK.Graphics.BeginMode)mode, (Int32*)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); + #if DEBUG + } + #endif } @@ -27881,6 +34071,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -27890,6 +34084,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -27927,6 +34124,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -27936,6 +34137,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -27973,6 +34177,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -27982,6 +34190,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -28019,6 +34230,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -28028,6 +34243,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -28048,13 +34266,24 @@ namespace OpenTK.Graphics public static void PointParameter(OpenTK.Graphics.PointParameterName pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterf((OpenTK.Graphics.PointParameterName)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glPointParameterfv")] public static void PointParameterv(OpenTK.Graphics.PointParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -28062,12 +34291,19 @@ namespace OpenTK.Graphics Delegates.glPointParameterfv((OpenTK.Graphics.PointParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glPointParameterfv")] public static void PointParameterv(OpenTK.Graphics.PointParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -28075,6 +34311,9 @@ namespace OpenTK.Graphics Delegates.glPointParameterfv((OpenTK.Graphics.PointParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -28082,7 +34321,14 @@ namespace OpenTK.Graphics public static unsafe void PointParameterv(OpenTK.Graphics.PointParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfv((OpenTK.Graphics.PointParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -28103,13 +34349,24 @@ namespace OpenTK.Graphics public static void PointParameter(OpenTK.Graphics.PointParameterName pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameteri((OpenTK.Graphics.PointParameterName)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glPointParameteriv")] public static void PointParameterv(OpenTK.Graphics.PointParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -28117,12 +34374,19 @@ namespace OpenTK.Graphics Delegates.glPointParameteriv((OpenTK.Graphics.PointParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version14", Version = "1.4", EntryPoint = "glPointParameteriv")] public static void PointParameterv(OpenTK.Graphics.PointParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -28130,6 +34394,9 @@ namespace OpenTK.Graphics Delegates.glPointParameteriv((OpenTK.Graphics.PointParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -28137,7 +34404,14 @@ namespace OpenTK.Graphics public static unsafe void PointParameterv(OpenTK.Graphics.PointParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameteriv((OpenTK.Graphics.PointParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -28154,7 +34428,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(SByte red, SByte green, SByte blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3b((SByte)red, (SByte)green, (SByte)blue); + #if DEBUG + } + #endif } @@ -28171,6 +34452,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -28178,6 +34463,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28194,6 +34482,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -28201,6 +34493,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3bv((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28217,7 +34512,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3bv((SByte*)v); + #if DEBUG + } + #endif } @@ -28233,7 +34535,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Double red, Double green, Double blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3d((Double)red, (Double)green, (Double)blue); + #if DEBUG + } + #endif } @@ -28249,6 +34558,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -28256,6 +34569,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28271,6 +34587,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -28278,6 +34598,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28294,7 +34617,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3dv((Double*)v); + #if DEBUG + } + #endif } @@ -28310,7 +34640,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Single red, Single green, Single blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3f((Single)red, (Single)green, (Single)blue); + #if DEBUG + } + #endif } @@ -28326,6 +34663,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -28333,6 +34674,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28348,6 +34692,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -28355,6 +34703,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28371,7 +34722,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3fv((Single*)v); + #if DEBUG + } + #endif } @@ -28387,7 +34745,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int32 red, Int32 green, Int32 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3i((Int32)red, (Int32)green, (Int32)blue); + #if DEBUG + } + #endif } @@ -28403,6 +34768,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -28410,6 +34779,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28425,6 +34797,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -28432,6 +34808,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28448,7 +34827,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -28464,7 +34850,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int16 red, Int16 green, Int16 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3s((Int16)red, (Int16)green, (Int16)blue); + #if DEBUG + } + #endif } @@ -28480,6 +34873,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -28487,6 +34884,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28502,6 +34902,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -28509,6 +34913,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28525,7 +34932,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -28541,7 +34955,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Byte red, Byte green, Byte blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3ub((Byte)red, (Byte)green, (Byte)blue); + #if DEBUG + } + #endif } @@ -28557,6 +34978,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -28564,6 +34989,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3ubv((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28579,6 +35007,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -28586,6 +35018,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3ubv((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28602,7 +35037,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3ubv((Byte*)v); + #if DEBUG + } + #endif } @@ -28619,7 +35061,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt32 red, UInt32 green, UInt32 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3ui((UInt32)red, (UInt32)green, (UInt32)blue); + #if DEBUG + } + #endif } @@ -28636,6 +35085,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -28643,6 +35096,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3uiv((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28659,6 +35115,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -28666,6 +35126,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3uiv((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28682,7 +35145,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3uiv((UInt32*)v); + #if DEBUG + } + #endif } @@ -28699,7 +35169,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt16 red, UInt16 green, UInt16 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3us((UInt16)red, (UInt16)green, (UInt16)blue); + #if DEBUG + } + #endif } @@ -28716,6 +35193,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -28723,6 +35204,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3usv((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28739,6 +35223,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -28746,6 +35234,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3usv((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -28762,7 +35253,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3usv((UInt16*)v); + #if DEBUG + } + #endif } @@ -28793,10 +35291,14 @@ namespace OpenTK.Graphics public static void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -28828,18 +35330,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -28871,18 +35377,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -28914,18 +35424,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -28957,18 +35471,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointer((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -28984,7 +35502,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2d((Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -29000,6 +35525,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -29007,6 +35536,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29022,6 +35554,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -29029,6 +35565,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29045,7 +35584,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2dv((Double*)v); + #if DEBUG + } + #endif } @@ -29061,7 +35607,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2f((Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -29077,6 +35630,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -29084,6 +35641,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29099,6 +35659,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -29106,6 +35670,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29122,7 +35689,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2fv((Single*)v); + #if DEBUG + } + #endif } @@ -29138,7 +35712,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2i((Int32)x, (Int32)y); + #if DEBUG + } + #endif } @@ -29154,6 +35735,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -29161,6 +35746,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29176,6 +35764,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -29183,6 +35775,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29199,7 +35794,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2iv((Int32*)v); + #if DEBUG + } + #endif } @@ -29215,7 +35817,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2s((Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -29231,6 +35840,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -29238,6 +35851,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29253,6 +35869,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -29260,6 +35880,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29276,7 +35899,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2sv((Int16*)v); + #if DEBUG + } + #endif } @@ -29292,7 +35922,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3d((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -29308,6 +35945,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -29315,6 +35956,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29330,6 +35974,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -29337,6 +35985,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3dv((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29353,7 +36004,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3dv((Double*)v); + #if DEBUG + } + #endif } @@ -29369,7 +36027,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3f((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -29385,6 +36050,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -29392,6 +36061,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29407,6 +36079,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -29414,6 +36090,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3fv((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29430,7 +36109,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3fv((Single*)v); + #if DEBUG + } + #endif } @@ -29446,7 +36132,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3i((Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } @@ -29462,6 +36155,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -29469,6 +36166,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29484,6 +36184,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -29491,6 +36195,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3iv((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29507,7 +36214,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3iv((Int32*)v); + #if DEBUG + } + #endif } @@ -29523,7 +36237,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3s((Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -29539,6 +36260,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -29546,6 +36271,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29561,6 +36289,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -29568,6 +36300,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3sv((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -29584,7 +36319,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3sv((Int16*)v); + #if DEBUG + } + #endif } @@ -29606,6 +36348,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -29613,6 +36359,9 @@ namespace OpenTK.Graphics Delegates.glGenQueries((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -29633,6 +36382,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -29640,6 +36393,9 @@ namespace OpenTK.Graphics Delegates.glGenQueries((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -29661,6 +36417,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] out UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -29669,6 +36429,9 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } @@ -29689,6 +36452,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] out Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -29697,6 +36464,9 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } @@ -29718,7 +36488,14 @@ namespace OpenTK.Graphics public static unsafe void GenQueries(Int32 n, [Out] UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenQueries((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -29740,7 +36517,14 @@ namespace OpenTK.Graphics public static unsafe void GenQueries(Int32 n, [Out] Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenQueries((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -29762,6 +36546,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -29769,6 +36557,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -29789,6 +36580,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -29796,6 +36591,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -29817,6 +36615,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, ref UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -29824,6 +36626,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -29844,6 +36649,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, ref Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -29851,6 +36660,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueries((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -29872,7 +36684,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteQueries(Int32 n, UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteQueries((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -29894,7 +36713,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteQueries(Int32 n, Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteQueries((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -29911,7 +36737,14 @@ namespace OpenTK.Graphics public static bool IsQuery(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsQuery((UInt32)id); + #if DEBUG + } + #endif } @@ -29949,7 +36782,14 @@ namespace OpenTK.Graphics public static void BeginQuery(OpenTK.Graphics.QueryTarget target, UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginQuery((OpenTK.Graphics.QueryTarget)target, (UInt32)id); + #if DEBUG + } + #endif } @@ -29977,7 +36817,14 @@ namespace OpenTK.Graphics public static void EndQuery(OpenTK.Graphics.QueryTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndQuery((OpenTK.Graphics.QueryTarget)target); + #if DEBUG + } + #endif } @@ -30003,6 +36850,10 @@ namespace OpenTK.Graphics public static void GetQuery(OpenTK.Graphics.QueryTarget target, OpenTK.Graphics.GetQueryParam pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -30010,6 +36861,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryiv((OpenTK.Graphics.QueryTarget)target, (OpenTK.Graphics.GetQueryParam)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -30035,6 +36889,10 @@ namespace OpenTK.Graphics public static void GetQuery(OpenTK.Graphics.QueryTarget target, OpenTK.Graphics.GetQueryParam pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -30043,6 +36901,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -30069,7 +36930,14 @@ namespace OpenTK.Graphics public static unsafe void GetQuery(OpenTK.Graphics.QueryTarget target, OpenTK.Graphics.GetQueryParam pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryiv((OpenTK.Graphics.QueryTarget)target, (OpenTK.Graphics.GetQueryParam)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -30096,6 +36964,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -30103,6 +36975,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectiv((UInt32)id, (OpenTK.Graphics.GetQueryObjectParam)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -30128,6 +37003,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(Int32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -30135,6 +37014,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectiv((UInt32)id, (OpenTK.Graphics.GetQueryObjectParam)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -30161,6 +37043,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -30169,6 +37055,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -30194,6 +37083,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(Int32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -30202,6 +37095,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -30228,7 +37124,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectiv((UInt32)id, (OpenTK.Graphics.GetQueryObjectParam)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -30255,7 +37158,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObject(Int32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectiv((UInt32)id, (OpenTK.Graphics.GetQueryObjectParam)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -30282,6 +37192,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -30289,6 +37203,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectuiv((UInt32)id, (OpenTK.Graphics.GetQueryObjectParam)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -30315,6 +37232,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -30323,6 +37244,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -30349,7 +37273,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectuiv((UInt32)id, (OpenTK.Graphics.GetQueryObjectParam)pname, (UInt32*)@params); + #if DEBUG + } + #endif } @@ -30371,7 +37302,14 @@ namespace OpenTK.Graphics public static void BindBuffer(OpenTK.Graphics.BufferTarget target, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBuffer((OpenTK.Graphics.BufferTarget)target, (UInt32)buffer); + #if DEBUG + } + #endif } @@ -30414,6 +37352,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, UInt32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = buffers) @@ -30421,6 +37363,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -30441,6 +37386,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, Int32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = buffers) @@ -30448,6 +37397,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -30469,6 +37421,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, ref UInt32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = &buffers) @@ -30476,6 +37432,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -30496,6 +37455,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, ref Int32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = &buffers) @@ -30503,6 +37466,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -30524,7 +37490,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteBuffers(Int32 n, UInt32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -30546,7 +37519,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteBuffers(Int32 n, Int32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -30568,6 +37548,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] UInt32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = buffers) @@ -30575,6 +37559,9 @@ namespace OpenTK.Graphics Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -30595,6 +37582,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] Int32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = buffers) @@ -30602,6 +37593,9 @@ namespace OpenTK.Graphics Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -30623,6 +37617,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] out UInt32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = &buffers) @@ -30631,6 +37629,9 @@ namespace OpenTK.Graphics buffers = *buffers_ptr; } } + #if DEBUG + } + #endif } @@ -30651,6 +37652,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] out Int32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = &buffers) @@ -30659,6 +37664,9 @@ namespace OpenTK.Graphics buffers = *buffers_ptr; } } + #if DEBUG + } + #endif } @@ -30680,7 +37688,14 @@ namespace OpenTK.Graphics public static unsafe void GenBuffers(Int32 n, [Out] UInt32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -30702,7 +37717,14 @@ namespace OpenTK.Graphics public static unsafe void GenBuffers(Int32 n, [Out] Int32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -30719,7 +37741,14 @@ namespace OpenTK.Graphics public static bool IsBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsBuffer((UInt32)buffer); + #if DEBUG + } + #endif } @@ -30766,10 +37795,14 @@ namespace OpenTK.Graphics public static void BufferData(OpenTK.Graphics.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.BufferUsageHint usage) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.BufferUsageHint)usage); + #endif + Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.BufferUsageHint)usage); + #if DEBUG } + #endif } @@ -30801,18 +37834,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTarget target, IntPtr size, [In, Out] ref T2 data, OpenTK.Graphics.BufferUsageHint usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -30844,18 +37881,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTarget target, IntPtr size, [In, Out] T2[] data, OpenTK.Graphics.BufferUsageHint usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -30887,18 +37928,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTarget target, IntPtr size, [In, Out] T2[,] data, OpenTK.Graphics.BufferUsageHint usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -30930,18 +37975,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTarget target, IntPtr size, [In, Out] T2[,,] data, OpenTK.Graphics.BufferUsageHint usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageHint)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -30972,10 +38021,14 @@ namespace OpenTK.Graphics public static void BufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } @@ -31007,18 +38060,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31050,18 +38107,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31093,18 +38154,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31136,18 +38201,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31178,10 +38247,14 @@ namespace OpenTK.Graphics public static void GetBufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } @@ -31213,18 +38286,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31256,18 +38333,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31299,18 +38380,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31342,18 +38427,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubData((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31375,14 +38464,28 @@ namespace OpenTK.Graphics public static unsafe IntPtr MapBuffer(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferAccess access) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glMapBuffer((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferAccess)access); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version15", Version = "1.5", EntryPoint = "glUnmapBuffer")] public static bool UnmapBuffer(OpenTK.Graphics.BufferTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glUnmapBuffer((OpenTK.Graphics.BufferTarget)target); + #if DEBUG + } + #endif } @@ -31408,6 +38511,10 @@ namespace OpenTK.Graphics public static void GetBufferParameter(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -31415,6 +38522,9 @@ namespace OpenTK.Graphics Delegates.glGetBufferParameteriv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -31440,6 +38550,10 @@ namespace OpenTK.Graphics public static void GetBufferParameter(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -31448,6 +38562,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -31474,7 +38591,14 @@ namespace OpenTK.Graphics public static unsafe void GetBufferParameter(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBufferParameteriv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -31500,10 +38624,14 @@ namespace OpenTK.Graphics public static void GetBufferPointer(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferPointer pname, [Out] IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params); + #endif + Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params); + #if DEBUG } + #endif } @@ -31530,18 +38658,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferPointer pname, [In, Out] ref T2 @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31568,18 +38700,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferPointer pname, [In, Out] T2[] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31606,18 +38742,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferPointer pname, [In, Out] T2[,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31644,18 +38784,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.BufferTarget target, OpenTK.Graphics.BufferPointer pname, [In, Out] T2[,,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointerv((OpenTK.Graphics.BufferTarget)target, (OpenTK.Graphics.BufferPointer)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -31676,7 +38820,14 @@ namespace OpenTK.Graphics public static void BlendEquationSeparate(OpenTK.Graphics.All modeRGB, OpenTK.Graphics.All modeAlpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendEquationSeparate((OpenTK.Graphics.All)modeRGB, (OpenTK.Graphics.All)modeAlpha); + #if DEBUG + } + #endif } @@ -31697,6 +38848,10 @@ namespace OpenTK.Graphics public static void DrawBuffers(Int32 n, OpenTK.Graphics.DrawBuffersEnum[] bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.DrawBuffersEnum* bufs_ptr = bufs) @@ -31704,6 +38859,9 @@ namespace OpenTK.Graphics Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.DrawBuffersEnum*)bufs_ptr); } } + #if DEBUG + } + #endif } @@ -31724,6 +38882,10 @@ namespace OpenTK.Graphics public static void DrawBuffers(Int32 n, ref OpenTK.Graphics.DrawBuffersEnum bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.DrawBuffersEnum* bufs_ptr = &bufs) @@ -31731,6 +38893,9 @@ namespace OpenTK.Graphics Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.DrawBuffersEnum*)bufs_ptr); } } + #if DEBUG + } + #endif } @@ -31752,7 +38917,14 @@ namespace OpenTK.Graphics public static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.DrawBuffersEnum* bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.DrawBuffersEnum*)bufs); + #if DEBUG + } + #endif } @@ -31783,7 +38955,14 @@ namespace OpenTK.Graphics public static void StencilOpSeparate(OpenTK.Graphics.All face, OpenTK.Graphics.StencilOp sfail, OpenTK.Graphics.StencilOp dpfail, OpenTK.Graphics.StencilOp dppass) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilOpSeparate((OpenTK.Graphics.All)face, (OpenTK.Graphics.StencilOp)sfail, (OpenTK.Graphics.StencilOp)dpfail, (OpenTK.Graphics.StencilOp)dppass); + #if DEBUG + } + #endif } @@ -31815,7 +38994,14 @@ namespace OpenTK.Graphics public static void StencilFuncSeparate(OpenTK.Graphics.StencilFace face, OpenTK.Graphics.StencilFunction func, Int32 @ref, UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilFuncSeparate((OpenTK.Graphics.StencilFace)face, (OpenTK.Graphics.StencilFunction)func, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif } @@ -31868,7 +39054,14 @@ namespace OpenTK.Graphics public static void StencilMaskSeparate(OpenTK.Graphics.All face, UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilMaskSeparate((OpenTK.Graphics.All)face, (UInt32)mask); + #if DEBUG + } + #endif } @@ -31911,7 +39104,14 @@ namespace OpenTK.Graphics public static void AttachShader(UInt32 program, UInt32 shader) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAttachShader((UInt32)program, (UInt32)shader); + #if DEBUG + } + #endif } @@ -31959,7 +39159,14 @@ namespace OpenTK.Graphics public static void BindAttribLocation(UInt32 program, UInt32 index, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindAttribLocation((UInt32)program, (UInt32)index, (String)name); + #if DEBUG + } + #endif } @@ -32002,7 +39209,14 @@ namespace OpenTK.Graphics public static void CompileShader(UInt32 shader) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCompileShader((UInt32)shader); + #if DEBUG + } + #endif } @@ -32029,7 +39243,14 @@ namespace OpenTK.Graphics public static Int32 CreateProgram() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCreateProgram(); + #if DEBUG + } + #endif } @@ -32045,7 +39266,14 @@ namespace OpenTK.Graphics public static Int32 CreateShader(OpenTK.Graphics.ShaderType type) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCreateShader((OpenTK.Graphics.ShaderType)type); + #if DEBUG + } + #endif } @@ -32062,7 +39290,14 @@ namespace OpenTK.Graphics public static void DeleteProgram(UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteProgram((UInt32)program); + #if DEBUG + } + #endif } @@ -32095,7 +39330,14 @@ namespace OpenTK.Graphics public static void DeleteShader(UInt32 shader) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteShader((UInt32)shader); + #if DEBUG + } + #endif } @@ -32133,7 +39375,14 @@ namespace OpenTK.Graphics public static void DetachShader(UInt32 program, UInt32 shader) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDetachShader((UInt32)program, (UInt32)shader); + #if DEBUG + } + #endif } @@ -32162,7 +39411,14 @@ namespace OpenTK.Graphics public static void DisableVertexAttribArray(UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisableVertexAttribArray((UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glDisableVertexAttribArray")] @@ -32186,7 +39442,14 @@ namespace OpenTK.Graphics public static void EnableVertexAttribArray(UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnableVertexAttribArray((UInt32)index); + #if DEBUG + } + #endif } @@ -32249,6 +39512,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ActiveAttribType[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -32258,6 +39525,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -32303,6 +39573,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ActiveAttribType[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -32312,6 +39586,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -32358,6 +39635,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ActiveAttribType type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -32370,6 +39651,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -32415,6 +39699,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ActiveAttribType type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -32427,6 +39715,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -32473,7 +39764,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ActiveAttribType* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ActiveAttribType*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -32520,7 +39818,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ActiveAttribType* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ActiveAttribType*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -32567,6 +39872,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ActiveUniformType[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -32576,6 +39885,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -32621,6 +39933,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ActiveUniformType[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -32630,6 +39946,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -32676,6 +39995,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ActiveUniformType type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -32688,6 +40011,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -32733,6 +40059,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ActiveUniformType type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -32745,6 +40075,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -32791,7 +40124,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ActiveUniformType* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ActiveUniformType*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -32838,7 +40178,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ActiveUniformType* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ActiveUniformType*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -32870,6 +40217,10 @@ namespace OpenTK.Graphics public static void GetAttachedShaders(UInt32 program, Int32 maxCount, [Out] Int32[] count, [Out] UInt32[] obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -32878,6 +40229,9 @@ namespace OpenTK.Graphics Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxCount, (Int32*)count_ptr, (UInt32*)obj_ptr); } } + #if DEBUG + } + #endif } @@ -32908,6 +40262,10 @@ namespace OpenTK.Graphics public static void GetAttachedShaders(Int32 program, Int32 maxCount, [Out] Int32[] count, [Out] Int32[] obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -32916,6 +40274,9 @@ namespace OpenTK.Graphics Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxCount, (Int32*)count_ptr, (UInt32*)obj_ptr); } } + #if DEBUG + } + #endif } @@ -32947,6 +40308,10 @@ namespace OpenTK.Graphics public static void GetAttachedShaders(UInt32 program, Int32 maxCount, [Out] out Int32 count, [Out] out UInt32 obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -32957,6 +40322,9 @@ namespace OpenTK.Graphics obj = *obj_ptr; } } + #if DEBUG + } + #endif } @@ -32987,6 +40355,10 @@ namespace OpenTK.Graphics public static void GetAttachedShaders(Int32 program, Int32 maxCount, [Out] out Int32 count, [Out] out Int32 obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -32997,6 +40369,9 @@ namespace OpenTK.Graphics obj = *obj_ptr; } } + #if DEBUG + } + #endif } @@ -33028,7 +40403,14 @@ namespace OpenTK.Graphics public static unsafe void GetAttachedShaders(UInt32 program, Int32 maxCount, [Out] Int32* count, [Out] UInt32* obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxCount, (Int32*)count, (UInt32*)obj); + #if DEBUG + } + #endif } @@ -33060,7 +40442,14 @@ namespace OpenTK.Graphics public static unsafe void GetAttachedShaders(Int32 program, Int32 maxCount, [Out] Int32* count, [Out] Int32* obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxCount, (Int32*)count, (UInt32*)obj); + #if DEBUG + } + #endif } @@ -33082,7 +40471,14 @@ namespace OpenTK.Graphics public static Int32 GetAttribLocation(UInt32 program, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetAttribLocation((UInt32)program, (String)name); + #if DEBUG + } + #endif } @@ -33130,6 +40526,10 @@ namespace OpenTK.Graphics public static void GetProgram(UInt32 program, OpenTK.Graphics.ProgramParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -33137,6 +40537,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ProgramParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -33162,6 +40565,10 @@ namespace OpenTK.Graphics public static void GetProgram(Int32 program, OpenTK.Graphics.ProgramParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -33169,6 +40576,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ProgramParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -33195,6 +40605,10 @@ namespace OpenTK.Graphics public static void GetProgram(UInt32 program, OpenTK.Graphics.ProgramParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -33203,6 +40617,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -33228,6 +40645,10 @@ namespace OpenTK.Graphics public static void GetProgram(Int32 program, OpenTK.Graphics.ProgramParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -33236,6 +40657,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -33262,7 +40686,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ProgramParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ProgramParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -33289,7 +40720,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgram(Int32 program, OpenTK.Graphics.ProgramParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ProgramParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -33321,6 +40759,10 @@ namespace OpenTK.Graphics public static void GetProgramInfoLog(UInt32 program, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -33328,6 +40770,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); } } + #if DEBUG + } + #endif } @@ -33358,6 +40803,10 @@ namespace OpenTK.Graphics public static void GetProgramInfoLog(Int32 program, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -33365,6 +40814,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); } } + #if DEBUG + } + #endif } @@ -33396,6 +40848,10 @@ namespace OpenTK.Graphics public static void GetProgramInfoLog(UInt32 program, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -33404,6 +40860,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -33434,6 +40893,10 @@ namespace OpenTK.Graphics public static void GetProgramInfoLog(Int32 program, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -33442,6 +40905,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -33473,7 +40939,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + #if DEBUG + } + #endif } @@ -33505,7 +40978,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramInfoLog(Int32 program, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + #if DEBUG + } + #endif } @@ -33532,6 +41012,10 @@ namespace OpenTK.Graphics public static void GetShader(UInt32 shader, OpenTK.Graphics.ShaderParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -33539,6 +41023,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ShaderParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -33564,6 +41051,10 @@ namespace OpenTK.Graphics public static void GetShader(Int32 shader, OpenTK.Graphics.ShaderParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -33571,6 +41062,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ShaderParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -33597,6 +41091,10 @@ namespace OpenTK.Graphics public static void GetShader(UInt32 shader, OpenTK.Graphics.ShaderParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -33605,6 +41103,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -33630,6 +41131,10 @@ namespace OpenTK.Graphics public static void GetShader(Int32 shader, OpenTK.Graphics.ShaderParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -33638,6 +41143,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -33664,7 +41172,14 @@ namespace OpenTK.Graphics public static unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ShaderParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ShaderParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -33691,7 +41206,14 @@ namespace OpenTK.Graphics public static unsafe void GetShader(Int32 shader, OpenTK.Graphics.ShaderParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ShaderParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -33723,6 +41245,10 @@ namespace OpenTK.Graphics public static void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -33730,6 +41256,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); } } + #if DEBUG + } + #endif } @@ -33760,6 +41289,10 @@ namespace OpenTK.Graphics public static void GetShaderInfoLog(Int32 shader, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -33767,6 +41300,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); } } + #if DEBUG + } + #endif } @@ -33798,6 +41334,10 @@ namespace OpenTK.Graphics public static void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -33806,6 +41346,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -33836,6 +41379,10 @@ namespace OpenTK.Graphics public static void GetShaderInfoLog(Int32 shader, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -33844,6 +41391,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -33875,7 +41425,14 @@ namespace OpenTK.Graphics public static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + #if DEBUG + } + #endif } @@ -33907,7 +41464,14 @@ namespace OpenTK.Graphics public static unsafe void GetShaderInfoLog(Int32 shader, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + #if DEBUG + } + #endif } @@ -33939,6 +41503,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(UInt32 shader, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -33946,6 +41514,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder[])source); } } + #if DEBUG + } + #endif } @@ -33976,6 +41547,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(Int32 shader, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -33983,6 +41558,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder[])source); } } + #if DEBUG + } + #endif } @@ -34014,6 +41592,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(UInt32 shader, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -34022,6 +41604,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -34052,6 +41637,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(Int32 shader, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -34060,6 +41649,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -34091,7 +41683,14 @@ namespace OpenTK.Graphics public static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder[])source); + #if DEBUG + } + #endif } @@ -34123,7 +41722,14 @@ namespace OpenTK.Graphics public static unsafe void GetShaderSource(Int32 shader, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder[])source); + #if DEBUG + } + #endif } @@ -34145,7 +41751,14 @@ namespace OpenTK.Graphics public static Int32 GetUniformLocation(UInt32 program, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetUniformLocation((UInt32)program, (String)name); + #if DEBUG + } + #endif } @@ -34193,6 +41806,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -34200,6 +41817,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34225,6 +41845,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 program, Int32 location, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -34232,6 +41856,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34258,6 +41885,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -34266,6 +41897,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34291,6 +41925,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 program, Int32 location, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -34299,6 +41937,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34325,7 +41966,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(UInt32 program, Int32 location, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params); + #if DEBUG + } + #endif } @@ -34352,7 +42000,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(Int32 program, Int32 location, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params); + #if DEBUG + } + #endif } @@ -34379,6 +42034,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -34386,6 +42045,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34411,6 +42073,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 program, Int32 location, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -34418,6 +42084,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34444,6 +42113,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -34452,6 +42125,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34477,6 +42153,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 program, Int32 location, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -34485,6 +42165,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34511,7 +42194,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(UInt32 program, Int32 location, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params); + #if DEBUG + } + #endif } @@ -34538,7 +42228,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(Int32 program, Int32 location, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params); + #if DEBUG + } + #endif } @@ -34565,6 +42262,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -34572,6 +42273,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribdv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34597,6 +42301,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -34604,6 +42312,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribdv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34630,6 +42341,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -34638,6 +42353,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34663,6 +42381,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -34671,6 +42393,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34697,7 +42422,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribdv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -34724,7 +42456,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribdv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -34751,6 +42490,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -34758,6 +42501,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34783,6 +42529,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -34790,6 +42540,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34816,6 +42569,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -34824,6 +42581,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34849,6 +42609,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -34857,6 +42621,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -34883,7 +42650,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -34910,7 +42684,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -34937,6 +42718,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -34944,6 +42729,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -34969,6 +42757,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -34976,6 +42768,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -35002,6 +42797,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -35010,6 +42809,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -35035,6 +42837,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -35043,6 +42849,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -35069,7 +42878,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -35096,7 +42912,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.VertexAttribParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -35123,10 +42946,14 @@ namespace OpenTK.Graphics public static void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer); + #endif + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -35152,10 +42979,14 @@ namespace OpenTK.Graphics public static void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer); + #endif + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -35183,18 +43014,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35221,18 +43056,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35260,18 +43099,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35298,18 +43141,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35337,18 +43184,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35375,18 +43226,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35414,18 +43269,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35452,18 +43311,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameter pname, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -35480,7 +43343,14 @@ namespace OpenTK.Graphics public static bool IsProgram(UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsProgram((UInt32)program); + #if DEBUG + } + #endif } @@ -35513,7 +43383,14 @@ namespace OpenTK.Graphics public static bool IsShader(UInt32 shader) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsShader((UInt32)shader); + #if DEBUG + } + #endif } @@ -35546,7 +43423,14 @@ namespace OpenTK.Graphics public static void LinkProgram(UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLinkProgram((UInt32)program); + #if DEBUG + } + #endif } @@ -35594,6 +43478,10 @@ namespace OpenTK.Graphics public static void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32[] length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -35601,6 +43489,9 @@ namespace OpenTK.Graphics Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -35631,6 +43522,10 @@ namespace OpenTK.Graphics public static void ShaderSource(Int32 shader, Int32 count, String[] @string, Int32[] length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -35638,6 +43533,9 @@ namespace OpenTK.Graphics Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -35669,6 +43567,10 @@ namespace OpenTK.Graphics public static void ShaderSource(UInt32 shader, Int32 count, String[] @string, ref Int32 length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -35676,6 +43578,9 @@ namespace OpenTK.Graphics Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -35706,6 +43611,10 @@ namespace OpenTK.Graphics public static void ShaderSource(Int32 shader, Int32 count, String[] @string, ref Int32 length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -35713,6 +43622,9 @@ namespace OpenTK.Graphics Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -35744,7 +43656,14 @@ namespace OpenTK.Graphics public static unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length); + #if DEBUG + } + #endif } @@ -35776,7 +43695,14 @@ namespace OpenTK.Graphics public static unsafe void ShaderSource(Int32 shader, Int32 count, String[] @string, Int32* length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length); + #if DEBUG + } + #endif } @@ -35793,7 +43719,14 @@ namespace OpenTK.Graphics public static void UseProgram(UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUseProgram((UInt32)program); + #if DEBUG + } + #endif } @@ -35830,7 +43763,14 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Single v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1f((Int32)location, (Single)v0); + #if DEBUG + } + #endif } @@ -35851,7 +43791,14 @@ namespace OpenTK.Graphics public static void Uniform2(Int32 location, Single v0, Single v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2f((Int32)location, (Single)v0, (Single)v1); + #if DEBUG + } + #endif } @@ -35872,7 +43819,14 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Single v0, Single v1, Single v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3f((Int32)location, (Single)v0, (Single)v1, (Single)v2); + #if DEBUG + } + #endif } @@ -35893,7 +43847,14 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Single v0, Single v1, Single v2, Single v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4f((Int32)location, (Single)v0, (Single)v1, (Single)v2, (Single)v3); + #if DEBUG + } + #endif } @@ -35914,7 +43875,14 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1i((Int32)location, (Int32)v0); + #if DEBUG + } + #endif } @@ -35935,7 +43903,14 @@ namespace OpenTK.Graphics public static void Uniform2(Int32 location, Int32 v0, Int32 v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2i((Int32)location, (Int32)v0, (Int32)v1); + #if DEBUG + } + #endif } @@ -35956,7 +43931,14 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 v0, Int32 v1, Int32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3i((Int32)location, (Int32)v0, (Int32)v1, (Int32)v2); + #if DEBUG + } + #endif } @@ -35977,7 +43959,14 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 v0, Int32 v1, Int32 v2, Int32 v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4i((Int32)location, (Int32)v0, (Int32)v1, (Int32)v2, (Int32)v3); + #if DEBUG + } + #endif } @@ -35998,6 +43987,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36005,6 +43998,9 @@ namespace OpenTK.Graphics Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36025,6 +44021,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36032,6 +44032,9 @@ namespace OpenTK.Graphics Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36053,13 +44056,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniform2fv")] public static void Uniform2v(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36067,12 +44081,19 @@ namespace OpenTK.Graphics Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniform2fv")] public static void Uniform2v(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36080,6 +44101,9 @@ namespace OpenTK.Graphics Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36087,7 +44111,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } @@ -36108,6 +44139,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36115,6 +44150,9 @@ namespace OpenTK.Graphics Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36135,6 +44173,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36142,6 +44184,9 @@ namespace OpenTK.Graphics Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36163,7 +44208,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } @@ -36184,6 +44236,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36191,6 +44247,9 @@ namespace OpenTK.Graphics Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36211,6 +44270,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36218,6 +44281,9 @@ namespace OpenTK.Graphics Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36239,7 +44305,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } @@ -36260,6 +44333,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -36267,6 +44344,9 @@ namespace OpenTK.Graphics Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36287,6 +44367,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -36294,6 +44378,9 @@ namespace OpenTK.Graphics Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36315,13 +44402,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniform2iv")] public static void Uniform2v(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -36329,12 +44427,19 @@ namespace OpenTK.Graphics Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniform2iv")] public static void Uniform2v(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -36342,6 +44447,9 @@ namespace OpenTK.Graphics Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36349,7 +44457,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } @@ -36370,6 +44485,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -36377,6 +44496,9 @@ namespace OpenTK.Graphics Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36397,6 +44519,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -36404,6 +44530,9 @@ namespace OpenTK.Graphics Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36425,7 +44554,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } @@ -36446,6 +44582,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -36453,6 +44593,9 @@ namespace OpenTK.Graphics Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36473,6 +44616,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -36480,6 +44627,9 @@ namespace OpenTK.Graphics Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -36501,13 +44651,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniformMatrix2fv")] public static void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36515,12 +44676,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniformMatrix2fv")] public static void UniformMatrix2(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36528,6 +44696,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36535,13 +44706,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniformMatrix3fv")] public static void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36549,12 +44731,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniformMatrix3fv")] public static void UniformMatrix3(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36562,6 +44751,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36569,13 +44761,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniformMatrix4fv")] public static void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -36583,12 +44786,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glUniformMatrix4fv")] public static void UniformMatrix4(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -36596,6 +44806,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36603,7 +44816,14 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } @@ -36620,7 +44840,14 @@ namespace OpenTK.Graphics public static void ValidateProgram(UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glValidateProgram((UInt32)program); + #if DEBUG + } + #endif } @@ -36658,7 +44885,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Double x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1d((UInt32)index, (Double)x); + #if DEBUG + } + #endif } @@ -36687,6 +44921,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -36694,12 +44932,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib1dv")] public static void VertexAttrib1v(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -36707,6 +44952,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36714,6 +44962,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -36721,12 +44973,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib1dv")] public static void VertexAttrib1v(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -36734,6 +44993,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36741,7 +45003,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36749,7 +45018,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -36771,7 +45047,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Single x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1f((UInt32)index, (Single)x); + #if DEBUG + } + #endif } @@ -36800,6 +45083,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -36807,12 +45094,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib1fv")] public static void VertexAttrib1v(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -36820,6 +45114,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36827,6 +45124,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -36834,12 +45135,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib1fv")] public static void VertexAttrib1v(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -36847,6 +45155,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36854,7 +45165,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36862,7 +45180,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -36884,7 +45209,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Int16 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1s((UInt32)index, (Int16)x); + #if DEBUG + } + #endif } @@ -36913,6 +45245,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -36920,12 +45256,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib1sv")] public static void VertexAttrib1v(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -36933,6 +45276,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36940,6 +45286,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -36947,12 +45297,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib1sv")] public static void VertexAttrib1v(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -36960,6 +45317,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36967,7 +45327,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -36975,7 +45342,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -36997,7 +45371,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2d((UInt32)index, (Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -37040,6 +45421,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -37047,6 +45432,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37067,6 +45455,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -37074,6 +45466,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37095,6 +45490,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -37102,6 +45501,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37122,6 +45524,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -37129,6 +45535,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37150,7 +45559,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -37172,7 +45588,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -37194,7 +45617,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2f((UInt32)index, (Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -37237,6 +45667,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -37244,6 +45678,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37264,6 +45701,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -37271,6 +45712,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37292,6 +45736,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -37299,6 +45747,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37319,6 +45770,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -37326,6 +45781,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37347,7 +45805,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -37369,7 +45834,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -37391,7 +45863,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2s((UInt32)index, (Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -37434,6 +45913,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -37441,6 +45924,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37461,6 +45947,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -37468,6 +45958,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37489,6 +45982,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -37496,6 +45993,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37516,6 +46016,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -37523,6 +46027,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37544,7 +46051,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -37566,7 +46080,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -37588,7 +46109,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3d((UInt32)index, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -37631,6 +46159,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -37638,6 +46170,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37658,6 +46193,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -37665,6 +46204,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37686,6 +46228,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -37693,6 +46239,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37713,6 +46262,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -37720,6 +46273,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37741,7 +46297,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -37763,7 +46326,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -37785,7 +46355,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3f((UInt32)index, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -37828,6 +46405,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -37835,6 +46416,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37855,6 +46439,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -37862,6 +46450,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37883,6 +46474,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -37890,6 +46485,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37910,6 +46508,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -37917,6 +46519,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -37938,7 +46543,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -37960,7 +46572,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -37982,7 +46601,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3s((UInt32)index, (Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -38025,6 +46651,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -38032,6 +46662,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38052,6 +46685,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -38059,6 +46696,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38080,6 +46720,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -38087,6 +46731,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38107,6 +46754,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -38114,6 +46765,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38135,7 +46789,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -38157,7 +46818,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38165,6 +46833,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -38172,6 +46844,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nbv((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38179,6 +46854,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -38186,6 +46865,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nbv((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38193,7 +46875,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nbv((UInt32)index, (SByte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38201,6 +46890,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -38208,12 +46901,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Niv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Niv")] public static void VertexAttrib4N(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -38221,6 +46921,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Niv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38228,6 +46931,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -38235,12 +46942,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Niv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Niv")] public static void VertexAttrib4N(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -38248,6 +46962,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Niv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38255,7 +46972,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Niv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38263,7 +46987,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Niv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38271,6 +47002,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -38278,12 +47013,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nsv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Nsv")] public static void VertexAttrib4N(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -38291,6 +47033,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nsv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38298,6 +47043,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -38305,12 +47054,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nsv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Nsv")] public static void VertexAttrib4N(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -38318,6 +47074,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nsv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38325,7 +47084,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nsv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38333,7 +47099,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nsv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38341,7 +47114,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Byte x, Byte y, Byte z, Byte w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nub((UInt32)index, (Byte)x, (Byte)y, (Byte)z, (Byte)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Nub")] @@ -38356,6 +47136,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -38363,12 +47147,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Nubv")] public static void VertexAttrib4N(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -38376,6 +47167,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38383,6 +47177,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -38390,12 +47188,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glVertexAttrib4Nubv")] public static void VertexAttrib4N(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -38403,6 +47208,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38410,7 +47218,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nubv((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38418,7 +47233,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nubv((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38426,6 +47248,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -38433,6 +47259,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nuiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38440,6 +47269,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -38447,6 +47280,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nuiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38454,7 +47290,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nuiv((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38462,6 +47305,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -38469,6 +47316,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nusv((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38476,6 +47326,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -38483,6 +47337,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4Nusv((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -38490,7 +47347,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4Nusv((UInt32)index, (UInt16*)v); + #if DEBUG + } + #endif } @@ -38512,6 +47376,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -38519,6 +47387,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4bv((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38540,6 +47411,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -38547,6 +47422,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4bv((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38568,7 +47446,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4bv((UInt32)index, (SByte*)v); + #if DEBUG + } + #endif } @@ -38590,7 +47475,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4d((UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } @@ -38633,6 +47525,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -38640,6 +47536,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38660,6 +47559,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -38667,6 +47570,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38688,6 +47594,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -38695,6 +47605,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38715,6 +47628,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -38722,6 +47639,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dv((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38743,7 +47663,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -38765,7 +47692,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dv((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -38787,7 +47721,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4f((UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } @@ -38830,6 +47771,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -38837,6 +47782,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38857,6 +47805,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -38864,6 +47816,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38885,6 +47840,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -38892,6 +47851,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38912,6 +47874,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -38919,6 +47885,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fv((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -38940,7 +47909,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -38962,7 +47938,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fv((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -38984,6 +47967,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -38991,6 +47978,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39011,6 +48001,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -39018,6 +48012,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39039,6 +48036,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -39046,6 +48047,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39066,6 +48070,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -39073,6 +48081,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39094,7 +48105,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } @@ -39116,7 +48134,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } @@ -39138,7 +48163,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4s((UInt32)index, (Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } @@ -39181,6 +48213,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -39188,6 +48224,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39208,6 +48247,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -39215,6 +48258,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39236,6 +48282,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -39243,6 +48293,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39263,6 +48316,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -39270,6 +48327,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39291,7 +48351,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -39313,7 +48380,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -39335,6 +48409,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -39342,6 +48420,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39362,6 +48443,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -39369,6 +48454,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39390,6 +48478,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -39397,6 +48489,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39417,6 +48512,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -39424,6 +48523,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39445,7 +48547,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubv((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } @@ -39467,7 +48576,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubv((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } @@ -39489,6 +48605,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -39496,6 +48616,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39517,6 +48640,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -39524,6 +48651,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39545,7 +48675,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4uiv((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } @@ -39567,6 +48704,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -39574,6 +48715,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4usv((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39595,6 +48739,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -39602,6 +48750,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4usv((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -39623,7 +48774,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4usv((UInt32)index, (UInt16*)v); + #if DEBUG + } + #endif } @@ -39665,10 +48823,14 @@ namespace OpenTK.Graphics public static void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -39709,10 +48871,14 @@ namespace OpenTK.Graphics public static void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -39755,18 +48921,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] ref T5 pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -39808,18 +48978,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] ref T5 pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -39862,18 +49036,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] T5[] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -39915,18 +49093,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] T5[] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -39969,18 +49151,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] T5[,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -40022,18 +49208,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] T5[,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -40076,18 +49266,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] T5[,,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -40129,24 +49323,32 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerType type, bool normalized, Int32 stride, [In, Out] T5[,,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix2x3fv")] public static void UniformMatrix2x3(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -40154,12 +49356,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2x3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix2x3fv")] public static void UniformMatrix2x3(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -40167,6 +49376,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2x3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40174,13 +49386,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix2x3(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix2x3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix3x2fv")] public static void UniformMatrix3x2(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -40188,12 +49411,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3x2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix3x2fv")] public static void UniformMatrix3x2(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -40201,6 +49431,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3x2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40208,13 +49441,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix3x2(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix3x2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix2x4fv")] public static void UniformMatrix2x4(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -40222,12 +49466,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2x4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix2x4fv")] public static void UniformMatrix2x4(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -40235,6 +49486,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2x4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40242,13 +49496,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix2x4(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix2x4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix4x2fv")] public static void UniformMatrix4x2(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -40256,12 +49521,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4x2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix4x2fv")] public static void UniformMatrix4x2(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -40269,6 +49541,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4x2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40276,13 +49551,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix4x2(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix4x2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix3x4fv")] public static void UniformMatrix3x4(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -40290,12 +49576,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3x4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix3x4fv")] public static void UniformMatrix3x4(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -40303,6 +49596,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3x4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40310,13 +49606,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix3x4(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix3x4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix4x3fv")] public static void UniformMatrix4x3(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -40324,12 +49631,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4x3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version21", Version = "2.1", EntryPoint = "glUniformMatrix4x3fv")] public static void UniformMatrix4x3(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -40337,6 +49651,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4x3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40344,7 +49661,14 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix4x3(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix4x3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } @@ -40361,7 +49685,14 @@ namespace OpenTK.Graphics public static void ColorMask(UInt32 index, bool r, bool g, bool b, bool a) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorMaski((UInt32)index, (bool)r, (bool)g, (bool)b, (bool)a); + #if DEBUG + } + #endif } @@ -40385,6 +49716,10 @@ namespace OpenTK.Graphics public static void GetBooleani_(OpenTK.Graphics.Version30 target, UInt32 index, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -40392,12 +49727,19 @@ namespace OpenTK.Graphics Delegates.glGetBooleani_v((OpenTK.Graphics.Version30)target, (UInt32)index, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetBooleani_v")] public static void GetBooleani_(OpenTK.Graphics.Version30 target, Int32 index, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -40405,6 +49747,9 @@ namespace OpenTK.Graphics Delegates.glGetBooleani_v((OpenTK.Graphics.Version30)target, (UInt32)index, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40412,6 +49757,10 @@ namespace OpenTK.Graphics public static void GetBooleani_(OpenTK.Graphics.Version30 target, UInt32 index, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -40420,12 +49769,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetBooleani_v")] public static void GetBooleani_(OpenTK.Graphics.Version30 target, Int32 index, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -40434,6 +49790,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40441,7 +49800,14 @@ namespace OpenTK.Graphics public static unsafe void GetBooleani_(OpenTK.Graphics.Version30 target, UInt32 index, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBooleani_v((OpenTK.Graphics.Version30)target, (UInt32)index, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40449,7 +49815,14 @@ namespace OpenTK.Graphics public static unsafe void GetBooleani_(OpenTK.Graphics.Version30 target, Int32 index, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBooleani_v((OpenTK.Graphics.Version30)target, (UInt32)index, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40457,6 +49830,10 @@ namespace OpenTK.Graphics public static void GetIntegeri_(OpenTK.Graphics.Version30 target, UInt32 index, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -40464,12 +49841,19 @@ namespace OpenTK.Graphics Delegates.glGetIntegeri_v((OpenTK.Graphics.Version30)target, (UInt32)index, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetIntegeri_v")] public static void GetIntegeri_(OpenTK.Graphics.Version30 target, Int32 index, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -40477,6 +49861,9 @@ namespace OpenTK.Graphics Delegates.glGetIntegeri_v((OpenTK.Graphics.Version30)target, (UInt32)index, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40484,6 +49871,10 @@ namespace OpenTK.Graphics public static void GetIntegeri_(OpenTK.Graphics.Version30 target, UInt32 index, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -40492,12 +49883,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetIntegeri_v")] public static void GetIntegeri_(OpenTK.Graphics.Version30 target, Int32 index, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -40506,6 +49904,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40513,7 +49914,14 @@ namespace OpenTK.Graphics public static unsafe void GetIntegeri_(OpenTK.Graphics.Version30 target, UInt32 index, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetIntegeri_v((OpenTK.Graphics.Version30)target, (UInt32)index, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40521,7 +49929,14 @@ namespace OpenTK.Graphics public static unsafe void GetIntegeri_(OpenTK.Graphics.Version30 target, Int32 index, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetIntegeri_v((OpenTK.Graphics.Version30)target, (UInt32)index, (Int32*)data); + #if DEBUG + } + #endif } @@ -40538,7 +49953,14 @@ namespace OpenTK.Graphics public static void Enable(OpenTK.Graphics.Version30 target, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnablei((OpenTK.Graphics.Version30)target, (UInt32)index); + #if DEBUG + } + #endif } @@ -40562,7 +49984,14 @@ namespace OpenTK.Graphics public static void Disable(OpenTK.Graphics.Version30 target, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisablei((OpenTK.Graphics.Version30)target, (UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glDisablei")] @@ -40586,7 +50015,14 @@ namespace OpenTK.Graphics public static bool IsEnabled(OpenTK.Graphics.Version30 target, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsEnabledi((OpenTK.Graphics.Version30)target, (UInt32)index); + #if DEBUG + } + #endif } @@ -40609,14 +50045,28 @@ namespace OpenTK.Graphics public static void BeginTransformFeedback(OpenTK.Graphics.Version30 primitiveMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginTransformFeedback((OpenTK.Graphics.Version30)primitiveMode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glEndTransformFeedback")] public static void EndTransformFeedback() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndTransformFeedback(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40624,7 +50074,14 @@ namespace OpenTK.Graphics public static void BindBufferRange(OpenTK.Graphics.Version30 target, UInt32 index, UInt32 buffer, IntPtr offset, IntPtr size) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferRange((OpenTK.Graphics.Version30)target, (UInt32)index, (UInt32)buffer, (IntPtr)offset, (IntPtr)size); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glBindBufferRange")] @@ -40639,7 +50096,14 @@ namespace OpenTK.Graphics public static void BindBufferBase(OpenTK.Graphics.Version30 target, UInt32 index, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferBase((OpenTK.Graphics.Version30)target, (UInt32)index, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glBindBufferBase")] @@ -40652,150 +50116,163 @@ namespace OpenTK.Graphics [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] public static - void TransformFeedbackVarying(UInt32 program, Int32 count, Int32[] locations, OpenTK.Graphics.Version30 bufferMode) + void TransformFeedbackVarying(UInt32 program, Int32 count, String varyings, OpenTK.Graphics.Version30 bufferMode) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - fixed (Int32* locations_ptr = locations) - { - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.Version30)bufferMode); - } + #endif + Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String)varyings, (OpenTK.Graphics.Version30)bufferMode); + #if DEBUG } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] public static - void TransformFeedbackVarying(Int32 program, Int32 count, Int32[] locations, OpenTK.Graphics.Version30 bufferMode) + void TransformFeedbackVarying(Int32 program, Int32 count, String varyings, OpenTK.Graphics.Version30 bufferMode) { - unsafe - { - fixed (Int32* locations_ptr = locations) - { - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.Version30)bufferMode); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] - public static - void TransformFeedbackVarying(UInt32 program, Int32 count, ref Int32 locations, OpenTK.Graphics.Version30 bufferMode) - { - unsafe - { - fixed (Int32* locations_ptr = &locations) - { - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.Version30)bufferMode); - } - } - } - - [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] - public static - void TransformFeedbackVarying(Int32 program, Int32 count, ref Int32 locations, OpenTK.Graphics.Version30 bufferMode) - { - unsafe - { - fixed (Int32* locations_ptr = &locations) - { - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.Version30)bufferMode); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] - public static - unsafe void TransformFeedbackVarying(UInt32 program, Int32 count, Int32* locations, OpenTK.Graphics.Version30 bufferMode) - { - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (Int32*)locations, (OpenTK.Graphics.Version30)bufferMode); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTransformFeedbackVaryings")] - public static - unsafe void TransformFeedbackVarying(Int32 program, Int32 count, Int32* locations, OpenTK.Graphics.Version30 bufferMode) - { - Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (Int32*)locations, (OpenTK.Graphics.Version30)bufferMode); + Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String)varyings, (OpenTK.Graphics.Version30)bufferMode); } [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32[] location) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.Version30[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = location) + fixed (Int32* length_ptr = length) + fixed (Int32* size_ptr = size) + fixed (OpenTK.Graphics.Version30* type_ptr = type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32*)location_ptr); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.Version30*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] Int32[] location) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.Version30[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = location) + fixed (Int32* length_ptr = length) + fixed (Int32* size_ptr = size) + fixed (OpenTK.Graphics.Version30* type_ptr = type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32*)location_ptr); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.Version30*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] out Int32 location) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.Version30 type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = &location) + fixed (Int32* length_ptr = &length) + fixed (Int32* size_ptr = &size) + fixed (OpenTK.Graphics.Version30* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32*)location_ptr); - location = *location_ptr; + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.Version30*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] out Int32 location) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.Version30 type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = &location) + fixed (Int32* length_ptr = &length) + fixed (Int32* size_ptr = &size) + fixed (OpenTK.Graphics.Version30* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32*)location_ptr); - location = *location_ptr; + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.Version30*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32* location) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.Version30* type, [Out] System.Text.StringBuilder name) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32*)location); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.Version30*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] Int32* location) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.Version30* type, [Out] System.Text.StringBuilder name) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32*)location); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.Version30*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glClampColor")] public static void ClampColor(OpenTK.Graphics.ClampColorTarget target, OpenTK.Graphics.ClampColorMode clamp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClampColor((OpenTK.Graphics.ClampColorTarget)target, (OpenTK.Graphics.ClampColorMode)clamp); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40803,7 +50280,14 @@ namespace OpenTK.Graphics public static void BeginConditionalRender(UInt32 id, OpenTK.Graphics.Version30 mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginConditionalRender((UInt32)id, (OpenTK.Graphics.Version30)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glBeginConditionalRender")] @@ -40817,7 +50301,14 @@ namespace OpenTK.Graphics public static void EndConditionalRender() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndConditionalRender(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40825,7 +50316,14 @@ namespace OpenTK.Graphics public static void VertexAttribI1(UInt32 index, Int32 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1i((UInt32)index, (Int32)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI1i")] @@ -40840,7 +50338,14 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2i((UInt32)index, (Int32)x, (Int32)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI2i")] @@ -40855,7 +50360,14 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3i((UInt32)index, (Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI3i")] @@ -40870,7 +50382,14 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4i((UInt32)index, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4i")] @@ -40885,7 +50404,14 @@ namespace OpenTK.Graphics public static void VertexAttribI1(UInt32 index, UInt32 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1ui((UInt32)index, (UInt32)x); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40893,7 +50419,14 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, UInt32 x, UInt32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2ui((UInt32)index, (UInt32)x, (UInt32)y); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40901,7 +50434,14 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, UInt32 x, UInt32 y, UInt32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3ui((UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40909,7 +50449,14 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, UInt32 x, UInt32 y, UInt32 z, UInt32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ui((UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z, (UInt32)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40917,6 +50464,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -40924,12 +50475,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI1iv")] public static void VertexAttribI1v(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -40937,6 +50495,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40944,6 +50505,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -40951,12 +50516,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI1iv")] public static void VertexAttribI1v(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -40964,6 +50536,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40971,7 +50546,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI1v(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40979,7 +50561,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI1v(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -40987,6 +50576,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -40994,12 +50587,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI2iv")] public static void VertexAttribI2(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -41007,6 +50607,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41014,6 +50617,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -41021,12 +50628,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI2iv")] public static void VertexAttribI2(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -41034,6 +50648,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41041,7 +50658,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI2(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41049,7 +50673,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI2(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41057,6 +50688,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -41064,12 +50699,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI3iv")] public static void VertexAttribI3(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -41077,6 +50719,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41084,6 +50729,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -41091,12 +50740,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI3iv")] public static void VertexAttribI3(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -41104,6 +50760,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41111,7 +50770,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI3(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41119,7 +50785,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI3(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41127,6 +50800,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -41134,12 +50811,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4iv")] public static void VertexAttribI4(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -41147,6 +50831,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41154,6 +50841,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -41161,12 +50852,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4iv")] public static void VertexAttribI4(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -41174,6 +50872,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4iv((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41181,7 +50882,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41189,7 +50897,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4iv((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41197,6 +50912,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -41204,6 +50923,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41211,6 +50933,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -41218,6 +50944,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41225,7 +50954,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI1v(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1uiv((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41233,6 +50969,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -41240,6 +50980,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41247,6 +50990,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -41254,6 +51001,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41261,7 +51011,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI2(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2uiv((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41269,6 +51026,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -41276,6 +51037,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41283,6 +51047,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -41290,6 +51058,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41297,7 +51068,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI3(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3uiv((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41305,6 +51083,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -41312,6 +51094,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41319,6 +51104,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -41326,6 +51115,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4uiv((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41333,7 +51125,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4uiv((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41341,6 +51140,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -41348,6 +51151,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4bv((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41355,6 +51161,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -41362,6 +51172,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4bv((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41369,7 +51182,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4bv((UInt32)index, (SByte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41377,6 +51197,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -41384,12 +51208,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4sv")] public static void VertexAttribI4(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -41397,6 +51228,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41404,6 +51238,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -41411,12 +51249,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4sv")] public static void VertexAttribI4(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -41424,6 +51269,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4sv((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41431,7 +51279,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41439,7 +51294,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4sv((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41447,6 +51309,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -41454,12 +51320,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4ubv")] public static void VertexAttribI4(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -41467,6 +51340,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41474,6 +51350,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -41481,12 +51361,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribI4ubv")] public static void VertexAttribI4(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -41494,6 +51381,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubv((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41501,7 +51391,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ubv((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41509,7 +51406,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ubv((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41517,6 +51421,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -41524,6 +51432,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4usv((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41531,6 +51442,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -41538,6 +51453,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4usv((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41545,7 +51463,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4usv((UInt32)index, (UInt16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41553,20 +51478,28 @@ namespace OpenTK.Graphics public static void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] public static void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -41575,18 +51508,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] @@ -41594,18 +51531,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41614,18 +51555,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] @@ -41633,18 +51578,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41653,18 +51602,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] @@ -41672,18 +51625,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41692,18 +51649,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glVertexAttribIPointer")] @@ -41711,18 +51672,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.Version30 type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointer((UInt32)index, (Int32)size, (OpenTK.Graphics.Version30)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41730,6 +51695,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.Version30 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -41737,12 +51706,19 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribIiv((UInt32)index, (OpenTK.Graphics.Version30)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetVertexAttribIiv")] public static void GetVertexAttribI(Int32 index, OpenTK.Graphics.Version30 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -41750,6 +51726,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribIiv((UInt32)index, (OpenTK.Graphics.Version30)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41757,6 +51736,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.Version30 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -41765,12 +51748,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetVertexAttribIiv")] public static void GetVertexAttribI(Int32 index, OpenTK.Graphics.Version30 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -41779,6 +51769,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41786,7 +51779,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribI(UInt32 index, OpenTK.Graphics.Version30 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribIiv((UInt32)index, (OpenTK.Graphics.Version30)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41794,7 +51794,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribI(Int32 index, OpenTK.Graphics.Version30 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribIiv((UInt32)index, (OpenTK.Graphics.Version30)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41802,6 +51809,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.Version30 pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -41809,6 +51820,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribIuiv((UInt32)index, (OpenTK.Graphics.Version30)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41816,6 +51830,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.Version30 pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -41824,6 +51842,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41831,7 +51852,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribI(UInt32 index, OpenTK.Graphics.Version30 pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribIuiv((UInt32)index, (OpenTK.Graphics.Version30)pname, (UInt32*)@params); + #if DEBUG + } + #endif } @@ -41858,6 +51886,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -41865,6 +51897,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformuiv((UInt32)program, (Int32)location, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -41891,6 +51926,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -41899,6 +51938,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -41925,7 +51967,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(UInt32 program, Int32 location, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformuiv((UInt32)program, (Int32)location, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -41933,7 +51982,14 @@ namespace OpenTK.Graphics public static void BindFragDataLocation(UInt32 program, UInt32 color, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindFragDataLocation((UInt32)program, (UInt32)color, (String)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glBindFragDataLocation")] @@ -41948,7 +52004,14 @@ namespace OpenTK.Graphics public static Int32 GetFragDataLocation(UInt32 program, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetFragDataLocation((UInt32)program, (String)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetFragDataLocation")] @@ -41977,7 +52040,14 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, UInt32 v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1ui((Int32)location, (UInt32)v0); + #if DEBUG + } + #endif } @@ -41999,7 +52069,14 @@ namespace OpenTK.Graphics public static void Uniform2(Int32 location, UInt32 v0, UInt32 v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2ui((Int32)location, (UInt32)v0, (UInt32)v1); + #if DEBUG + } + #endif } @@ -42021,7 +52098,14 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, UInt32 v0, UInt32 v1, UInt32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3ui((Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2); + #if DEBUG + } + #endif } @@ -42043,7 +52127,14 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, UInt32 v0, UInt32 v1, UInt32 v2, UInt32 v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4ui((Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2, (UInt32)v3); + #if DEBUG + } + #endif } @@ -42065,6 +52156,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -42072,6 +52167,9 @@ namespace OpenTK.Graphics Delegates.glUniform1uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -42093,6 +52191,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -42100,6 +52202,9 @@ namespace OpenTK.Graphics Delegates.glUniform1uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -42121,7 +52226,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1uiv((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42129,6 +52241,10 @@ namespace OpenTK.Graphics public static void Uniform2v(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -42136,6 +52252,9 @@ namespace OpenTK.Graphics Delegates.glUniform2uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42143,6 +52262,10 @@ namespace OpenTK.Graphics public static void Uniform2v(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -42150,6 +52273,9 @@ namespace OpenTK.Graphics Delegates.glUniform2uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42157,7 +52283,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2uiv((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -42179,6 +52312,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -42186,6 +52323,9 @@ namespace OpenTK.Graphics Delegates.glUniform3uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -42207,6 +52347,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -42214,6 +52358,9 @@ namespace OpenTK.Graphics Delegates.glUniform3uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -42235,7 +52382,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3uiv((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -42257,6 +52411,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -42264,6 +52422,9 @@ namespace OpenTK.Graphics Delegates.glUniform4uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -42285,6 +52446,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -42292,6 +52457,9 @@ namespace OpenTK.Graphics Delegates.glUniform4uiv((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -42313,13 +52481,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4uiv((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTexParameterIiv")] public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -42327,12 +52506,19 @@ namespace OpenTK.Graphics Delegates.glTexParameterIiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glTexParameterIiv")] public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -42340,6 +52526,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterIiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42347,7 +52536,14 @@ namespace OpenTK.Graphics public static unsafe void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameterIiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42355,6 +52551,10 @@ namespace OpenTK.Graphics public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -42362,6 +52562,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterIuiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42369,6 +52572,10 @@ namespace OpenTK.Graphics public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -42376,6 +52583,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterIuiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42383,13 +52593,24 @@ namespace OpenTK.Graphics public static unsafe void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameterIuiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTexParameterIiv")] public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -42397,12 +52618,19 @@ namespace OpenTK.Graphics Delegates.glGetTexParameterIiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTexParameterIiv")] public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -42411,6 +52639,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42418,7 +52649,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexParameterIiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42426,6 +52664,10 @@ namespace OpenTK.Graphics public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -42433,6 +52675,9 @@ namespace OpenTK.Graphics Delegates.glGetTexParameterIuiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42440,6 +52685,10 @@ namespace OpenTK.Graphics public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -42448,6 +52697,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42455,13 +52707,24 @@ namespace OpenTK.Graphics public static unsafe void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexParameterIuiv((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glClearBufferiv")] public static void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -42469,12 +52732,19 @@ namespace OpenTK.Graphics Delegates.glClearBufferiv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glClearBufferiv")] public static void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -42482,6 +52752,9 @@ namespace OpenTK.Graphics Delegates.glClearBufferiv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42489,7 +52762,14 @@ namespace OpenTK.Graphics public static unsafe void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearBufferiv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42497,6 +52777,10 @@ namespace OpenTK.Graphics public static void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -42504,6 +52788,9 @@ namespace OpenTK.Graphics Delegates.glClearBufferuiv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42511,6 +52798,10 @@ namespace OpenTK.Graphics public static void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -42518,6 +52809,9 @@ namespace OpenTK.Graphics Delegates.glClearBufferuiv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42525,13 +52819,24 @@ namespace OpenTK.Graphics public static unsafe void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearBufferuiv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (UInt32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glClearBufferfv")] public static void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -42539,12 +52844,19 @@ namespace OpenTK.Graphics Delegates.glClearBufferfv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glClearBufferfv")] public static void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -42552,6 +52864,9 @@ namespace OpenTK.Graphics Delegates.glClearBufferfv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42559,14 +52874,28 @@ namespace OpenTK.Graphics public static unsafe void ClearBuffer(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearBufferfv((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glClearBufferfi")] public static void ClearBufferf(OpenTK.Graphics.Version30 buffer, Int32 drawbuffer, Single depth, Int32 stencil) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearBufferfi((OpenTK.Graphics.Version30)buffer, (Int32)drawbuffer, (Single)depth, (Int32)stencil); + #if DEBUG + } + #endif } @@ -42583,10 +52912,14 @@ namespace OpenTK.Graphics public static string GetString(OpenTK.Graphics.Version30 name, UInt32 index) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetStringi((OpenTK.Graphics.Version30)name, (UInt32)index)); + #endif + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetStringi((OpenTK.Graphics.Version30)name, (UInt32)index)); + #if DEBUG } + #endif } @@ -42602,10 +52935,14 @@ namespace OpenTK.Graphics public static string GetString(OpenTK.Graphics.Version30 name, Int32 index) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetStringi((OpenTK.Graphics.Version30)name, (UInt32)index)); + #endif + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetStringi((OpenTK.Graphics.Version30)name, (UInt32)index)); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -42613,7 +52950,14 @@ namespace OpenTK.Graphics public static bool IsRenderbuffer(UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsRenderbuffer((UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glIsRenderbuffer")] @@ -42628,7 +52972,14 @@ namespace OpenTK.Graphics public static void BindRenderbuffer(OpenTK.Graphics.RenderbufferTarget target, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindRenderbuffer((OpenTK.Graphics.RenderbufferTarget)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glBindRenderbuffer")] @@ -42643,6 +52994,10 @@ namespace OpenTK.Graphics public static void DeleteRenderbuffers(Int32 n, UInt32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = renderbuffers) @@ -42650,12 +53005,19 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")] public static void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = renderbuffers) @@ -42663,6 +53025,9 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42670,6 +53035,10 @@ namespace OpenTK.Graphics public static void DeleteRenderbuffers(Int32 n, ref UInt32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = &renderbuffers) @@ -42677,12 +53046,19 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glDeleteRenderbuffers")] public static void DeleteRenderbuffers(Int32 n, ref Int32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = &renderbuffers) @@ -42690,6 +53066,9 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42697,7 +53076,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42705,7 +53091,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42713,6 +53106,10 @@ namespace OpenTK.Graphics public static void GenRenderbuffers(Int32 n, [Out] UInt32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = renderbuffers) @@ -42720,12 +53117,19 @@ namespace OpenTK.Graphics Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGenRenderbuffers")] public static void GenRenderbuffers(Int32 n, [Out] Int32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = renderbuffers) @@ -42733,6 +53137,9 @@ namespace OpenTK.Graphics Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42740,6 +53147,10 @@ namespace OpenTK.Graphics public static void GenRenderbuffers(Int32 n, [Out] out UInt32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = &renderbuffers) @@ -42748,12 +53159,19 @@ namespace OpenTK.Graphics renderbuffers = *renderbuffers_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGenRenderbuffers")] public static void GenRenderbuffers(Int32 n, [Out] out Int32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = &renderbuffers) @@ -42762,6 +53180,9 @@ namespace OpenTK.Graphics renderbuffers = *renderbuffers_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42769,7 +53190,14 @@ namespace OpenTK.Graphics public static unsafe void GenRenderbuffers(Int32 n, [Out] UInt32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42777,20 +53205,38 @@ namespace OpenTK.Graphics public static unsafe void GenRenderbuffers(Int32 n, [Out] Int32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glRenderbufferStorage")] public static void RenderbufferStorage(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferStorage internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRenderbufferStorage((OpenTK.Graphics.RenderbufferTarget)target, (OpenTK.Graphics.RenderbufferStorage)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGetRenderbufferParameteriv")] public static void GetRenderbufferParameter(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -42798,12 +53244,19 @@ namespace OpenTK.Graphics Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.RenderbufferTarget)target, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGetRenderbufferParameteriv")] public static void GetRenderbufferParameter(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -42812,6 +53265,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42819,7 +53275,14 @@ namespace OpenTK.Graphics public static unsafe void GetRenderbufferParameter(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.RenderbufferTarget)target, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42827,7 +53290,14 @@ namespace OpenTK.Graphics public static bool IsFramebuffer(UInt32 framebuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsFramebuffer((UInt32)framebuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glIsFramebuffer")] @@ -42842,7 +53312,14 @@ namespace OpenTK.Graphics public static void BindFramebuffer(OpenTK.Graphics.FramebufferTarget target, UInt32 framebuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindFramebuffer((OpenTK.Graphics.FramebufferTarget)target, (UInt32)framebuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glBindFramebuffer")] @@ -42857,6 +53334,10 @@ namespace OpenTK.Graphics public static void DeleteFramebuffers(Int32 n, UInt32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = framebuffers) @@ -42864,12 +53345,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glDeleteFramebuffers")] public static void DeleteFramebuffers(Int32 n, Int32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = framebuffers) @@ -42877,6 +53365,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42884,6 +53375,10 @@ namespace OpenTK.Graphics public static void DeleteFramebuffers(Int32 n, ref UInt32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = &framebuffers) @@ -42891,12 +53386,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glDeleteFramebuffers")] public static void DeleteFramebuffers(Int32 n, ref Int32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = &framebuffers) @@ -42904,6 +53406,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42911,7 +53416,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42919,7 +53431,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFramebuffers(Int32 n, Int32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42927,6 +53446,10 @@ namespace OpenTK.Graphics public static void GenFramebuffers(Int32 n, [Out] UInt32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = framebuffers) @@ -42934,12 +53457,19 @@ namespace OpenTK.Graphics Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGenFramebuffers")] public static void GenFramebuffers(Int32 n, [Out] Int32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = framebuffers) @@ -42947,6 +53477,9 @@ namespace OpenTK.Graphics Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42954,6 +53487,10 @@ namespace OpenTK.Graphics public static void GenFramebuffers(Int32 n, [Out] out UInt32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = &framebuffers) @@ -42962,12 +53499,19 @@ namespace OpenTK.Graphics framebuffers = *framebuffers_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGenFramebuffers")] public static void GenFramebuffers(Int32 n, [Out] out Int32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = &framebuffers) @@ -42976,6 +53520,9 @@ namespace OpenTK.Graphics framebuffers = *framebuffers_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42983,7 +53530,14 @@ namespace OpenTK.Graphics public static unsafe void GenFramebuffers(Int32 n, [Out] UInt32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -42991,14 +53545,28 @@ namespace OpenTK.Graphics public static unsafe void GenFramebuffers(Int32 n, [Out] Int32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glCheckFramebufferStatus")] public static OpenTK.Graphics.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.FramebufferTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.FramebufferTarget)target); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43006,7 +53574,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture1D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTexture1D((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glFramebufferTexture1D")] @@ -43021,7 +53596,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture2D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTexture2D((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glFramebufferTexture2D")] @@ -43036,7 +53618,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture3D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level, Int32 zoffset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTexture3D((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level, (Int32)zoffset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glFramebufferTexture3D")] @@ -43051,7 +53640,14 @@ namespace OpenTK.Graphics public static void FramebufferRenderbuffer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glFramebufferRenderbuffer")] @@ -43065,6 +53661,10 @@ namespace OpenTK.Graphics public static void GetFramebufferAttachmentParameter(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43072,12 +53672,19 @@ namespace OpenTK.Graphics Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.FramebufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static void GetFramebufferAttachmentParameter(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -43086,6 +53693,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43093,28 +53703,56 @@ namespace OpenTK.Graphics public static unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.FramebufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } - [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGenerate")] + [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glGenerateMipmap")] public static - void Generate(OpenTK.Graphics.GenerateMipmapTarget target) + void GenerateMipmap(OpenTK.Graphics.GenerateMipmapTarget target) { - Delegates.glGenerate((OpenTK.Graphics.GenerateMipmapTarget)target); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenerateMipmap((OpenTK.Graphics.GenerateMipmapTarget)target); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glBlitFramebuffer")] public static void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ClearBufferMask mask, OpenTK.Graphics.BlitFramebufferFilter filter) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlitFramebuffer((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.ClearBufferMask)mask, (OpenTK.Graphics.BlitFramebufferFilter)filter); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glRenderbufferStorageMultisample")] public static void RenderbufferStorageMultisample(OpenTK.Graphics.RenderbufferTarget target, Int32 samples, OpenTK.Graphics.RenderbufferStorage internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRenderbufferStorageMultisample((OpenTK.Graphics.RenderbufferTarget)target, (Int32)samples, (OpenTK.Graphics.RenderbufferStorage)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43122,7 +53760,14 @@ namespace OpenTK.Graphics public static void FramebufferTextureLayer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureLayer((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbFramebufferObject", Version = "3.0", EntryPoint = "glFramebufferTextureLayer")] @@ -43137,7 +53782,14 @@ namespace OpenTK.Graphics public static void VertexAttribDivisor(UInt32 index, UInt32 divisor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribDivisor((UInt32)index, (UInt32)divisor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbInstancedArrays", Version = "2.0", EntryPoint = "glVertexAttribDivisor")] @@ -43150,23 +53802,45 @@ namespace OpenTK.Graphics [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")] public static - void MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access) + unsafe IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access) { - Delegates.glMapBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length, (UInt32)access); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glMapBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length, (UInt32)access); + #if DEBUG + } + #endif } + [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")] public static - void MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, Int32 access) + unsafe IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, Int32 access) { - Delegates.glMapBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length, (UInt32)access); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glMapBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length, (UInt32)access); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glFlushMappedBufferRange")] public static void FlushMappedBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFlushMappedBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43174,7 +53848,14 @@ namespace OpenTK.Graphics public static void BindVertexArray(UInt32 array) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindVertexArray((UInt32)array); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexArrayObject", Version = "3.0", EntryPoint = "glBindVertexArray")] @@ -43189,6 +53870,10 @@ namespace OpenTK.Graphics public static void DeleteVertexArrays(Int32 n, UInt32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = arrays) @@ -43196,12 +53881,19 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexArrayObject", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] public static void DeleteVertexArrays(Int32 n, Int32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = arrays) @@ -43209,6 +53901,9 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43216,6 +53911,10 @@ namespace OpenTK.Graphics public static void DeleteVertexArrays(Int32 n, ref UInt32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = &arrays) @@ -43223,12 +53922,19 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexArrayObject", Version = "3.0", EntryPoint = "glDeleteVertexArrays")] public static void DeleteVertexArrays(Int32 n, ref Int32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = &arrays) @@ -43236,6 +53942,9 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43243,7 +53952,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteVertexArrays(Int32 n, UInt32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43251,7 +53967,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteVertexArrays(Int32 n, Int32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteVertexArrays((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43259,6 +53982,10 @@ namespace OpenTK.Graphics public static void GenVertexArrays(Int32 n, [Out] UInt32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = arrays) @@ -43266,12 +53993,19 @@ namespace OpenTK.Graphics Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexArrayObject", Version = "3.0", EntryPoint = "glGenVertexArrays")] public static void GenVertexArrays(Int32 n, [Out] Int32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = arrays) @@ -43279,6 +54013,9 @@ namespace OpenTK.Graphics Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43286,6 +54023,10 @@ namespace OpenTK.Graphics public static void GenVertexArrays(Int32 n, [Out] out UInt32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = &arrays) @@ -43294,12 +54035,19 @@ namespace OpenTK.Graphics arrays = *arrays_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexArrayObject", Version = "3.0", EntryPoint = "glGenVertexArrays")] public static void GenVertexArrays(Int32 n, [Out] out Int32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = &arrays) @@ -43308,6 +54056,9 @@ namespace OpenTK.Graphics arrays = *arrays_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43315,7 +54066,14 @@ namespace OpenTK.Graphics public static unsafe void GenVertexArrays(Int32 n, [Out] UInt32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43323,7 +54081,14 @@ namespace OpenTK.Graphics public static unsafe void GenVertexArrays(Int32 n, [Out] Int32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenVertexArrays((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43331,7 +54096,14 @@ namespace OpenTK.Graphics public static bool IsVertexArray(UInt32 array) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsVertexArray((UInt32)array); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexArrayObject", Version = "3.0", EntryPoint = "glIsVertexArray")] @@ -43341,12 +54113,1241 @@ namespace OpenTK.Graphics return Delegates.glIsVertexArray((UInt32)array); } + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + void GetPerfMonitorGroupsAMD([Out] Int32[] numGroups, Int32 groupsSize, [Out] UInt32[] groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numGroups_ptr = numGroups) + fixed (UInt32* groups_ptr = groups) + { + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + void GetPerfMonitorGroupsAMD([Out] Int32[] numGroups, Int32 groupsSize, [Out] Int32[] groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numGroups_ptr = numGroups) + fixed (Int32* groups_ptr = groups) + { + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + void GetPerfMonitorGroupsAMD([Out] out Int32 numGroups, Int32 groupsSize, [Out] out UInt32 groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numGroups_ptr = &numGroups) + fixed (UInt32* groups_ptr = &groups) + { + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + numGroups = *numGroups_ptr; + groups = *groups_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + void GetPerfMonitorGroupsAMD([Out] out Int32 numGroups, Int32 groupsSize, [Out] out Int32 groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numGroups_ptr = &numGroups) + fixed (Int32* groups_ptr = &groups) + { + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + numGroups = *numGroups_ptr; + groups = *groups_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + unsafe void GetPerfMonitorGroupsAMD([Out] Int32* numGroups, Int32 groupsSize, [Out] UInt32* groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + unsafe void GetPerfMonitorGroupsAMD([Out] Int32* numGroups, Int32 groupsSize, [Out] Int32* groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + void GetPerfMonitorCountersAMD(UInt32 group, [Out] Int32[] numCounters, [Out] Int32[] maxActiveCounters, Int32 counterSize, [Out] UInt32[] counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numCounters_ptr = numCounters) + fixed (Int32* maxActiveCounters_ptr = maxActiveCounters) + fixed (UInt32* counters_ptr = counters) + { + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + void GetPerfMonitorCountersAMD(Int32 group, [Out] Int32[] numCounters, [Out] Int32[] maxActiveCounters, Int32 counterSize, [Out] Int32[] counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numCounters_ptr = numCounters) + fixed (Int32* maxActiveCounters_ptr = maxActiveCounters) + fixed (Int32* counters_ptr = counters) + { + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + void GetPerfMonitorCountersAMD(UInt32 group, [Out] out Int32 numCounters, [Out] out Int32 maxActiveCounters, Int32 counterSize, [Out] out UInt32 counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numCounters_ptr = &numCounters) + fixed (Int32* maxActiveCounters_ptr = &maxActiveCounters) + fixed (UInt32* counters_ptr = &counters) + { + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + numCounters = *numCounters_ptr; + maxActiveCounters = *maxActiveCounters_ptr; + counters = *counters_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + void GetPerfMonitorCountersAMD(Int32 group, [Out] out Int32 numCounters, [Out] out Int32 maxActiveCounters, Int32 counterSize, [Out] out Int32 counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numCounters_ptr = &numCounters) + fixed (Int32* maxActiveCounters_ptr = &maxActiveCounters) + fixed (Int32* counters_ptr = &counters) + { + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + numCounters = *numCounters_ptr; + maxActiveCounters = *maxActiveCounters_ptr; + counters = *counters_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + unsafe void GetPerfMonitorCountersAMD(UInt32 group, [Out] Int32* numCounters, [Out] Int32* maxActiveCounters, Int32 counterSize, [Out] UInt32* counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + unsafe void GetPerfMonitorCountersAMD(Int32 group, [Out] Int32* numCounters, [Out] Int32* maxActiveCounters, Int32 counterSize, [Out] Int32* counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + void GetPerfMonitorGroupStringAMD(Int32 group, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + length = *length_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + void GetPerfMonitorGroupStringAMD(Int32 group, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + length = *length_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + unsafe void GetPerfMonitorGroupStringAMD(Int32 group, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + void GetPerfMonitorCounterStringAMD(Int32 group, Int32 counter, Int32 bufSize, [Out] Int32[] length, [Out] System.Text.StringBuilder counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + length = *length_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + void GetPerfMonitorCounterStringAMD(Int32 group, Int32 counter, Int32 bufSize, [Out] out Int32 length, [Out] System.Text.StringBuilder counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + length = *length_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + unsafe void GetPerfMonitorCounterStringAMD(Int32 group, Int32 counter, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [Out] IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(Int32 group, Int32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [Out] IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] ref T3 data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(Int32 group, Int32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] ref T3 data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] T3[] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(Int32 group, Int32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] T3[] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] T3[,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(Int32 group, Int32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] T3[,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] T3[,,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfoAMD(Int32 group, Int32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [In, Out] T3[,,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")] + public static + void GenPerfMonitorsAMD(Int32 n, [Out] UInt32[] monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = monitors) + { + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")] + public static + void GenPerfMonitorsAMD(Int32 n, [Out] Int32[] monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* monitors_ptr = monitors) + { + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")] + public static + void GenPerfMonitorsAMD(Int32 n, [Out] out UInt32 monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = &monitors) + { + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")] + public static + void GenPerfMonitorsAMD(Int32 n, [Out] out Int32 monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* monitors_ptr = &monitors) + { + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")] + public static + unsafe void GenPerfMonitorsAMD(Int32 n, [Out] UInt32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGenPerfMonitorsAMD")] + public static + unsafe void GenPerfMonitorsAMD(Int32 n, [Out] Int32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + void DeletePerfMonitorsAMD(Int32 n, [Out] UInt32[] monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = monitors) + { + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + void DeletePerfMonitorsAMD(Int32 n, [Out] Int32[] monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* monitors_ptr = monitors) + { + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + void DeletePerfMonitorsAMD(Int32 n, [Out] out UInt32 monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = &monitors) + { + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + void DeletePerfMonitorsAMD(Int32 n, [Out] out Int32 monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* monitors_ptr = &monitors) + { + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + unsafe void DeletePerfMonitorsAMD(Int32 n, [Out] UInt32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + unsafe void DeletePerfMonitorsAMD(Int32 n, [Out] Int32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [Out] UInt32[] counterList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* counterList_ptr = counterList) + { + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + void SelectPerfMonitorCountersAMD(Int32 monitor, bool enable, Int32 group, Int32 numCounters, [Out] Int32[] counterList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* counterList_ptr = counterList) + { + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [Out] out UInt32 counterList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* counterList_ptr = &counterList) + { + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList_ptr); + counterList = *counterList_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + void SelectPerfMonitorCountersAMD(Int32 monitor, bool enable, Int32 group, Int32 numCounters, [Out] out Int32 counterList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* counterList_ptr = &counterList) + { + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList_ptr); + counterList = *counterList_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + unsafe void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [Out] UInt32* counterList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + unsafe void SelectPerfMonitorCountersAMD(Int32 monitor, bool enable, Int32 group, Int32 numCounters, [Out] Int32* counterList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)counterList); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glBeginPerfMonitorAMD")] + public static + void BeginPerfMonitorAMD(UInt32 monitor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBeginPerfMonitorAMD((UInt32)monitor); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glBeginPerfMonitorAMD")] + public static + void BeginPerfMonitorAMD(Int32 monitor) + { + Delegates.glBeginPerfMonitorAMD((UInt32)monitor); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glEndPerfMonitorAMD")] + public static + void EndPerfMonitorAMD(UInt32 monitor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEndPerfMonitorAMD((UInt32)monitor); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glEndPerfMonitorAMD")] + public static + void EndPerfMonitorAMD(Int32 monitor) + { + Delegates.glEndPerfMonitorAMD((UInt32)monitor); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] UInt32[] data, [Out] Int32[] bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* data_ptr = data) + fixed (Int32* bytesWritten_ptr = bytesWritten) + { + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + void GetPerfMonitorCounterDataAMD(Int32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] Int32[] data, [Out] Int32[] bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* data_ptr = data) + fixed (Int32* bytesWritten_ptr = bytesWritten) + { + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] out UInt32 data, [Out] out Int32 bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* data_ptr = &data) + fixed (Int32* bytesWritten_ptr = &bytesWritten) + { + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + data = *data_ptr; + bytesWritten = *bytesWritten_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + void GetPerfMonitorCounterDataAMD(Int32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] out Int32 data, [Out] out Int32 bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* data_ptr = &data) + fixed (Int32* bytesWritten_ptr = &bytesWritten) + { + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + data = *data_ptr; + bytesWritten = *bytesWritten_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] UInt32* data, [Out] Int32* bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + unsafe void GetPerfMonitorCounterDataAMD(Int32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] Int32* data, [Out] Int32* bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.AmdPerformanceMonitor)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdVertexShaderTesselator", Version = "2.0", EntryPoint = "glTessellationFactorAMD")] + public static + void TessellationFactorAMD(Single factor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTessellationFactorAMD((Single)factor); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "AmdVertexShaderTesselator", Version = "2.0", EntryPoint = "glTessellationModeAMD")] + public static + void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTessellationModeAMD((OpenTK.Graphics.AmdVertexShaderTesselator)mode); + #if DEBUG + } + #endif + } + public static partial class NV { [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetBooleanv")] public static void GetBoolea(OpenTK.Graphics.GetPName pname, [Out] bool[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* @params_ptr = @params) @@ -43354,12 +55355,19 @@ namespace OpenTK.Graphics Delegates.glGetBooleanv((OpenTK.Graphics.GetPName)pname, (bool*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "StateReq", Version = "1.0", EntryPoint = "glGetBooleanv")] public static void GetBoolea(OpenTK.Graphics.GetPName pname, [Out] out bool @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* @params_ptr = &@params) @@ -43368,6 +55376,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43375,24 +55386,42 @@ namespace OpenTK.Graphics public static unsafe void GetBoolea(OpenTK.Graphics.GetPName pname, [Out] bool* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBooleanv((OpenTK.Graphics.GetPName)pname, (bool*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexArrayRange", Version = "1.1", EntryPoint = "glFlushVertexArrayRangeNV")] public static void FlushVertexArrayRange() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFlushVertexArrayRangeNV(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexArrayRange", Version = "1.1", EntryPoint = "glVertexArrayRangeNV")] public static void VertexArrayRange(Int32 length, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer); + #endif + Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "NvVertexArrayRange", Version = "1.1", EntryPoint = "glVertexArrayRangeNV")] @@ -43400,18 +55429,22 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexArrayRange", Version = "1.1", EntryPoint = "glVertexArrayRangeNV")] @@ -43419,18 +55452,22 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexArrayRange", Version = "1.1", EntryPoint = "glVertexArrayRangeNV")] @@ -43438,18 +55475,22 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexArrayRange", Version = "1.1", EntryPoint = "glVertexArrayRangeNV")] @@ -43457,24 +55498,32 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeNV((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerParameterfvNV")] public static void CombinerParameterv(OpenTK.Graphics.NvRegisterCombiners pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -43482,12 +55531,19 @@ namespace OpenTK.Graphics Delegates.glCombinerParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerParameterfvNV")] public static void CombinerParameterv(OpenTK.Graphics.NvRegisterCombiners pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -43495,6 +55551,9 @@ namespace OpenTK.Graphics Delegates.glCombinerParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43502,20 +55561,38 @@ namespace OpenTK.Graphics public static unsafe void CombinerParameterv(OpenTK.Graphics.NvRegisterCombiners pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerParameterfNV")] public static void CombinerParameter(OpenTK.Graphics.NvRegisterCombiners pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerParameterfNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerParameterivNV")] public static void CombinerParameterv(OpenTK.Graphics.NvRegisterCombiners pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43523,12 +55600,19 @@ namespace OpenTK.Graphics Delegates.glCombinerParameterivNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerParameterivNV")] public static void CombinerParameterv(OpenTK.Graphics.NvRegisterCombiners pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -43536,6 +55620,9 @@ namespace OpenTK.Graphics Delegates.glCombinerParameterivNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43543,41 +55630,80 @@ namespace OpenTK.Graphics public static unsafe void CombinerParameterv(OpenTK.Graphics.NvRegisterCombiners pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerParameterivNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerParameteriNV")] public static void CombinerParameter(OpenTK.Graphics.NvRegisterCombiners pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerParameteriNV((OpenTK.Graphics.NvRegisterCombiners)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerInputNV")] public static void CombinerInput(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners input, OpenTK.Graphics.NvRegisterCombiners mapping, OpenTK.Graphics.NvRegisterCombiners componentUsage) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerInputNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)input, (OpenTK.Graphics.NvRegisterCombiners)mapping, (OpenTK.Graphics.NvRegisterCombiners)componentUsage); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glCombinerOutputNV")] public static void CombinerOutput(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners abOutput, OpenTK.Graphics.NvRegisterCombiners cdOutput, OpenTK.Graphics.NvRegisterCombiners sumOutput, OpenTK.Graphics.NvRegisterCombiners scale, OpenTK.Graphics.NvRegisterCombiners bias, bool abDotProduct, bool cdDotProduct, bool muxSum) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerOutputNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)abOutput, (OpenTK.Graphics.NvRegisterCombiners)cdOutput, (OpenTK.Graphics.NvRegisterCombiners)sumOutput, (OpenTK.Graphics.NvRegisterCombiners)scale, (OpenTK.Graphics.NvRegisterCombiners)bias, (bool)abDotProduct, (bool)cdDotProduct, (bool)muxSum); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glFinalCombinerInputNV")] public static void FinalCombinerInput(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners input, OpenTK.Graphics.NvRegisterCombiners mapping, OpenTK.Graphics.NvRegisterCombiners componentUsage) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFinalCombinerInputNV((OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)input, (OpenTK.Graphics.NvRegisterCombiners)mapping, (OpenTK.Graphics.NvRegisterCombiners)componentUsage); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerInputParameterfvNV")] public static void GetCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -43585,12 +55711,19 @@ namespace OpenTK.Graphics Delegates.glGetCombinerInputParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerInputParameterfvNV")] public static void GetCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -43599,6 +55732,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43606,13 +55742,24 @@ namespace OpenTK.Graphics public static unsafe void GetCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetCombinerInputParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerInputParameterivNV")] public static void GetCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43620,12 +55767,19 @@ namespace OpenTK.Graphics Delegates.glGetCombinerInputParameterivNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerInputParameterivNV")] public static void GetCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -43634,6 +55788,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43641,13 +55798,24 @@ namespace OpenTK.Graphics public static unsafe void GetCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetCombinerInputParameterivNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerOutputParameterfvNV")] public static void GetCombinerOutputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -43655,12 +55823,19 @@ namespace OpenTK.Graphics Delegates.glGetCombinerOutputParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerOutputParameterfvNV")] public static void GetCombinerOutputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -43669,6 +55844,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43676,13 +55854,24 @@ namespace OpenTK.Graphics public static unsafe void GetCombinerOutputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetCombinerOutputParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerOutputParameterivNV")] public static void GetCombinerOutputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43690,12 +55879,19 @@ namespace OpenTK.Graphics Delegates.glGetCombinerOutputParameterivNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetCombinerOutputParameterivNV")] public static void GetCombinerOutputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -43704,6 +55900,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43711,13 +55910,24 @@ namespace OpenTK.Graphics public static unsafe void GetCombinerOutputParameter(OpenTK.Graphics.NvRegisterCombiners stage, OpenTK.Graphics.NvRegisterCombiners portion, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetCombinerOutputParameterivNV((OpenTK.Graphics.NvRegisterCombiners)stage, (OpenTK.Graphics.NvRegisterCombiners)portion, (OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetFinalCombinerInputParameterfvNV")] public static void GetFinalCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -43725,12 +55935,19 @@ namespace OpenTK.Graphics Delegates.glGetFinalCombinerInputParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetFinalCombinerInputParameterfvNV")] public static void GetFinalCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -43739,6 +55956,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43746,13 +55966,24 @@ namespace OpenTK.Graphics public static unsafe void GetFinalCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFinalCombinerInputParameterfvNV((OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetFinalCombinerInputParameterivNV")] public static void GetFinalCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43760,12 +55991,19 @@ namespace OpenTK.Graphics Delegates.glGetFinalCombinerInputParameterivNV((OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners", Version = "1.1", EntryPoint = "glGetFinalCombinerInputParameterivNV")] public static void GetFinalCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -43774,6 +56012,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43781,7 +56022,14 @@ namespace OpenTK.Graphics public static unsafe void GetFinalCombinerInputParameter(OpenTK.Graphics.NvRegisterCombiners variable, OpenTK.Graphics.NvRegisterCombiners pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFinalCombinerInputParameterivNV((OpenTK.Graphics.NvRegisterCombiners)variable, (OpenTK.Graphics.NvRegisterCombiners)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43789,6 +56037,10 @@ namespace OpenTK.Graphics public static void DeleteFences(Int32 n, UInt32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = fences) @@ -43796,12 +56048,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glDeleteFencesNV")] public static void DeleteFences(Int32 n, Int32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = fences) @@ -43809,6 +56068,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43816,6 +56078,10 @@ namespace OpenTK.Graphics public static void DeleteFences(Int32 n, ref UInt32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = &fences) @@ -43823,12 +56089,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glDeleteFencesNV")] public static void DeleteFences(Int32 n, ref Int32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = &fences) @@ -43836,6 +56109,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43843,7 +56119,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFences(Int32 n, UInt32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43851,7 +56134,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFences(Int32 n, Int32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43859,6 +56149,10 @@ namespace OpenTK.Graphics public static void GenFences(Int32 n, [Out] UInt32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = fences) @@ -43866,12 +56160,19 @@ namespace OpenTK.Graphics Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glGenFencesNV")] public static void GenFences(Int32 n, [Out] Int32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = fences) @@ -43879,6 +56180,9 @@ namespace OpenTK.Graphics Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43886,6 +56190,10 @@ namespace OpenTK.Graphics public static void GenFences(Int32 n, [Out] out UInt32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = &fences) @@ -43894,12 +56202,19 @@ namespace OpenTK.Graphics fences = *fences_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glGenFencesNV")] public static void GenFences(Int32 n, [Out] out Int32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = &fences) @@ -43908,6 +56223,9 @@ namespace OpenTK.Graphics fences = *fences_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43915,7 +56233,14 @@ namespace OpenTK.Graphics public static unsafe void GenFences(Int32 n, [Out] UInt32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43923,7 +56248,14 @@ namespace OpenTK.Graphics public static unsafe void GenFences(Int32 n, [Out] Int32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43931,7 +56263,14 @@ namespace OpenTK.Graphics public static bool IsFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsFenceNV((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glIsFenceNV")] @@ -43946,7 +56285,14 @@ namespace OpenTK.Graphics public static bool TestFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glTestFenceNV((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glTestFenceNV")] @@ -43961,6 +56307,10 @@ namespace OpenTK.Graphics public static void GetFence(UInt32 fence, OpenTK.Graphics.NvFence pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43968,12 +56318,19 @@ namespace OpenTK.Graphics Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.NvFence)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glGetFenceivNV")] public static void GetFence(Int32 fence, OpenTK.Graphics.NvFence pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -43981,6 +56338,9 @@ namespace OpenTK.Graphics Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.NvFence)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -43988,6 +56348,10 @@ namespace OpenTK.Graphics public static void GetFence(UInt32 fence, OpenTK.Graphics.NvFence pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -43996,12 +56360,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glGetFenceivNV")] public static void GetFence(Int32 fence, OpenTK.Graphics.NvFence pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -44010,6 +56381,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44017,7 +56391,14 @@ namespace OpenTK.Graphics public static unsafe void GetFence(UInt32 fence, OpenTK.Graphics.NvFence pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.NvFence)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44025,7 +56406,14 @@ namespace OpenTK.Graphics public static unsafe void GetFence(Int32 fence, OpenTK.Graphics.NvFence pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.NvFence)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44033,7 +56421,14 @@ namespace OpenTK.Graphics public static void FinishFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFinishFenceNV((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glFinishFenceNV")] @@ -44048,7 +56443,14 @@ namespace OpenTK.Graphics public static void SetFence(UInt32 fence, OpenTK.Graphics.NvFence condition) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSetFenceNV((UInt32)fence, (OpenTK.Graphics.NvFence)condition); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFence", Version = "1.2", EntryPoint = "glSetFenceNV")] @@ -44063,20 +56465,28 @@ namespace OpenTK.Graphics public static void MapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, IntPtr points) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points); + #endif + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points); + #if DEBUG } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapControlPointsNV")] public static void MapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, IntPtr points) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points); + #endif + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -44085,18 +56495,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] ref T8 points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapControlPointsNV")] @@ -44104,18 +56518,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] ref T8 points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44124,18 +56542,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] T8[] points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapControlPointsNV")] @@ -44143,18 +56565,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] T8[] points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44163,18 +56589,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] T8[,] points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapControlPointsNV")] @@ -44182,18 +56612,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] T8[,] points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44202,18 +56636,22 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] T8[,,] points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapControlPointsNV")] @@ -44221,24 +56659,32 @@ namespace OpenTK.Graphics void MapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, [In, Out] T8[,,] points) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (Int32)uorder, (Int32)vorder, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapParameterivNV")] public static void MapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -44246,12 +56692,19 @@ namespace OpenTK.Graphics Delegates.glMapParameterivNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapParameterivNV")] public static void MapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -44259,6 +56712,9 @@ namespace OpenTK.Graphics Delegates.glMapParameterivNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44266,13 +56722,24 @@ namespace OpenTK.Graphics public static unsafe void MapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMapParameterivNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapParameterfvNV")] public static void MapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44280,12 +56747,19 @@ namespace OpenTK.Graphics Delegates.glMapParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glMapParameterfvNV")] public static void MapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -44293,6 +56767,9 @@ namespace OpenTK.Graphics Delegates.glMapParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44300,7 +56777,14 @@ namespace OpenTK.Graphics public static unsafe void MapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMapParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44308,20 +56792,28 @@ namespace OpenTK.Graphics public static void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [Out] IntPtr points) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points); + #endif + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points); + #if DEBUG } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapControlPointsNV")] public static void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [Out] IntPtr points) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points); + #endif + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -44330,18 +56822,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] ref T6 points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapControlPointsNV")] @@ -44349,18 +56845,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] ref T6 points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44369,18 +56869,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] T6[] points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapControlPointsNV")] @@ -44388,18 +56892,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] T6[] points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44408,18 +56916,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] T6[,] points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapControlPointsNV")] @@ -44427,18 +56939,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] T6[,] points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44447,18 +56963,22 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] T6[,,] points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapControlPointsNV")] @@ -44466,24 +56986,32 @@ namespace OpenTK.Graphics void GetMapControlPoints(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators type, Int32 ustride, Int32 vstride, bool packed, [In, Out] T6[,,] points) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); - try - { - Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); - } - finally - { - points_ptr.Free(); - } + #endif + GCHandle points_ptr = GCHandle.Alloc(points, GCHandleType.Pinned); + try + { + Delegates.glGetMapControlPointsNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)type, (Int32)ustride, (Int32)vstride, (bool)packed, (IntPtr)points_ptr.AddrOfPinnedObject()); } + finally + { + points_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapParameterivNV")] public static void GetMapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -44491,12 +57019,19 @@ namespace OpenTK.Graphics Delegates.glGetMapParameterivNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapParameterivNV")] public static void GetMapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -44505,6 +57040,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44512,13 +57050,24 @@ namespace OpenTK.Graphics public static unsafe void GetMapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapParameterivNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapParameterfvNV")] public static void GetMapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44526,12 +57075,19 @@ namespace OpenTK.Graphics Delegates.glGetMapParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapParameterfvNV")] public static void GetMapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -44540,6 +57096,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44547,7 +57106,14 @@ namespace OpenTK.Graphics public static unsafe void GetMapParameter(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44555,6 +57121,10 @@ namespace OpenTK.Graphics public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -44562,12 +57132,19 @@ namespace OpenTK.Graphics Delegates.glGetMapAttribParameterivNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapAttribParameterivNV")] public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -44575,6 +57152,9 @@ namespace OpenTK.Graphics Delegates.glGetMapAttribParameterivNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44582,6 +57162,10 @@ namespace OpenTK.Graphics public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -44590,12 +57174,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapAttribParameterivNV")] public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -44604,6 +57195,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44611,7 +57205,14 @@ namespace OpenTK.Graphics public static unsafe void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapAttribParameterivNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44619,7 +57220,14 @@ namespace OpenTK.Graphics public static unsafe void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapAttribParameterivNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44627,6 +57235,10 @@ namespace OpenTK.Graphics public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44634,12 +57246,19 @@ namespace OpenTK.Graphics Delegates.glGetMapAttribParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapAttribParameterfvNV")] public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44647,6 +57266,9 @@ namespace OpenTK.Graphics Delegates.glGetMapAttribParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44654,6 +57276,10 @@ namespace OpenTK.Graphics public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -44662,12 +57288,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glGetMapAttribParameterfvNV")] public static void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -44676,6 +57309,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44683,7 +57319,14 @@ namespace OpenTK.Graphics public static unsafe void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, UInt32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapAttribParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44691,20 +57334,38 @@ namespace OpenTK.Graphics public static unsafe void GetMapAttribParameter(OpenTK.Graphics.NvEvaluators target, Int32 index, OpenTK.Graphics.NvEvaluators pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMapAttribParameterfvNV((OpenTK.Graphics.NvEvaluators)target, (UInt32)index, (OpenTK.Graphics.NvEvaluators)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvEvaluators", Version = "1.1", EntryPoint = "glEvalMapsNV")] public static void EvalMap(OpenTK.Graphics.NvEvaluators target, OpenTK.Graphics.NvEvaluators mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEvalMapsNV((OpenTK.Graphics.NvEvaluators)target, (OpenTK.Graphics.NvEvaluators)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners2", Version = "1.1", EntryPoint = "glCombinerStageParameterfvNV")] public static void CombinerStageParameter(OpenTK.Graphics.NvRegisterCombiners2 stage, OpenTK.Graphics.NvRegisterCombiners2 pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44712,12 +57373,19 @@ namespace OpenTK.Graphics Delegates.glCombinerStageParameterfvNV((OpenTK.Graphics.NvRegisterCombiners2)stage, (OpenTK.Graphics.NvRegisterCombiners2)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners2", Version = "1.1", EntryPoint = "glCombinerStageParameterfvNV")] public static void CombinerStageParameter(OpenTK.Graphics.NvRegisterCombiners2 stage, OpenTK.Graphics.NvRegisterCombiners2 pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -44725,6 +57393,9 @@ namespace OpenTK.Graphics Delegates.glCombinerStageParameterfvNV((OpenTK.Graphics.NvRegisterCombiners2)stage, (OpenTK.Graphics.NvRegisterCombiners2)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44732,13 +57403,24 @@ namespace OpenTK.Graphics public static unsafe void CombinerStageParameter(OpenTK.Graphics.NvRegisterCombiners2 stage, OpenTK.Graphics.NvRegisterCombiners2 pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCombinerStageParameterfvNV((OpenTK.Graphics.NvRegisterCombiners2)stage, (OpenTK.Graphics.NvRegisterCombiners2)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners2", Version = "1.1", EntryPoint = "glGetCombinerStageParameterfvNV")] public static void GetCombinerStageParameter(OpenTK.Graphics.NvRegisterCombiners2 stage, OpenTK.Graphics.NvRegisterCombiners2 pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44746,12 +57428,19 @@ namespace OpenTK.Graphics Delegates.glGetCombinerStageParameterfvNV((OpenTK.Graphics.NvRegisterCombiners2)stage, (OpenTK.Graphics.NvRegisterCombiners2)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvRegisterCombiners2", Version = "1.1", EntryPoint = "glGetCombinerStageParameterfvNV")] public static void GetCombinerStageParameter(OpenTK.Graphics.NvRegisterCombiners2 stage, OpenTK.Graphics.NvRegisterCombiners2 pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -44760,6 +57449,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44767,7 +57459,14 @@ namespace OpenTK.Graphics public static unsafe void GetCombinerStageParameter(OpenTK.Graphics.NvRegisterCombiners2 stage, OpenTK.Graphics.NvRegisterCombiners2 pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetCombinerStageParameterfvNV((OpenTK.Graphics.NvRegisterCombiners2)stage, (OpenTK.Graphics.NvRegisterCombiners2)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44775,6 +57474,10 @@ namespace OpenTK.Graphics public static bool AreProgramsResident(Int32 n, UInt32[] programs, [Out] bool[] residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = programs) @@ -44783,12 +57486,19 @@ namespace OpenTK.Graphics return Delegates.glAreProgramsResidentNV((Int32)n, (UInt32*)programs_ptr, (bool*)residences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glAreProgramsResidentNV")] public static bool AreProgramsResident(Int32 n, Int32[] programs, [Out] bool[] residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = programs) @@ -44797,6 +57507,9 @@ namespace OpenTK.Graphics return Delegates.glAreProgramsResidentNV((Int32)n, (UInt32*)programs_ptr, (bool*)residences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44804,6 +57517,10 @@ namespace OpenTK.Graphics public static bool AreProgramsResident(Int32 n, ref UInt32 programs, [Out] out bool residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = &programs) @@ -44814,12 +57531,19 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glAreProgramsResidentNV")] public static bool AreProgramsResident(Int32 n, ref Int32 programs, [Out] out bool residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = &programs) @@ -44830,6 +57554,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44837,7 +57564,14 @@ namespace OpenTK.Graphics public static unsafe bool AreProgramsResident(Int32 n, UInt32* programs, [Out] bool* residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glAreProgramsResidentNV((Int32)n, (UInt32*)programs, (bool*)residences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44845,7 +57579,14 @@ namespace OpenTK.Graphics public static unsafe bool AreProgramsResident(Int32 n, Int32* programs, [Out] bool* residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glAreProgramsResidentNV((Int32)n, (UInt32*)programs, (bool*)residences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44853,7 +57594,14 @@ namespace OpenTK.Graphics public static void BindProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glBindProgramNV")] @@ -44877,6 +57625,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, UInt32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = programs) @@ -44884,6 +57636,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -44899,6 +57654,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, Int32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = programs) @@ -44906,6 +57665,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -44922,6 +57684,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, ref UInt32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = &programs) @@ -44929,6 +57695,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -44944,6 +57713,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, ref Int32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = &programs) @@ -44951,6 +57724,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -44967,7 +57743,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteProgram(Int32 n, UInt32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteProgramsNV((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } @@ -44984,7 +57767,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteProgram(Int32 n, Int32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteProgramsNV((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -44992,6 +57782,10 @@ namespace OpenTK.Graphics public static void ExecuteProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -44999,12 +57793,19 @@ namespace OpenTK.Graphics Delegates.glExecuteProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glExecuteProgramNV")] public static void ExecuteProgram(OpenTK.Graphics.NvVertexProgram target, Int32 id, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -45012,6 +57813,9 @@ namespace OpenTK.Graphics Delegates.glExecuteProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45019,6 +57823,10 @@ namespace OpenTK.Graphics public static void ExecuteProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -45026,12 +57834,19 @@ namespace OpenTK.Graphics Delegates.glExecuteProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glExecuteProgramNV")] public static void ExecuteProgram(OpenTK.Graphics.NvVertexProgram target, Int32 id, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -45039,6 +57854,9 @@ namespace OpenTK.Graphics Delegates.glExecuteProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45046,7 +57864,14 @@ namespace OpenTK.Graphics public static unsafe void ExecuteProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glExecuteProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45054,7 +57879,14 @@ namespace OpenTK.Graphics public static unsafe void ExecuteProgram(OpenTK.Graphics.NvVertexProgram target, Int32 id, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glExecuteProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45062,6 +57894,10 @@ namespace OpenTK.Graphics public static void GenProgram(Int32 n, [Out] UInt32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = programs) @@ -45069,12 +57905,19 @@ namespace OpenTK.Graphics Delegates.glGenProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGenProgramsNV")] public static void GenProgram(Int32 n, [Out] Int32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = programs) @@ -45082,6 +57925,9 @@ namespace OpenTK.Graphics Delegates.glGenProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45089,6 +57935,10 @@ namespace OpenTK.Graphics public static void GenProgram(Int32 n, [Out] out UInt32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = &programs) @@ -45097,12 +57947,19 @@ namespace OpenTK.Graphics programs = *programs_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGenProgramsNV")] public static void GenProgram(Int32 n, [Out] out Int32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = &programs) @@ -45111,6 +57968,9 @@ namespace OpenTK.Graphics programs = *programs_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45118,7 +57978,14 @@ namespace OpenTK.Graphics public static unsafe void GenProgram(Int32 n, [Out] UInt32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenProgramsNV((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45126,7 +57993,14 @@ namespace OpenTK.Graphics public static unsafe void GenProgram(Int32 n, [Out] Int32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenProgramsNV((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45134,6 +58008,10 @@ namespace OpenTK.Graphics public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -45141,12 +58019,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramParameterdvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetProgramParameterdvNV")] public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -45154,6 +58039,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramParameterdvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45161,6 +58049,10 @@ namespace OpenTK.Graphics public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -45169,12 +58061,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetProgramParameterdvNV")] public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -45183,6 +58082,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45190,7 +58092,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramParameterdvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45198,7 +58107,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramParameterdvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45206,6 +58122,10 @@ namespace OpenTK.Graphics public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -45213,12 +58133,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramParameterfvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetProgramParameterfvNV")] public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -45226,6 +58153,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramParameterfvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45233,6 +58163,10 @@ namespace OpenTK.Graphics public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -45241,12 +58175,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetProgramParameterfvNV")] public static void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -45255,6 +58196,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45262,7 +58206,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramParameterfvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45270,7 +58221,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramParameter(OpenTK.Graphics.NvVertexProgram target, Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramParameterfvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -45297,6 +58255,10 @@ namespace OpenTK.Graphics public static void GetProgram(UInt32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -45304,6 +58266,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramivNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -45329,6 +58294,10 @@ namespace OpenTK.Graphics public static void GetProgram(Int32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -45336,6 +58305,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramivNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -45362,6 +58334,10 @@ namespace OpenTK.Graphics public static void GetProgram(UInt32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -45370,6 +58346,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -45395,6 +58374,10 @@ namespace OpenTK.Graphics public static void GetProgram(Int32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -45403,6 +58386,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -45429,7 +58415,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgram(UInt32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramivNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -45456,7 +58449,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgram(Int32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramivNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45464,6 +58464,10 @@ namespace OpenTK.Graphics public static void GetProgramString(UInt32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Byte[] program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = program) @@ -45471,12 +58475,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramStringNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Byte*)program_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetProgramStringNV")] public static void GetProgramString(Int32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Byte[] program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = program) @@ -45484,6 +58495,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramStringNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Byte*)program_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45491,6 +58505,10 @@ namespace OpenTK.Graphics public static void GetProgramString(UInt32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] out Byte program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = &program) @@ -45499,12 +58517,19 @@ namespace OpenTK.Graphics program = *program_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetProgramStringNV")] public static void GetProgramString(Int32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] out Byte program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = &program) @@ -45513,6 +58538,9 @@ namespace OpenTK.Graphics program = *program_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45520,7 +58548,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramString(UInt32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Byte* program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramStringNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Byte*)program); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45528,7 +58563,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramString(Int32 id, OpenTK.Graphics.NvVertexProgram pname, [Out] Byte* program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramStringNV((UInt32)id, (OpenTK.Graphics.NvVertexProgram)pname, (Byte*)program); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45536,6 +58578,10 @@ namespace OpenTK.Graphics public static void GetTrackMatrix(OpenTK.Graphics.NvVertexProgram target, UInt32 address, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -45543,12 +58589,19 @@ namespace OpenTK.Graphics Delegates.glGetTrackMatrixivNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)address, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetTrackMatrixivNV")] public static void GetTrackMatrix(OpenTK.Graphics.NvVertexProgram target, Int32 address, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -45556,6 +58609,9 @@ namespace OpenTK.Graphics Delegates.glGetTrackMatrixivNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)address, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45563,6 +58619,10 @@ namespace OpenTK.Graphics public static void GetTrackMatrix(OpenTK.Graphics.NvVertexProgram target, UInt32 address, OpenTK.Graphics.NvVertexProgram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -45571,12 +58631,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetTrackMatrixivNV")] public static void GetTrackMatrix(OpenTK.Graphics.NvVertexProgram target, Int32 address, OpenTK.Graphics.NvVertexProgram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -45585,6 +58652,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45592,7 +58662,14 @@ namespace OpenTK.Graphics public static unsafe void GetTrackMatrix(OpenTK.Graphics.NvVertexProgram target, UInt32 address, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTrackMatrixivNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)address, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -45600,7 +58677,14 @@ namespace OpenTK.Graphics public static unsafe void GetTrackMatrix(OpenTK.Graphics.NvVertexProgram target, Int32 address, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTrackMatrixivNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)address, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -45627,6 +58711,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -45634,6 +58722,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribdvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -45659,6 +58750,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -45666,6 +58761,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribdvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -45692,6 +58790,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -45700,6 +58802,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -45725,6 +58830,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -45733,6 +58842,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -45759,7 +58871,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribdvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -45786,7 +58905,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribdvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -45813,6 +58939,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -45820,6 +58950,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribfvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -45845,6 +58978,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -45852,6 +58989,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribfvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -45878,6 +59018,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -45886,6 +59030,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -45911,6 +59058,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -45919,6 +59070,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -45945,7 +59099,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribfvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -45972,7 +59133,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribfvNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -45999,6 +59167,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -46006,6 +59178,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribivNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -46031,6 +59206,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -46038,6 +59217,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribivNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -46064,6 +59246,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -46072,6 +59258,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -46097,6 +59286,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -46105,6 +59298,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -46131,7 +59327,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribivNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -46158,7 +59361,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribivNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46166,20 +59376,28 @@ namespace OpenTK.Graphics public static void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer); + #endif + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetVertexAttribPointervNV")] public static void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer); + #endif + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -46188,18 +59406,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetVertexAttribPointervNV")] @@ -46207,18 +59429,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46227,18 +59453,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetVertexAttribPointervNV")] @@ -46246,18 +59476,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46266,18 +59500,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetVertexAttribPointervNV")] @@ -46285,18 +59523,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46305,18 +59547,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glGetVertexAttribPointervNV")] @@ -46324,18 +59570,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.NvVertexProgram pname, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervNV((UInt32)index, (OpenTK.Graphics.NvVertexProgram)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -46352,7 +59602,14 @@ namespace OpenTK.Graphics public static bool IsProgram(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsProgramNV((UInt32)id); + #if DEBUG + } + #endif } @@ -46376,6 +59633,10 @@ namespace OpenTK.Graphics public static void LoadProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id, Int32 len, Byte[] program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = program) @@ -46383,12 +59644,19 @@ namespace OpenTK.Graphics Delegates.glLoadProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Int32)len, (Byte*)program_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glLoadProgramNV")] public static void LoadProgram(OpenTK.Graphics.NvVertexProgram target, Int32 id, Int32 len, Byte[] program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = program) @@ -46396,6 +59664,9 @@ namespace OpenTK.Graphics Delegates.glLoadProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Int32)len, (Byte*)program_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46403,6 +59674,10 @@ namespace OpenTK.Graphics public static void LoadProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id, Int32 len, ref Byte program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = &program) @@ -46410,12 +59685,19 @@ namespace OpenTK.Graphics Delegates.glLoadProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Int32)len, (Byte*)program_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glLoadProgramNV")] public static void LoadProgram(OpenTK.Graphics.NvVertexProgram target, Int32 id, Int32 len, ref Byte program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* program_ptr = &program) @@ -46423,6 +59705,9 @@ namespace OpenTK.Graphics Delegates.glLoadProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Int32)len, (Byte*)program_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46430,7 +59715,14 @@ namespace OpenTK.Graphics public static unsafe void LoadProgram(OpenTK.Graphics.NvVertexProgram target, UInt32 id, Int32 len, Byte* program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Int32)len, (Byte*)program); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46438,7 +59730,14 @@ namespace OpenTK.Graphics public static unsafe void LoadProgram(OpenTK.Graphics.NvVertexProgram target, Int32 id, Int32 len, Byte* program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadProgramNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)id, (Int32)len, (Byte*)program); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46446,7 +59745,14 @@ namespace OpenTK.Graphics public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameter4dNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameter4dNV")] @@ -46461,6 +59767,10 @@ namespace OpenTK.Graphics public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -46468,12 +59778,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameter4dvNV")] public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -46481,6 +59798,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46488,6 +59808,10 @@ namespace OpenTK.Graphics public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -46495,12 +59819,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameter4dvNV")] public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -46508,6 +59839,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46515,7 +59849,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameter4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46523,7 +59864,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameter4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46531,7 +59879,14 @@ namespace OpenTK.Graphics public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameter4fNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameter4fNV")] @@ -46546,6 +59901,10 @@ namespace OpenTK.Graphics public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -46553,12 +59912,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameter4fvNV")] public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -46566,6 +59932,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46573,6 +59942,10 @@ namespace OpenTK.Graphics public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -46580,12 +59953,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameter4fvNV")] public static void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -46593,6 +59973,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameter4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46600,7 +59983,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameter4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46608,7 +59998,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameter4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameter4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46616,6 +60013,10 @@ namespace OpenTK.Graphics public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, UInt32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -46623,12 +60024,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameters4dvNV")] public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -46636,6 +60044,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46643,6 +60054,10 @@ namespace OpenTK.Graphics public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, UInt32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -46650,12 +60065,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameters4dvNV")] public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -46663,6 +60085,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46670,7 +60095,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, UInt32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameters4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46678,7 +60110,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameters4dvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46686,6 +60125,10 @@ namespace OpenTK.Graphics public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, UInt32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -46693,12 +60136,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameters4fvNV")] public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -46706,6 +60156,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46713,6 +60166,10 @@ namespace OpenTK.Graphics public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, UInt32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -46720,12 +60177,19 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glProgramParameters4fvNV")] public static void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -46733,6 +60197,9 @@ namespace OpenTK.Graphics Delegates.glProgramParameters4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46740,7 +60207,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, UInt32 index, UInt32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameters4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46748,7 +60222,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramParameters4(OpenTK.Graphics.NvVertexProgram target, Int32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameters4fvNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)index, (UInt32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46756,6 +60237,10 @@ namespace OpenTK.Graphics public static void RequestResidentProgram(Int32 n, UInt32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = programs) @@ -46763,12 +60248,19 @@ namespace OpenTK.Graphics Delegates.glRequestResidentProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glRequestResidentProgramsNV")] public static void RequestResidentProgram(Int32 n, Int32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = programs) @@ -46776,6 +60268,9 @@ namespace OpenTK.Graphics Delegates.glRequestResidentProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46783,6 +60278,10 @@ namespace OpenTK.Graphics public static void RequestResidentProgram(Int32 n, ref UInt32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = &programs) @@ -46790,12 +60289,19 @@ namespace OpenTK.Graphics Delegates.glRequestResidentProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glRequestResidentProgramsNV")] public static void RequestResidentProgram(Int32 n, ref Int32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = &programs) @@ -46803,6 +60309,9 @@ namespace OpenTK.Graphics Delegates.glRequestResidentProgramsNV((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46810,7 +60319,14 @@ namespace OpenTK.Graphics public static unsafe void RequestResidentProgram(Int32 n, UInt32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRequestResidentProgramsNV((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46818,7 +60334,14 @@ namespace OpenTK.Graphics public static unsafe void RequestResidentProgram(Int32 n, Int32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRequestResidentProgramsNV((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -46826,7 +60349,14 @@ namespace OpenTK.Graphics public static void TrackMatrix(OpenTK.Graphics.NvVertexProgram target, UInt32 address, OpenTK.Graphics.NvVertexProgram matrix, OpenTK.Graphics.NvVertexProgram transform) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTrackMatrixNV((OpenTK.Graphics.NvVertexProgram)target, (UInt32)address, (OpenTK.Graphics.NvVertexProgram)matrix, (OpenTK.Graphics.NvVertexProgram)transform); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glTrackMatrixNV")] @@ -46875,10 +60405,14 @@ namespace OpenTK.Graphics public static void VertexAttribPointer(UInt32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -46919,10 +60453,14 @@ namespace OpenTK.Graphics public static void VertexAttribPointer(Int32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -46965,18 +60503,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47018,18 +60560,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47072,18 +60618,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47125,18 +60675,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47179,18 +60733,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47232,18 +60790,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47286,18 +60848,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47339,18 +60905,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 fsize, OpenTK.Graphics.NvVertexProgram type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerNV((UInt32)index, (Int32)fsize, (OpenTK.Graphics.NvVertexProgram)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -47372,7 +60942,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Double x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dNV((UInt32)index, (Double)x); + #if DEBUG + } + #endif } @@ -47401,6 +60978,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -47408,12 +60989,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttrib1dvNV")] public static void VertexAttrib1v(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -47421,6 +61009,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47428,6 +61019,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -47435,12 +61030,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttrib1dvNV")] public static void VertexAttrib1v(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -47448,6 +61050,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47455,7 +61060,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47463,7 +61075,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -47485,7 +61104,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Single x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fNV((UInt32)index, (Single)x); + #if DEBUG + } + #endif } @@ -47514,6 +61140,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -47521,12 +61151,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttrib1fvNV")] public static void VertexAttrib1v(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -47534,6 +61171,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47541,6 +61181,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -47548,12 +61192,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttrib1fvNV")] public static void VertexAttrib1v(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -47561,6 +61212,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47568,7 +61222,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47576,7 +61237,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -47598,7 +61266,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Int16 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1sNV((UInt32)index, (Int16)x); + #if DEBUG + } + #endif } @@ -47627,6 +61302,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -47634,12 +61313,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttrib1svNV")] public static void VertexAttrib1v(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -47647,6 +61333,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47654,6 +61343,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -47661,12 +61354,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttrib1svNV")] public static void VertexAttrib1v(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -47674,6 +61374,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47681,7 +61384,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -47689,7 +61399,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -47711,7 +61428,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dNV((UInt32)index, (Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -47754,6 +61478,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -47761,6 +61489,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -47781,6 +61512,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -47788,6 +61523,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -47809,6 +61547,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -47816,6 +61558,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -47836,6 +61581,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -47843,6 +61592,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -47864,7 +61616,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -47886,7 +61645,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -47908,7 +61674,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fNV((UInt32)index, (Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -47951,6 +61724,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -47958,6 +61735,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -47978,6 +61758,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -47985,6 +61769,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48006,6 +61793,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -48013,6 +61804,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48033,6 +61827,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -48040,6 +61838,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48061,7 +61862,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -48083,7 +61891,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -48105,7 +61920,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2sNV((UInt32)index, (Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -48148,6 +61970,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -48155,6 +61981,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48175,6 +62004,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -48182,6 +62015,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48203,6 +62039,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -48210,6 +62050,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48230,6 +62073,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -48237,6 +62084,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48258,7 +62108,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -48280,7 +62137,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -48302,7 +62166,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dNV((UInt32)index, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -48345,6 +62216,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -48352,6 +62227,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48372,6 +62250,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -48379,6 +62261,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48400,6 +62285,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -48407,6 +62296,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48427,6 +62319,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -48434,6 +62330,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48455,7 +62354,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -48477,7 +62383,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -48499,7 +62412,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fNV((UInt32)index, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -48542,6 +62462,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -48549,6 +62473,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48569,6 +62496,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -48576,6 +62507,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48597,6 +62531,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -48604,6 +62542,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48624,6 +62565,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -48631,6 +62576,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48652,7 +62600,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -48674,7 +62629,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -48696,7 +62658,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3sNV((UInt32)index, (Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -48739,6 +62708,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -48746,6 +62719,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48766,6 +62742,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -48773,6 +62753,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48794,6 +62777,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -48801,6 +62788,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48821,6 +62811,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -48828,6 +62822,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48849,7 +62846,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -48871,7 +62875,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -48893,7 +62904,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dNV((UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } @@ -48936,6 +62954,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -48943,6 +62965,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48963,6 +62988,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -48970,6 +62999,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -48991,6 +63023,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -48998,6 +63034,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49018,6 +63057,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -49025,6 +63068,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvNV((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49046,7 +63092,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -49068,7 +63121,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dvNV((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -49090,7 +63150,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fNV((UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } @@ -49133,6 +63200,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -49140,6 +63211,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49160,6 +63234,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -49167,6 +63245,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49188,6 +63269,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -49195,6 +63280,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49215,6 +63303,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -49222,6 +63314,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvNV((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49243,7 +63338,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -49265,7 +63367,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fvNV((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -49287,7 +63396,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4sNV((UInt32)index, (Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } @@ -49330,6 +63446,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -49337,6 +63457,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49357,6 +63480,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -49364,6 +63491,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49385,6 +63515,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -49392,6 +63526,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49412,6 +63549,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -49419,6 +63560,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svNV((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49440,7 +63584,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -49462,7 +63613,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4svNV((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -49484,7 +63642,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Byte x, Byte y, Byte z, Byte w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubNV((UInt32)index, (Byte)x, (Byte)y, (Byte)z, (Byte)w); + #if DEBUG + } + #endif } @@ -49527,6 +63692,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -49534,6 +63703,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvNV((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49554,6 +63726,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -49561,6 +63737,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvNV((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49582,6 +63761,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -49589,6 +63772,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvNV((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49609,6 +63795,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -49616,6 +63806,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvNV((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -49637,7 +63830,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubvNV((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } @@ -49659,7 +63859,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubvNV((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49667,6 +63874,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1(UInt32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -49674,12 +63885,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs1dvNV")] public static void VertexAttribs1(Int32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -49687,6 +63905,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49694,6 +63915,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1(UInt32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -49701,12 +63926,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs1dvNV")] public static void VertexAttribs1(Int32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -49714,6 +63946,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49721,7 +63956,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1(UInt32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49729,7 +63971,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1(Int32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49737,6 +63986,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1(UInt32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -49744,12 +63997,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs1fvNV")] public static void VertexAttribs1(Int32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -49757,6 +64017,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49764,6 +64027,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1(UInt32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -49771,12 +64038,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs1fvNV")] public static void VertexAttribs1(Int32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -49784,6 +64058,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49791,7 +64068,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1(UInt32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49799,7 +64083,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1(Int32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49807,6 +64098,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1(UInt32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -49814,12 +64109,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs1svNV")] public static void VertexAttribs1(Int32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -49827,6 +64129,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49834,6 +64139,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1(UInt32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -49841,12 +64150,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs1svNV")] public static void VertexAttribs1(Int32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -49854,6 +64170,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49861,7 +64180,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1(UInt32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49869,7 +64195,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1(Int32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49877,6 +64210,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2(UInt32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -49884,12 +64221,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs2dvNV")] public static void VertexAttribs2(Int32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -49897,6 +64241,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49904,6 +64251,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2(UInt32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -49911,12 +64262,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs2dvNV")] public static void VertexAttribs2(Int32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -49924,6 +64282,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49931,7 +64292,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2(UInt32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49939,7 +64307,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2(Int32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49947,6 +64322,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2(UInt32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -49954,12 +64333,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs2fvNV")] public static void VertexAttribs2(Int32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -49967,6 +64353,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -49974,6 +64363,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2(UInt32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -49981,12 +64374,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs2fvNV")] public static void VertexAttribs2(Int32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -49994,6 +64394,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50001,7 +64404,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2(UInt32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50009,7 +64419,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2(Int32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50017,6 +64434,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2(UInt32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -50024,12 +64445,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs2svNV")] public static void VertexAttribs2(Int32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -50037,6 +64465,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50044,6 +64475,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2(UInt32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -50051,12 +64486,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs2svNV")] public static void VertexAttribs2(Int32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -50064,6 +64506,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50071,7 +64516,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2(UInt32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50079,7 +64531,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2(Int32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50087,6 +64546,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3(UInt32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -50094,12 +64557,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs3dvNV")] public static void VertexAttribs3(Int32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -50107,6 +64577,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50114,6 +64587,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3(UInt32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -50121,12 +64598,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs3dvNV")] public static void VertexAttribs3(Int32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -50134,6 +64618,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50141,7 +64628,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3(UInt32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50149,7 +64643,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3(Int32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50157,6 +64658,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3(UInt32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -50164,12 +64669,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs3fvNV")] public static void VertexAttribs3(Int32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -50177,6 +64689,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50184,6 +64699,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3(UInt32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -50191,12 +64710,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs3fvNV")] public static void VertexAttribs3(Int32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -50204,6 +64730,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50211,7 +64740,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3(UInt32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50219,7 +64755,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3(Int32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50227,6 +64770,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3(UInt32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -50234,12 +64781,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs3svNV")] public static void VertexAttribs3(Int32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -50247,6 +64801,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50254,6 +64811,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3(UInt32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -50261,12 +64822,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs3svNV")] public static void VertexAttribs3(Int32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -50274,6 +64842,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50281,7 +64852,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3(UInt32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50289,7 +64867,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3(Int32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50297,6 +64882,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -50304,12 +64893,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4dvNV")] public static void VertexAttribs4(Int32 index, Int32 count, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -50317,6 +64913,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50324,6 +64923,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -50331,12 +64934,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4dvNV")] public static void VertexAttribs4(Int32 index, Int32 count, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -50344,6 +64954,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4dvNV((UInt32)index, (Int32)count, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50351,7 +64964,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(UInt32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50359,7 +64979,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(Int32 index, Int32 count, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4dvNV((UInt32)index, (Int32)count, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50367,6 +64994,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -50374,12 +65005,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4fvNV")] public static void VertexAttribs4(Int32 index, Int32 count, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -50387,6 +65025,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50394,6 +65035,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -50401,12 +65046,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4fvNV")] public static void VertexAttribs4(Int32 index, Int32 count, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -50414,6 +65066,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4fvNV((UInt32)index, (Int32)count, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50421,7 +65076,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(UInt32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50429,7 +65091,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(Int32 index, Int32 count, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4fvNV((UInt32)index, (Int32)count, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50437,6 +65106,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -50444,12 +65117,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4svNV")] public static void VertexAttribs4(Int32 index, Int32 count, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -50457,6 +65137,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50464,6 +65147,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -50471,12 +65158,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4svNV")] public static void VertexAttribs4(Int32 index, Int32 count, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -50484,6 +65178,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4svNV((UInt32)index, (Int32)count, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50491,7 +65188,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(UInt32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50499,7 +65203,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(Int32 index, Int32 count, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4svNV((UInt32)index, (Int32)count, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50507,6 +65218,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -50514,12 +65229,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4ubvNV((UInt32)index, (Int32)count, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4ubvNV")] public static void VertexAttribs4(Int32 index, Int32 count, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -50527,6 +65249,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4ubvNV((UInt32)index, (Int32)count, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50534,6 +65259,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4(UInt32 index, Int32 count, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -50541,12 +65270,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4ubvNV((UInt32)index, (Int32)count, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram", Version = "1.2", EntryPoint = "glVertexAttribs4ubvNV")] public static void VertexAttribs4(Int32 index, Int32 count, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -50554,6 +65290,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4ubvNV((UInt32)index, (Int32)count, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50561,7 +65300,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(UInt32 index, Int32 count, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4ubvNV((UInt32)index, (Int32)count, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50569,7 +65315,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4(Int32 index, Int32 count, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4ubvNV((UInt32)index, (Int32)count, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50577,6 +65330,10 @@ namespace OpenTK.Graphics public static void GenOcclusionQueries(Int32 n, [Out] UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -50584,12 +65341,19 @@ namespace OpenTK.Graphics Delegates.glGenOcclusionQueriesNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glGenOcclusionQueriesNV")] public static void GenOcclusionQueries(Int32 n, [Out] Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -50597,6 +65361,9 @@ namespace OpenTK.Graphics Delegates.glGenOcclusionQueriesNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50604,6 +65371,10 @@ namespace OpenTK.Graphics public static void GenOcclusionQueries(Int32 n, [Out] out UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -50612,12 +65383,19 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glGenOcclusionQueriesNV")] public static void GenOcclusionQueries(Int32 n, [Out] out Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -50626,6 +65404,9 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50633,7 +65414,14 @@ namespace OpenTK.Graphics public static unsafe void GenOcclusionQueries(Int32 n, [Out] UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenOcclusionQueriesNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50641,7 +65429,14 @@ namespace OpenTK.Graphics public static unsafe void GenOcclusionQueries(Int32 n, [Out] Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenOcclusionQueriesNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50649,6 +65444,10 @@ namespace OpenTK.Graphics public static void DeleteOcclusionQueries(Int32 n, UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -50656,12 +65455,19 @@ namespace OpenTK.Graphics Delegates.glDeleteOcclusionQueriesNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glDeleteOcclusionQueriesNV")] public static void DeleteOcclusionQueries(Int32 n, Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -50669,6 +65475,9 @@ namespace OpenTK.Graphics Delegates.glDeleteOcclusionQueriesNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50676,6 +65485,10 @@ namespace OpenTK.Graphics public static void DeleteOcclusionQueries(Int32 n, ref UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -50683,12 +65496,19 @@ namespace OpenTK.Graphics Delegates.glDeleteOcclusionQueriesNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glDeleteOcclusionQueriesNV")] public static void DeleteOcclusionQueries(Int32 n, ref Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -50696,6 +65516,9 @@ namespace OpenTK.Graphics Delegates.glDeleteOcclusionQueriesNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50703,7 +65526,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteOcclusionQueries(Int32 n, UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteOcclusionQueriesNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50711,7 +65541,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteOcclusionQueries(Int32 n, Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteOcclusionQueriesNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50719,7 +65556,14 @@ namespace OpenTK.Graphics public static bool IsOcclusionQuery(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsOcclusionQueryNV((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glIsOcclusionQueryNV")] @@ -50734,7 +65578,14 @@ namespace OpenTK.Graphics public static void BeginOcclusionQuery(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginOcclusionQueryNV((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glBeginOcclusionQueryNV")] @@ -50748,7 +65599,14 @@ namespace OpenTK.Graphics public static void EndOcclusionQuery() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndOcclusionQueryNV(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50756,6 +65614,10 @@ namespace OpenTK.Graphics public static void GetOcclusionQuery(UInt32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -50763,12 +65625,19 @@ namespace OpenTK.Graphics Delegates.glGetOcclusionQueryivNV((UInt32)id, (OpenTK.Graphics.NvOcclusionQuery)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glGetOcclusionQueryivNV")] public static void GetOcclusionQuery(Int32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -50776,6 +65645,9 @@ namespace OpenTK.Graphics Delegates.glGetOcclusionQueryivNV((UInt32)id, (OpenTK.Graphics.NvOcclusionQuery)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50783,6 +65655,10 @@ namespace OpenTK.Graphics public static void GetOcclusionQuery(UInt32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -50791,12 +65667,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glGetOcclusionQueryivNV")] public static void GetOcclusionQuery(Int32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -50805,6 +65688,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50812,7 +65698,14 @@ namespace OpenTK.Graphics public static unsafe void GetOcclusionQuery(UInt32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetOcclusionQueryivNV((UInt32)id, (OpenTK.Graphics.NvOcclusionQuery)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50820,7 +65713,14 @@ namespace OpenTK.Graphics public static unsafe void GetOcclusionQuery(Int32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetOcclusionQueryivNV((UInt32)id, (OpenTK.Graphics.NvOcclusionQuery)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50828,6 +65728,10 @@ namespace OpenTK.Graphics public static void GetOcclusionQuery(UInt32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -50835,6 +65739,9 @@ namespace OpenTK.Graphics Delegates.glGetOcclusionQueryuivNV((UInt32)id, (OpenTK.Graphics.NvOcclusionQuery)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50842,6 +65749,10 @@ namespace OpenTK.Graphics public static void GetOcclusionQuery(UInt32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -50850,6 +65761,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50857,7 +65771,14 @@ namespace OpenTK.Graphics public static unsafe void GetOcclusionQuery(UInt32 id, OpenTK.Graphics.NvOcclusionQuery pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetOcclusionQueryuivNV((UInt32)id, (OpenTK.Graphics.NvOcclusionQuery)pname, (UInt32*)@params); + #if DEBUG + } + #endif } @@ -50878,13 +65799,24 @@ namespace OpenTK.Graphics public static void PointParameter(OpenTK.Graphics.NvPointSprite pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameteriNV((OpenTK.Graphics.NvPointSprite)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPointSprite", Version = "1.2", EntryPoint = "glPointParameterivNV")] public static void PointParameterv(OpenTK.Graphics.NvPointSprite pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -50892,12 +65824,19 @@ namespace OpenTK.Graphics Delegates.glPointParameterivNV((OpenTK.Graphics.NvPointSprite)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPointSprite", Version = "1.2", EntryPoint = "glPointParameterivNV")] public static void PointParameterv(OpenTK.Graphics.NvPointSprite pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -50905,6 +65844,9 @@ namespace OpenTK.Graphics Delegates.glPointParameterivNV((OpenTK.Graphics.NvPointSprite)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50912,7 +65854,14 @@ namespace OpenTK.Graphics public static unsafe void PointParameterv(OpenTK.Graphics.NvPointSprite pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterivNV((OpenTK.Graphics.NvPointSprite)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50920,6 +65869,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, Byte[] name, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -50927,12 +65880,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single)x, (Single)y, (Single)z, (Single)w); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4fNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, Byte[] name, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -50940,6 +65900,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single)x, (Single)y, (Single)z, (Single)w); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50947,6 +65910,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, ref Byte name, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -50954,12 +65921,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single)x, (Single)y, (Single)z, (Single)w); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4fNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, ref Byte name, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -50967,6 +65941,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single)x, (Single)y, (Single)z, (Single)w); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50974,7 +65951,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(UInt32 id, Int32 len, Byte* name, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4fNV((UInt32)id, (Int32)len, (Byte*)name, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50982,7 +65966,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(Int32 id, Int32 len, Byte* name, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4fNV((UInt32)id, (Int32)len, (Byte*)name, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -50990,6 +65981,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, Byte[] name, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -50997,12 +65992,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double)x, (Double)y, (Double)z, (Double)w); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4dNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, Byte[] name, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51010,6 +66012,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double)x, (Double)y, (Double)z, (Double)w); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51017,6 +66022,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, ref Byte name, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51024,12 +66033,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double)x, (Double)y, (Double)z, (Double)w); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4dNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, ref Byte name, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51037,6 +66053,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double)x, (Double)y, (Double)z, (Double)w); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51044,7 +66063,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(UInt32 id, Int32 len, Byte* name, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4dNV((UInt32)id, (Int32)len, (Byte*)name, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51052,7 +66078,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(Int32 id, Int32 len, Byte* name, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4dNV((UInt32)id, (Int32)len, (Byte*)name, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51060,6 +66093,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, Byte[] name, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51068,12 +66105,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4fvNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, Byte[] name, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51082,6 +66126,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51089,6 +66136,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, ref Byte name, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51097,12 +66148,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4fvNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, ref Byte name, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51111,6 +66169,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4fvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51118,7 +66179,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(UInt32 id, Int32 len, Byte* name, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4fvNV((UInt32)id, (Int32)len, (Byte*)name, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51126,7 +66194,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(Int32 id, Int32 len, Byte* name, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4fvNV((UInt32)id, (Int32)len, (Byte*)name, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51134,6 +66209,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, Byte[] name, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51142,12 +66221,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4dvNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, Byte[] name, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51156,6 +66242,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51163,6 +66252,10 @@ namespace OpenTK.Graphics public static void ProgramNamedParameter4(UInt32 id, Int32 len, ref Byte name, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51171,12 +66264,19 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glProgramNamedParameter4dvNV")] public static void ProgramNamedParameter4(Int32 id, Int32 len, ref Byte name, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51185,6 +66285,9 @@ namespace OpenTK.Graphics Delegates.glProgramNamedParameter4dvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51192,7 +66295,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(UInt32 id, Int32 len, Byte* name, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4dvNV((UInt32)id, (Int32)len, (Byte*)name, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51200,7 +66310,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramNamedParameter4(Int32 id, Int32 len, Byte* name, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramNamedParameter4dvNV((UInt32)id, (Int32)len, (Byte*)name, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51208,6 +66325,10 @@ namespace OpenTK.Graphics public static void GetProgramNamedParameter(UInt32 id, Int32 len, Byte[] name, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51216,12 +66337,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramNamedParameterfvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glGetProgramNamedParameterfvNV")] public static void GetProgramNamedParameter(Int32 id, Int32 len, Byte[] name, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51230,6 +66358,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramNamedParameterfvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51237,6 +66368,10 @@ namespace OpenTK.Graphics public static void GetProgramNamedParameter(UInt32 id, Int32 len, ref Byte name, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51246,12 +66381,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glGetProgramNamedParameterfvNV")] public static void GetProgramNamedParameter(Int32 id, Int32 len, ref Byte name, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51261,6 +66403,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51268,7 +66413,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramNamedParameter(UInt32 id, Int32 len, Byte* name, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramNamedParameterfvNV((UInt32)id, (Int32)len, (Byte*)name, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51276,7 +66428,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramNamedParameter(Int32 id, Int32 len, Byte* name, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramNamedParameterfvNV((UInt32)id, (Int32)len, (Byte*)name, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51284,6 +66443,10 @@ namespace OpenTK.Graphics public static void GetProgramNamedParameter(UInt32 id, Int32 len, Byte[] name, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51292,12 +66455,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramNamedParameterdvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glGetProgramNamedParameterdvNV")] public static void GetProgramNamedParameter(Int32 id, Int32 len, Byte[] name, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = name) @@ -51306,6 +66476,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramNamedParameterdvNV((UInt32)id, (Int32)len, (Byte*)name_ptr, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51313,6 +66486,10 @@ namespace OpenTK.Graphics public static void GetProgramNamedParameter(UInt32 id, Int32 len, ref Byte name, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51322,12 +66499,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFragmentProgram", Version = "1.2", EntryPoint = "glGetProgramNamedParameterdvNV")] public static void GetProgramNamedParameter(Int32 id, Int32 len, ref Byte name, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* name_ptr = &name) @@ -51337,6 +66521,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51344,7 +66531,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramNamedParameter(UInt32 id, Int32 len, Byte* name, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramNamedParameterdvNV((UInt32)id, (Int32)len, (Byte*)name, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51352,20 +66546,38 @@ namespace OpenTK.Graphics public static unsafe void GetProgramNamedParameter(Int32 id, Int32 len, Byte* name, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramNamedParameterdvNV((UInt32)id, (Int32)len, (Byte*)name, (Double*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex2hNV")] public static void Vertex2h(OpenTK.Math.Half x, OpenTK.Math.Half y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2hNV((OpenTK.Math.Half)x, (OpenTK.Math.Half)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex2hvNV")] public static void Vertex2h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51373,12 +66585,19 @@ namespace OpenTK.Graphics Delegates.glVertex2hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex2hvNV")] public static void Vertex2h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51386,6 +66605,9 @@ namespace OpenTK.Graphics Delegates.glVertex2hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51393,20 +66615,38 @@ namespace OpenTK.Graphics public static unsafe void Vertex2h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex2hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex3hNV")] public static void Vertex3h(OpenTK.Math.Half x, OpenTK.Math.Half y, OpenTK.Math.Half z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3hNV((OpenTK.Math.Half)x, (OpenTK.Math.Half)y, (OpenTK.Math.Half)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex3hvNV")] public static void Vertex3h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51414,12 +66654,19 @@ namespace OpenTK.Graphics Delegates.glVertex3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex3hvNV")] public static void Vertex3h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51427,6 +66674,9 @@ namespace OpenTK.Graphics Delegates.glVertex3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51434,20 +66684,38 @@ namespace OpenTK.Graphics public static unsafe void Vertex3h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex3hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex4hNV")] public static void Vertex4h(OpenTK.Math.Half x, OpenTK.Math.Half y, OpenTK.Math.Half z, OpenTK.Math.Half w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4hNV((OpenTK.Math.Half)x, (OpenTK.Math.Half)y, (OpenTK.Math.Half)z, (OpenTK.Math.Half)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex4hvNV")] public static void Vertex4h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51455,12 +66723,19 @@ namespace OpenTK.Graphics Delegates.glVertex4hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertex4hvNV")] public static void Vertex4h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51468,6 +66743,9 @@ namespace OpenTK.Graphics Delegates.glVertex4hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51475,20 +66753,38 @@ namespace OpenTK.Graphics public static unsafe void Vertex4h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertex4hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glNormal3hNV")] public static void Normal3h(OpenTK.Math.Half nx, OpenTK.Math.Half ny, OpenTK.Math.Half nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3hNV((OpenTK.Math.Half)nx, (OpenTK.Math.Half)ny, (OpenTK.Math.Half)nz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glNormal3hvNV")] public static void Normal3h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51496,12 +66792,19 @@ namespace OpenTK.Graphics Delegates.glNormal3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glNormal3hvNV")] public static void Normal3h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51509,6 +66812,9 @@ namespace OpenTK.Graphics Delegates.glNormal3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51516,20 +66822,38 @@ namespace OpenTK.Graphics public static unsafe void Normal3h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glColor3hNV")] public static void Color3h(OpenTK.Math.Half red, OpenTK.Math.Half green, OpenTK.Math.Half blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3hNV((OpenTK.Math.Half)red, (OpenTK.Math.Half)green, (OpenTK.Math.Half)blue); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glColor3hvNV")] public static void Color3h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51537,12 +66861,19 @@ namespace OpenTK.Graphics Delegates.glColor3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glColor3hvNV")] public static void Color3h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51550,6 +66881,9 @@ namespace OpenTK.Graphics Delegates.glColor3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51557,20 +66891,38 @@ namespace OpenTK.Graphics public static unsafe void Color3h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glColor4hNV")] public static void Color4h(OpenTK.Math.Half red, OpenTK.Math.Half green, OpenTK.Math.Half blue, OpenTK.Math.Half alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4hNV((OpenTK.Math.Half)red, (OpenTK.Math.Half)green, (OpenTK.Math.Half)blue, (OpenTK.Math.Half)alpha); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glColor4hvNV")] public static void Color4h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51578,12 +66930,19 @@ namespace OpenTK.Graphics Delegates.glColor4hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glColor4hvNV")] public static void Color4h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51591,6 +66950,9 @@ namespace OpenTK.Graphics Delegates.glColor4hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51598,20 +66960,38 @@ namespace OpenTK.Graphics public static unsafe void Color4h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord1hNV")] public static void TexCoord1h(OpenTK.Math.Half s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1hNV((OpenTK.Math.Half)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord1hvNV")] public static void TexCoord1hv(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51619,12 +66999,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord1hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord1hvNV")] public static void TexCoord1hv(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51632,6 +67019,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord1hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51639,20 +67029,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord1hv(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord1hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord2hNV")] public static void TexCoord2h(OpenTK.Math.Half s, OpenTK.Math.Half t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2hNV((OpenTK.Math.Half)s, (OpenTK.Math.Half)t); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord2hvNV")] public static void TexCoord2h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51660,12 +67068,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord2hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord2hvNV")] public static void TexCoord2h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51673,6 +67088,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51680,20 +67098,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord3hNV")] public static void TexCoord3h(OpenTK.Math.Half s, OpenTK.Math.Half t, OpenTK.Math.Half r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3hNV((OpenTK.Math.Half)s, (OpenTK.Math.Half)t, (OpenTK.Math.Half)r); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord3hvNV")] public static void TexCoord3h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51701,12 +67137,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord3hvNV")] public static void TexCoord3h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51714,6 +67157,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51721,20 +67167,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord3h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord3hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord4hNV")] public static void TexCoord4h(OpenTK.Math.Half s, OpenTK.Math.Half t, OpenTK.Math.Half r, OpenTK.Math.Half q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4hNV((OpenTK.Math.Half)s, (OpenTK.Math.Half)t, (OpenTK.Math.Half)r, (OpenTK.Math.Half)q); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord4hvNV")] public static void TexCoord4h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51742,12 +67206,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord4hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glTexCoord4hvNV")] public static void TexCoord4h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51755,6 +67226,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51762,20 +67236,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord1hNV")] public static void MultiTexCoord1h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1hNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord1hvNV")] public static void MultiTexCoord1hv(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51783,12 +67275,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord1hvNV")] public static void MultiTexCoord1hv(OpenTK.Graphics.TextureUnit target, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51796,6 +67295,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51803,20 +67305,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1hv(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord2hNV")] public static void MultiTexCoord2h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half s, OpenTK.Math.Half t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2hNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half)s, (OpenTK.Math.Half)t); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord2hvNV")] public static void MultiTexCoord2h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51824,12 +67344,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord2hvNV")] public static void MultiTexCoord2h(OpenTK.Graphics.TextureUnit target, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51837,6 +67364,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51844,20 +67374,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord3hNV")] public static void MultiTexCoord3h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half s, OpenTK.Math.Half t, OpenTK.Math.Half r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3hNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half)s, (OpenTK.Math.Half)t, (OpenTK.Math.Half)r); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord3hvNV")] public static void MultiTexCoord3h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51865,12 +67413,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord3hvNV")] public static void MultiTexCoord3h(OpenTK.Graphics.TextureUnit target, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51878,6 +67433,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51885,20 +67443,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord4hNV")] public static void MultiTexCoord4h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half s, OpenTK.Math.Half t, OpenTK.Math.Half r, OpenTK.Math.Half q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4hNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half)s, (OpenTK.Math.Half)t, (OpenTK.Math.Half)r, (OpenTK.Math.Half)q); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord4hvNV")] public static void MultiTexCoord4h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51906,12 +67482,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glMultiTexCoord4hvNV")] public static void MultiTexCoord4h(OpenTK.Graphics.TextureUnit target, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -51919,6 +67502,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51926,20 +67512,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4h(OpenTK.Graphics.TextureUnit target, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4hvNV((OpenTK.Graphics.TextureUnit)target, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glFogCoordhNV")] public static void FogCoordh(OpenTK.Math.Half fog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordhNV((OpenTK.Math.Half)fog); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glFogCoordhvNV")] public static void FogCoordhv(OpenTK.Math.Half[] fog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* fog_ptr = fog) @@ -51947,12 +67551,19 @@ namespace OpenTK.Graphics Delegates.glFogCoordhvNV((OpenTK.Math.Half*)fog_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glFogCoordhvNV")] public static void FogCoordhv(ref OpenTK.Math.Half fog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* fog_ptr = &fog) @@ -51960,6 +67571,9 @@ namespace OpenTK.Graphics Delegates.glFogCoordhvNV((OpenTK.Math.Half*)fog_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -51967,20 +67581,38 @@ namespace OpenTK.Graphics public static unsafe void FogCoordhv(OpenTK.Math.Half* fog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordhvNV((OpenTK.Math.Half*)fog); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glSecondaryColor3hNV")] public static void SecondaryColor3h(OpenTK.Math.Half red, OpenTK.Math.Half green, OpenTK.Math.Half blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3hNV((OpenTK.Math.Half)red, (OpenTK.Math.Half)green, (OpenTK.Math.Half)blue); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glSecondaryColor3hvNV")] public static void SecondaryColor3h(OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -51988,12 +67620,19 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glSecondaryColor3hvNV")] public static void SecondaryColor3h(ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52001,6 +67640,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3hvNV((OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52008,20 +67650,38 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3h(OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3hvNV((OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexWeighthNV")] public static void VertexWeighth(OpenTK.Math.Half weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexWeighthNV((OpenTK.Math.Half)weight); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexWeighthvNV")] public static void VertexWeighthv(OpenTK.Math.Half[] weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* weight_ptr = weight) @@ -52029,12 +67689,19 @@ namespace OpenTK.Graphics Delegates.glVertexWeighthvNV((OpenTK.Math.Half*)weight_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexWeighthvNV")] public static void VertexWeighthv(ref OpenTK.Math.Half weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* weight_ptr = &weight) @@ -52042,6 +67709,9 @@ namespace OpenTK.Graphics Delegates.glVertexWeighthvNV((OpenTK.Math.Half*)weight_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52049,7 +67719,14 @@ namespace OpenTK.Graphics public static unsafe void VertexWeighthv(OpenTK.Math.Half* weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexWeighthvNV((OpenTK.Math.Half*)weight); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52057,7 +67734,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1h(UInt32 index, OpenTK.Math.Half x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1hNV((UInt32)index, (OpenTK.Math.Half)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib1hNV")] @@ -52072,6 +67756,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1hv(UInt32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52079,12 +67767,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib1hvNV")] public static void VertexAttrib1hv(Int32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52092,6 +67787,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52099,6 +67797,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1hv(UInt32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52106,12 +67808,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib1hvNV")] public static void VertexAttrib1hv(Int32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52119,6 +67828,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52126,7 +67838,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1hv(UInt32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52134,7 +67853,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1hv(Int32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52142,7 +67868,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2h(UInt32 index, OpenTK.Math.Half x, OpenTK.Math.Half y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2hNV((UInt32)index, (OpenTK.Math.Half)x, (OpenTK.Math.Half)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib2hNV")] @@ -52157,6 +67890,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2h(UInt32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52164,12 +67901,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib2hvNV")] public static void VertexAttrib2h(Int32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52177,6 +67921,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52184,6 +67931,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2h(UInt32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52191,12 +67942,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib2hvNV")] public static void VertexAttrib2h(Int32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52204,6 +67962,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52211,7 +67972,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2h(UInt32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52219,7 +67987,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2h(Int32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52227,7 +68002,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3h(UInt32 index, OpenTK.Math.Half x, OpenTK.Math.Half y, OpenTK.Math.Half z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3hNV((UInt32)index, (OpenTK.Math.Half)x, (OpenTK.Math.Half)y, (OpenTK.Math.Half)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib3hNV")] @@ -52242,6 +68024,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3h(UInt32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52249,12 +68035,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib3hvNV")] public static void VertexAttrib3h(Int32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52262,6 +68055,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52269,6 +68065,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3h(UInt32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52276,12 +68076,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib3hvNV")] public static void VertexAttrib3h(Int32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52289,6 +68096,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52296,7 +68106,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3h(UInt32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52304,7 +68121,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3h(Int32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52312,7 +68136,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4h(UInt32 index, OpenTK.Math.Half x, OpenTK.Math.Half y, OpenTK.Math.Half z, OpenTK.Math.Half w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4hNV((UInt32)index, (OpenTK.Math.Half)x, (OpenTK.Math.Half)y, (OpenTK.Math.Half)z, (OpenTK.Math.Half)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib4hNV")] @@ -52327,6 +68158,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4h(UInt32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52334,12 +68169,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib4hvNV")] public static void VertexAttrib4h(Int32 index, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52347,6 +68189,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52354,6 +68199,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4h(UInt32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52361,12 +68210,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttrib4hvNV")] public static void VertexAttrib4h(Int32 index, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52374,6 +68230,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4hvNV((UInt32)index, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52381,7 +68240,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4h(UInt32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52389,7 +68255,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4h(Int32 index, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4hvNV((UInt32)index, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52397,6 +68270,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1h(UInt32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52404,12 +68281,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs1hvNV")] public static void VertexAttribs1h(Int32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52417,6 +68301,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52424,6 +68311,10 @@ namespace OpenTK.Graphics public static void VertexAttribs1h(UInt32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52431,12 +68322,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs1hvNV")] public static void VertexAttribs1h(Int32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52444,6 +68342,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs1hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52451,7 +68352,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1h(UInt32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52459,7 +68367,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs1h(Int32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs1hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52467,6 +68382,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2h(UInt32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52474,12 +68393,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs2hvNV")] public static void VertexAttribs2h(Int32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52487,6 +68413,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52494,6 +68423,10 @@ namespace OpenTK.Graphics public static void VertexAttribs2h(UInt32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52501,12 +68434,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs2hvNV")] public static void VertexAttribs2h(Int32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52514,6 +68454,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs2hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52521,7 +68464,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2h(UInt32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52529,7 +68479,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs2h(Int32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs2hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52537,6 +68494,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3h(UInt32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52544,12 +68505,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs3hvNV")] public static void VertexAttribs3h(Int32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52557,6 +68525,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52564,6 +68535,10 @@ namespace OpenTK.Graphics public static void VertexAttribs3h(UInt32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52571,12 +68546,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs3hvNV")] public static void VertexAttribs3h(Int32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52584,6 +68566,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs3hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52591,7 +68576,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3h(UInt32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52599,7 +68591,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs3h(Int32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs3hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52607,6 +68606,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4h(UInt32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52614,12 +68617,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs4hvNV")] public static void VertexAttribs4h(Int32 index, Int32 n, OpenTK.Math.Half[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = v) @@ -52627,6 +68637,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52634,6 +68647,10 @@ namespace OpenTK.Graphics public static void VertexAttribs4h(UInt32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52641,12 +68658,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvHalfFloat", Version = "1.2", EntryPoint = "glVertexAttribs4hvNV")] public static void VertexAttribs4h(Int32 index, Int32 n, ref OpenTK.Math.Half v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Math.Half* v_ptr = &v) @@ -52654,6 +68678,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribs4hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52661,7 +68688,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4h(UInt32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52669,17 +68703,28 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribs4h(Int32 index, Int32 n, OpenTK.Math.Half* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribs4hvNV((UInt32)index, (Int32)n, (OpenTK.Math.Half*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPixelDataRange", Version = "1.2", EntryPoint = "glPixelDataRangeNV")] public static void PixelDataRange(OpenTK.Graphics.NvPixelDataRange target, Int32 length, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer); + #endif + Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "NvPixelDataRange", Version = "1.2", EntryPoint = "glPixelDataRangeNV")] @@ -52687,18 +68732,22 @@ namespace OpenTK.Graphics void PixelDataRange(OpenTK.Graphics.NvPixelDataRange target, Int32 length, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPixelDataRange", Version = "1.2", EntryPoint = "glPixelDataRangeNV")] @@ -52706,18 +68755,22 @@ namespace OpenTK.Graphics void PixelDataRange(OpenTK.Graphics.NvPixelDataRange target, Int32 length, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPixelDataRange", Version = "1.2", EntryPoint = "glPixelDataRangeNV")] @@ -52725,18 +68778,22 @@ namespace OpenTK.Graphics void PixelDataRange(OpenTK.Graphics.NvPixelDataRange target, Int32 length, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPixelDataRange", Version = "1.2", EntryPoint = "glPixelDataRangeNV")] @@ -52744,32 +68801,50 @@ namespace OpenTK.Graphics void PixelDataRange(OpenTK.Graphics.NvPixelDataRange target, Int32 length, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target, (Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPixelDataRange", Version = "1.2", EntryPoint = "glFlushPixelDataRangeNV")] public static void FlushPixelDataRange(OpenTK.Graphics.NvPixelDataRange target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFlushPixelDataRangeNV((OpenTK.Graphics.NvPixelDataRange)target); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPrimitiveRestart", Version = "1.2", EntryPoint = "glPrimitiveRestartNV")] public static void PrimitiveRestart() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPrimitiveRestartNV(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52777,7 +68852,14 @@ namespace OpenTK.Graphics public static void PrimitiveRestartIndex(UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPrimitiveRestartIndexNV((UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvPrimitiveRestart", Version = "1.2", EntryPoint = "glPrimitiveRestartIndexNV")] @@ -52792,7 +68874,14 @@ namespace OpenTK.Graphics public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameterI4iNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramLocalParameterI4iNV")] @@ -52807,6 +68896,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -52814,12 +68907,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramLocalParameterI4ivNV")] public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -52827,6 +68927,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52834,6 +68937,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -52841,12 +68948,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramLocalParameterI4ivNV")] public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -52854,6 +68968,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52861,7 +68978,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52869,7 +68993,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52877,6 +69008,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -52884,12 +69019,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramLocalParametersI4ivNV")] public static void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -52897,6 +69039,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52904,6 +69049,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -52911,12 +69060,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramLocalParametersI4ivNV")] public static void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -52924,6 +69080,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52931,7 +69090,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52939,7 +69105,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52947,7 +69120,14 @@ namespace OpenTK.Graphics public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, UInt32 x, UInt32 y, UInt32 z, UInt32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameterI4uiNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z, (UInt32)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52955,6 +69135,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -52962,6 +69146,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameterI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52969,6 +69156,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -52976,6 +69167,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameterI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52983,7 +69177,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameterI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -52991,6 +69192,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -52998,6 +69203,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParametersI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53005,6 +69213,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -53012,6 +69224,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParametersI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53019,7 +69234,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParametersI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53027,7 +69249,14 @@ namespace OpenTK.Graphics public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameterI4iNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramEnvParameterI4iNV")] @@ -53042,6 +69271,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53049,12 +69282,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramEnvParameterI4ivNV")] public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53062,6 +69302,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53069,6 +69312,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53076,12 +69323,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramEnvParameterI4ivNV")] public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53089,6 +69343,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53096,7 +69353,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53104,7 +69368,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameterI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53112,6 +69383,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53119,12 +69394,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramEnvParametersI4ivNV")] public static void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53132,6 +69414,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53139,6 +69424,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53146,12 +69435,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glProgramEnvParametersI4ivNV")] public static void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53159,6 +69455,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53166,7 +69465,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53174,7 +69480,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParametersI4ivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53182,7 +69495,14 @@ namespace OpenTK.Graphics public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, UInt32 x, UInt32 y, UInt32 z, UInt32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameterI4uiNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z, (UInt32)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53190,6 +69510,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -53197,6 +69521,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameterI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53204,6 +69531,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -53211,6 +69542,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameterI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53218,7 +69552,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameterI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53226,6 +69567,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -53233,6 +69578,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParametersI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53240,6 +69588,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -53247,6 +69599,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParametersI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53254,7 +69609,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParametersI4(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, Int32 count, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParametersI4uivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32)count, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53262,6 +69624,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53269,12 +69635,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glGetProgramLocalParameterIivNV")] public static void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53282,6 +69655,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53289,6 +69665,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53297,12 +69677,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glGetProgramLocalParameterIivNV")] public static void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53311,6 +69698,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53318,7 +69708,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53326,7 +69723,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53334,6 +69738,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -53341,6 +69749,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterIuivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53348,6 +69759,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -53356,6 +69771,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53363,7 +69781,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterIuivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53371,6 +69796,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53378,12 +69807,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glGetProgramEnvParameterIivNV")] public static void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53391,6 +69827,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53398,6 +69837,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53406,12 +69849,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGpuProgram4", Version = "1.3", EntryPoint = "glGetProgramEnvParameterIivNV")] public static void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53420,6 +69870,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53427,7 +69880,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53435,7 +69895,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, Int32 index, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterIivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53443,6 +69910,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -53450,6 +69921,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterIuivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53457,6 +69931,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -53465,6 +69943,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53472,14 +69953,28 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameterI(OpenTK.Graphics.NvGpuProgram4 target, UInt32 index, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterIuivNV((OpenTK.Graphics.NvGpuProgram4)target, (UInt32)index, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGeometryProgram4", Version = "2.0", EntryPoint = "glProgramVertexLimitNV")] public static void ProgramVertexLimit(OpenTK.Graphics.NvGeometryProgram4 target, Int32 limit) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramVertexLimitNV((OpenTK.Graphics.NvGeometryProgram4)target, (Int32)limit); + #if DEBUG + } + #endif } @@ -53500,7 +69995,14 @@ namespace OpenTK.Graphics public static void DepthRange(Double zNear, Double zFar) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDepthRangedNV((Double)zNear, (Double)zFar); + #if DEBUG + } + #endif } @@ -53516,21 +70018,42 @@ namespace OpenTK.Graphics public static void ClearDepth(Double depth) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearDepthdNV((Double)depth); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvDepthBufferFloat", Version = "2.0", EntryPoint = "glDepthBoundsdNV")] public static void DepthBounds(Double zmin, Double zmax) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDepthBoundsdNV((Double)zmin, (Double)zmax); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvFramebufferMultisampleCoverage", Version = "1.5", EntryPoint = "glRenderbufferStorageMultisampleCoverageNV")] public static void RenderbufferStorageMultisampleCoverage(OpenTK.Graphics.RenderbufferTarget target, Int32 coverageSamples, Int32 colorSamples, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRenderbufferStorageMultisampleCoverageNV((OpenTK.Graphics.RenderbufferTarget)target, (Int32)coverageSamples, (Int32)colorSamples, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53538,6 +70061,10 @@ namespace OpenTK.Graphics public static void ProgramBufferParameters(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -53545,12 +70072,19 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersfvNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvParameterBufferObject", Version = "1.2", EntryPoint = "glProgramBufferParametersfvNV")] public static void ProgramBufferParameters(OpenTK.Graphics.NvParameterBufferObject target, Int32 buffer, Int32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -53558,6 +70092,9 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersfvNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53565,6 +70102,10 @@ namespace OpenTK.Graphics public static void ProgramBufferParameters(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -53572,12 +70113,19 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersfvNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvParameterBufferObject", Version = "1.2", EntryPoint = "glProgramBufferParametersfvNV")] public static void ProgramBufferParameters(OpenTK.Graphics.NvParameterBufferObject target, Int32 buffer, Int32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -53585,6 +70133,9 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersfvNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53592,7 +70143,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramBufferParameters(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramBufferParametersfvNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53600,7 +70158,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramBufferParameters(OpenTK.Graphics.NvParameterBufferObject target, Int32 buffer, Int32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramBufferParametersfvNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53608,6 +70173,10 @@ namespace OpenTK.Graphics public static void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53615,12 +70184,19 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersIivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvParameterBufferObject", Version = "1.2", EntryPoint = "glProgramBufferParametersIivNV")] public static void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, Int32 buffer, Int32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -53628,6 +70204,9 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersIivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53635,6 +70214,10 @@ namespace OpenTK.Graphics public static void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53642,12 +70225,19 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersIivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvParameterBufferObject", Version = "1.2", EntryPoint = "glProgramBufferParametersIivNV")] public static void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, Int32 buffer, Int32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -53655,6 +70245,9 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersIivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53662,7 +70255,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramBufferParametersIivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53670,7 +70270,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, Int32 buffer, Int32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramBufferParametersIivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53678,6 +70285,10 @@ namespace OpenTK.Graphics public static void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -53685,6 +70296,9 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersIuivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53692,6 +70306,10 @@ namespace OpenTK.Graphics public static void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -53699,6 +70317,9 @@ namespace OpenTK.Graphics Delegates.glProgramBufferParametersIuivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53706,21 +70327,42 @@ namespace OpenTK.Graphics public static unsafe void ProgramBufferParametersI(OpenTK.Graphics.NvParameterBufferObject target, UInt32 buffer, UInt32 index, Int32 count, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramBufferParametersIuivNV((OpenTK.Graphics.NvParameterBufferObject)target, (UInt32)buffer, (UInt32)index, (Int32)count, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glBeginTransformFeedbackNV")] public static void BeginTransformFeedback(OpenTK.Graphics.NvTransformFeedback primitiveMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginTransformFeedbackNV((OpenTK.Graphics.NvTransformFeedback)primitiveMode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glEndTransformFeedbackNV")] public static void EndTransformFeedback() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndTransformFeedbackNV(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53728,6 +70370,10 @@ namespace OpenTK.Graphics public static void TransformFeedbackAttrib(UInt32 count, Int32[] attribs, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* attribs_ptr = attribs) @@ -53735,12 +70381,19 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackAttribsNV((UInt32)count, (Int32*)attribs_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glTransformFeedbackAttribsNV")] public static void TransformFeedbackAttrib(Int32 count, Int32[] attribs, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* attribs_ptr = attribs) @@ -53748,6 +70401,9 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackAttribsNV((UInt32)count, (Int32*)attribs_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53755,6 +70411,10 @@ namespace OpenTK.Graphics public static void TransformFeedbackAttrib(UInt32 count, ref Int32 attribs, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* attribs_ptr = &attribs) @@ -53762,12 +70422,19 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackAttribsNV((UInt32)count, (Int32*)attribs_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glTransformFeedbackAttribsNV")] public static void TransformFeedbackAttrib(Int32 count, ref Int32 attribs, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* attribs_ptr = &attribs) @@ -53775,6 +70442,9 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackAttribsNV((UInt32)count, (Int32*)attribs_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53782,7 +70452,14 @@ namespace OpenTK.Graphics public static unsafe void TransformFeedbackAttrib(UInt32 count, Int32* attribs, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTransformFeedbackAttribsNV((UInt32)count, (Int32*)attribs, (OpenTK.Graphics.NvTransformFeedback)bufferMode); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53790,7 +70467,14 @@ namespace OpenTK.Graphics public static unsafe void TransformFeedbackAttrib(Int32 count, Int32* attribs, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTransformFeedbackAttribsNV((UInt32)count, (Int32*)attribs, (OpenTK.Graphics.NvTransformFeedback)bufferMode); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53798,7 +70482,14 @@ namespace OpenTK.Graphics public static void BindBufferRange(OpenTK.Graphics.NvTransformFeedback target, UInt32 index, UInt32 buffer, IntPtr offset, IntPtr size) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferRangeNV((OpenTK.Graphics.NvTransformFeedback)target, (UInt32)index, (UInt32)buffer, (IntPtr)offset, (IntPtr)size); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glBindBufferRangeNV")] @@ -53813,7 +70504,14 @@ namespace OpenTK.Graphics public static void BindBufferOffset(OpenTK.Graphics.NvTransformFeedback target, UInt32 index, UInt32 buffer, IntPtr offset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferOffsetNV((OpenTK.Graphics.NvTransformFeedback)target, (UInt32)index, (UInt32)buffer, (IntPtr)offset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glBindBufferOffsetNV")] @@ -53828,7 +70526,14 @@ namespace OpenTK.Graphics public static void BindBufferBase(OpenTK.Graphics.NvTransformFeedback target, UInt32 index, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferBaseNV((OpenTK.Graphics.NvTransformFeedback)target, (UInt32)index, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glBindBufferBaseNV")] @@ -53843,6 +70548,10 @@ namespace OpenTK.Graphics public static void TransformFeedbackVarying(UInt32 program, Int32 count, Int32[] locations, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* locations_ptr = locations) @@ -53850,12 +70559,19 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackVaryingsNV((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glTransformFeedbackVaryingsNV")] public static void TransformFeedbackVarying(Int32 program, Int32 count, Int32[] locations, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* locations_ptr = locations) @@ -53863,6 +70579,9 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackVaryingsNV((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53870,6 +70589,10 @@ namespace OpenTK.Graphics public static void TransformFeedbackVarying(UInt32 program, Int32 count, ref Int32 locations, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* locations_ptr = &locations) @@ -53877,12 +70600,19 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackVaryingsNV((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glTransformFeedbackVaryingsNV")] public static void TransformFeedbackVarying(Int32 program, Int32 count, ref Int32 locations, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* locations_ptr = &locations) @@ -53890,6 +70620,9 @@ namespace OpenTK.Graphics Delegates.glTransformFeedbackVaryingsNV((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.NvTransformFeedback)bufferMode); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53897,7 +70630,14 @@ namespace OpenTK.Graphics public static unsafe void TransformFeedbackVarying(UInt32 program, Int32 count, Int32* locations, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTransformFeedbackVaryingsNV((UInt32)program, (Int32)count, (Int32*)locations, (OpenTK.Graphics.NvTransformFeedback)bufferMode); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53905,7 +70645,14 @@ namespace OpenTK.Graphics public static unsafe void TransformFeedbackVarying(Int32 program, Int32 count, Int32* locations, OpenTK.Graphics.NvTransformFeedback bufferMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTransformFeedbackVaryingsNV((UInt32)program, (Int32)count, (Int32*)locations, (OpenTK.Graphics.NvTransformFeedback)bufferMode); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53913,7 +70660,14 @@ namespace OpenTK.Graphics public static void ActiveVarying(UInt32 program, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glActiveVaryingNV((UInt32)program, (String)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glActiveVaryingNV")] @@ -53928,7 +70682,14 @@ namespace OpenTK.Graphics public static Int32 GetVaryingLocation(UInt32 program, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetVaryingLocationNV((UInt32)program, (String)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetVaryingLocationNV")] @@ -53943,6 +70704,10 @@ namespace OpenTK.Graphics public static void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.NvTransformFeedback[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -53952,12 +70717,19 @@ namespace OpenTK.Graphics Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.NvTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.NvTransformFeedback[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -53967,6 +70739,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.NvTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -53974,6 +70749,10 @@ namespace OpenTK.Graphics public static void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.NvTransformFeedback type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -53986,12 +70765,19 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.NvTransformFeedback type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -54004,6 +70790,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54011,7 +70800,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.NvTransformFeedback* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.NvTransformFeedback*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54019,7 +70815,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.NvTransformFeedback* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.NvTransformFeedback*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54027,6 +70830,10 @@ namespace OpenTK.Graphics public static void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32[] location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* location_ptr = location) @@ -54034,12 +70841,19 @@ namespace OpenTK.Graphics Delegates.glGetTransformFeedbackVaryingNV((UInt32)program, (UInt32)index, (Int32*)location_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetTransformFeedbackVaryingNV")] public static void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] Int32[] location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* location_ptr = location) @@ -54047,6 +70861,9 @@ namespace OpenTK.Graphics Delegates.glGetTransformFeedbackVaryingNV((UInt32)program, (UInt32)index, (Int32*)location_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54054,6 +70871,10 @@ namespace OpenTK.Graphics public static void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] out Int32 location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* location_ptr = &location) @@ -54062,12 +70883,19 @@ namespace OpenTK.Graphics location = *location_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetTransformFeedbackVaryingNV")] public static void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] out Int32 location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* location_ptr = &location) @@ -54076,6 +70904,9 @@ namespace OpenTK.Graphics location = *location_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54083,7 +70914,14 @@ namespace OpenTK.Graphics public static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32* location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTransformFeedbackVaryingNV((UInt32)program, (UInt32)index, (Int32*)location); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54091,7 +70929,14 @@ namespace OpenTK.Graphics public static unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] Int32* location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTransformFeedbackVaryingNV((UInt32)program, (UInt32)index, (Int32*)location); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54099,7 +70944,14 @@ namespace OpenTK.Graphics public static void BeginConditionalRender(UInt32 id, OpenTK.Graphics.NvConditionalRender mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginConditionalRenderNV((UInt32)id, (OpenTK.Graphics.NvConditionalRender)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvConditionalRender", Version = "", EntryPoint = "glBeginConditionalRenderNV")] @@ -54113,7 +70965,570 @@ namespace OpenTK.Graphics public static void EndConditionalRender() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndConditionalRenderNV(); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glPresentFrameKeyedNV")] + public static + void PresentFrameKeye(UInt32 video_slot, UInt64 minPresentTime, UInt32 beginPresentTimeId, UInt32 presentDurationId, OpenTK.Graphics.NvPresentVideo type, OpenTK.Graphics.NvPresentVideo target0, UInt32 fill0, UInt32 key0, OpenTK.Graphics.NvPresentVideo target1, UInt32 fill1, UInt32 key1) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPresentFrameKeyedNV((UInt32)video_slot, (UInt64)minPresentTime, (UInt32)beginPresentTimeId, (UInt32)presentDurationId, (OpenTK.Graphics.NvPresentVideo)type, (OpenTK.Graphics.NvPresentVideo)target0, (UInt32)fill0, (UInt32)key0, (OpenTK.Graphics.NvPresentVideo)target1, (UInt32)fill1, (UInt32)key1); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glPresentFrameKeyedNV")] + public static + void PresentFrameKeye(Int32 video_slot, Int64 minPresentTime, Int32 beginPresentTimeId, Int32 presentDurationId, OpenTK.Graphics.NvPresentVideo type, OpenTK.Graphics.NvPresentVideo target0, Int32 fill0, Int32 key0, OpenTK.Graphics.NvPresentVideo target1, Int32 fill1, Int32 key1) + { + Delegates.glPresentFrameKeyedNV((UInt32)video_slot, (UInt64)minPresentTime, (UInt32)beginPresentTimeId, (UInt32)presentDurationId, (OpenTK.Graphics.NvPresentVideo)type, (OpenTK.Graphics.NvPresentVideo)target0, (UInt32)fill0, (UInt32)key0, (OpenTK.Graphics.NvPresentVideo)target1, (UInt32)fill1, (UInt32)key1); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glPresentFrameDualFillNV")] + public static + void PresentFrameDualFill(UInt32 video_slot, UInt64 minPresentTime, UInt32 beginPresentTimeId, UInt32 presentDurationId, OpenTK.Graphics.NvPresentVideo type, OpenTK.Graphics.NvPresentVideo target0, UInt32 fill0, OpenTK.Graphics.NvPresentVideo target1, UInt32 fill1, OpenTK.Graphics.NvPresentVideo target2, UInt32 fill2, OpenTK.Graphics.NvPresentVideo target3, UInt32 fill3) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPresentFrameDualFillNV((UInt32)video_slot, (UInt64)minPresentTime, (UInt32)beginPresentTimeId, (UInt32)presentDurationId, (OpenTK.Graphics.NvPresentVideo)type, (OpenTK.Graphics.NvPresentVideo)target0, (UInt32)fill0, (OpenTK.Graphics.NvPresentVideo)target1, (UInt32)fill1, (OpenTK.Graphics.NvPresentVideo)target2, (UInt32)fill2, (OpenTK.Graphics.NvPresentVideo)target3, (UInt32)fill3); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glPresentFrameDualFillNV")] + public static + void PresentFrameDualFill(Int32 video_slot, Int64 minPresentTime, Int32 beginPresentTimeId, Int32 presentDurationId, OpenTK.Graphics.NvPresentVideo type, OpenTK.Graphics.NvPresentVideo target0, Int32 fill0, OpenTK.Graphics.NvPresentVideo target1, Int32 fill1, OpenTK.Graphics.NvPresentVideo target2, Int32 fill2, OpenTK.Graphics.NvPresentVideo target3, Int32 fill3) + { + Delegates.glPresentFrameDualFillNV((UInt32)video_slot, (UInt64)minPresentTime, (UInt32)beginPresentTimeId, (UInt32)presentDurationId, (OpenTK.Graphics.NvPresentVideo)type, (OpenTK.Graphics.NvPresentVideo)target0, (UInt32)fill0, (OpenTK.Graphics.NvPresentVideo)target1, (UInt32)fill1, (OpenTK.Graphics.NvPresentVideo)target2, (UInt32)fill2, (OpenTK.Graphics.NvPresentVideo)target3, (UInt32)fill3); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoivNV")] + public static + void GetVideo(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetVideoivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoivNV")] + public static + void GetVideo(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetVideoivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoivNV")] + public static + void GetVideo(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetVideoivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoivNV")] + public static + void GetVideo(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetVideoivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoivNV")] + public static + unsafe void GetVideo(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideoivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoivNV")] + public static + unsafe void GetVideo(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideoivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideouivNV")] + public static + void GetVideo(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] UInt32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* @params_ptr = @params) + { + Delegates.glGetVideouivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideouivNV")] + public static + void GetVideo(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out UInt32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* @params_ptr = &@params) + { + Delegates.glGetVideouivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt32*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideouivNV")] + public static + unsafe void GetVideo(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] UInt32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideouivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt32*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoi64vNV")] + public static + void GetVideoi64(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int64* @params_ptr = @params) + { + Delegates.glGetVideoi64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int64*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoi64vNV")] + public static + void GetVideoi64(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int64* @params_ptr = @params) + { + Delegates.glGetVideoi64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int64*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoi64vNV")] + public static + void GetVideoi64(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out Int64 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int64* @params_ptr = &@params) + { + Delegates.glGetVideoi64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int64*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoi64vNV")] + public static + void GetVideoi64(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out Int64 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int64* @params_ptr = &@params) + { + Delegates.glGetVideoi64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int64*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoi64vNV")] + public static + unsafe void GetVideoi64(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideoi64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int64*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoi64vNV")] + public static + unsafe void GetVideoi64(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideoi64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int64*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoui64vNV")] + public static + void GetVideoui64(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] UInt64[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt64* @params_ptr = @params) + { + Delegates.glGetVideoui64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt64*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoui64vNV")] + public static + void GetVideoui64(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int64* @params_ptr = @params) + { + Delegates.glGetVideoui64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt64*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoui64vNV")] + public static + void GetVideoui64(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out UInt64 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt64* @params_ptr = &@params) + { + Delegates.glGetVideoui64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt64*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoui64vNV")] + public static + void GetVideoui64(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] out Int64 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int64* @params_ptr = &@params) + { + Delegates.glGetVideoui64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt64*)@params_ptr); + @params = *@params_ptr; + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoui64vNV")] + public static + unsafe void GetVideoui64(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] UInt64* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideoui64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt64*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glGetVideoui64vNV")] + public static + unsafe void GetVideoui64(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVideoui64vNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (UInt64*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glVideoParameterivNV")] + public static + void VideoParameter(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glVideoParameterivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glVideoParameterivNV")] + public static + void VideoParameter(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glVideoParameterivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glVideoParameterivNV")] + public static + void VideoParameter(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glVideoParameterivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glVideoParameterivNV")] + public static + void VideoParameter(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glVideoParameterivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glVideoParameterivNV")] + public static + unsafe void VideoParameter(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVideoParameterivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "NvPresentVideo", Version = "1.2", EntryPoint = "glVideoParameterivNV")] + public static + unsafe void VideoParameter(Int32 video_slot, OpenTK.Graphics.NvPresentVideo pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVideoParameterivNV((UInt32)video_slot, (OpenTK.Graphics.NvPresentVideo)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54121,6 +71536,10 @@ namespace OpenTK.Graphics public static void GetMultisample(OpenTK.Graphics.NvExplicitMultisample pname, UInt32 index, [Out] Single[] val) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* val_ptr = val) @@ -54128,12 +71547,19 @@ namespace OpenTK.Graphics Delegates.glGetMultisamplefvNV((OpenTK.Graphics.NvExplicitMultisample)pname, (UInt32)index, (Single*)val_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvExplicitMultisample", Version = "", EntryPoint = "glGetMultisamplefvNV")] public static void GetMultisample(OpenTK.Graphics.NvExplicitMultisample pname, Int32 index, [Out] Single[] val) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* val_ptr = val) @@ -54141,6 +71567,9 @@ namespace OpenTK.Graphics Delegates.glGetMultisamplefvNV((OpenTK.Graphics.NvExplicitMultisample)pname, (UInt32)index, (Single*)val_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54148,6 +71577,10 @@ namespace OpenTK.Graphics public static void GetMultisample(OpenTK.Graphics.NvExplicitMultisample pname, UInt32 index, [Out] out Single val) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* val_ptr = &val) @@ -54156,12 +71589,19 @@ namespace OpenTK.Graphics val = *val_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvExplicitMultisample", Version = "", EntryPoint = "glGetMultisamplefvNV")] public static void GetMultisample(OpenTK.Graphics.NvExplicitMultisample pname, Int32 index, [Out] out Single val) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* val_ptr = &val) @@ -54170,6 +71610,9 @@ namespace OpenTK.Graphics val = *val_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54177,7 +71620,14 @@ namespace OpenTK.Graphics public static unsafe void GetMultisample(OpenTK.Graphics.NvExplicitMultisample pname, UInt32 index, [Out] Single* val) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultisamplefvNV((OpenTK.Graphics.NvExplicitMultisample)pname, (UInt32)index, (Single*)val); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54185,7 +71635,14 @@ namespace OpenTK.Graphics public static unsafe void GetMultisample(OpenTK.Graphics.NvExplicitMultisample pname, Int32 index, [Out] Single* val) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultisamplefvNV((OpenTK.Graphics.NvExplicitMultisample)pname, (UInt32)index, (Single*)val); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54193,7 +71650,14 @@ namespace OpenTK.Graphics public static void SampleMaskIndexe(UInt32 index, UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSampleMaskIndexedNV((UInt32)index, (UInt32)mask); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvExplicitMultisample", Version = "", EntryPoint = "glSampleMaskIndexedNV")] @@ -54208,7 +71672,14 @@ namespace OpenTK.Graphics public static void TexRenderbuffer(OpenTK.Graphics.TextureTarget target, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexRenderbufferNV((OpenTK.Graphics.TextureTarget)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvExplicitMultisample", Version = "", EntryPoint = "glTexRenderbufferNV")] @@ -54223,7 +71694,14 @@ namespace OpenTK.Graphics public static void BindTransformFeedback(OpenTK.Graphics.NvTransformFeedback2 target, UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindTransformFeedbackNV((OpenTK.Graphics.NvTransformFeedback2)target, (UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glBindTransformFeedbackNV")] @@ -54238,6 +71716,10 @@ namespace OpenTK.Graphics public static void DeleteTransformFeedback(Int32 n, UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -54245,12 +71727,19 @@ namespace OpenTK.Graphics Delegates.glDeleteTransformFeedbacksNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glDeleteTransformFeedbacksNV")] public static void DeleteTransformFeedback(Int32 n, Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -54258,6 +71747,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTransformFeedbacksNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54265,6 +71757,10 @@ namespace OpenTK.Graphics public static void DeleteTransformFeedback(Int32 n, ref UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -54272,12 +71768,19 @@ namespace OpenTK.Graphics Delegates.glDeleteTransformFeedbacksNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glDeleteTransformFeedbacksNV")] public static void DeleteTransformFeedback(Int32 n, ref Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -54285,6 +71788,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTransformFeedbacksNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54292,7 +71798,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteTransformFeedback(Int32 n, UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteTransformFeedbacksNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54300,7 +71813,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteTransformFeedback(Int32 n, Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteTransformFeedbacksNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54308,6 +71828,10 @@ namespace OpenTK.Graphics public static void GenTransformFeedback(Int32 n, [Out] UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -54315,12 +71839,19 @@ namespace OpenTK.Graphics Delegates.glGenTransformFeedbacksNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glGenTransformFeedbacksNV")] public static void GenTransformFeedback(Int32 n, [Out] Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -54328,6 +71859,9 @@ namespace OpenTK.Graphics Delegates.glGenTransformFeedbacksNV((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54335,6 +71869,10 @@ namespace OpenTK.Graphics public static void GenTransformFeedback(Int32 n, [Out] out UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -54343,12 +71881,19 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glGenTransformFeedbacksNV")] public static void GenTransformFeedback(Int32 n, [Out] out Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -54357,6 +71902,9 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54364,7 +71912,14 @@ namespace OpenTK.Graphics public static unsafe void GenTransformFeedback(Int32 n, [Out] UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenTransformFeedbacksNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54372,7 +71927,14 @@ namespace OpenTK.Graphics public static unsafe void GenTransformFeedback(Int32 n, [Out] Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenTransformFeedbacksNV((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54380,7 +71942,14 @@ namespace OpenTK.Graphics public static bool IsTransformFeedback(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsTransformFeedbackNV((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glIsTransformFeedbackNV")] @@ -54394,14 +71963,28 @@ namespace OpenTK.Graphics public static void PauseTransformFeedback() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPauseTransformFeedbackNV(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glResumeTransformFeedbackNV")] public static void ResumeTransformFeedback() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glResumeTransformFeedbackNV(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54409,7 +71992,14 @@ namespace OpenTK.Graphics public static void DrawTransformFeedback(OpenTK.Graphics.NvTransformFeedback2 mode, UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawTransformFeedbackNV((OpenTK.Graphics.NvTransformFeedback2)mode, (UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glDrawTransformFeedbackNV")] @@ -54436,7 +72026,14 @@ namespace OpenTK.Graphics public static void ActiveTexture(OpenTK.Graphics.TextureUnit texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glActiveTextureARB((OpenTK.Graphics.TextureUnit)texture); + #if DEBUG + } + #endif } @@ -54452,7 +72049,14 @@ namespace OpenTK.Graphics public static void ClientActiveTexture(OpenTK.Graphics.TextureUnit texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClientActiveTextureARB((OpenTK.Graphics.TextureUnit)texture); + #if DEBUG + } + #endif } @@ -54473,13 +72077,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Double s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1dARB((OpenTK.Graphics.TextureUnit)target, (Double)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1dvARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -54487,12 +72102,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1dvARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -54500,6 +72122,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54507,7 +72132,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -54528,13 +72160,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Single s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1fARB((OpenTK.Graphics.TextureUnit)target, (Single)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1fvARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -54542,12 +72185,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1fvARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -54555,6 +72205,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54562,7 +72215,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -54583,13 +72243,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Int32 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1iARB((OpenTK.Graphics.TextureUnit)target, (Int32)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1ivARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -54597,12 +72268,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1ivARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -54610,6 +72288,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54617,7 +72298,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -54638,13 +72326,24 @@ namespace OpenTK.Graphics public static void MultiTexCoord1(OpenTK.Graphics.TextureUnit target, Int16 s) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1sARB((OpenTK.Graphics.TextureUnit)target, (Int16)s); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1svARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -54652,12 +72351,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMultitexture", Version = "1.2", EntryPoint = "glMultiTexCoord1svARB")] public static void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -54665,6 +72371,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord1svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -54672,7 +72381,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord1v(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord1svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -54693,7 +72409,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Double s, Double t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2dARB((OpenTK.Graphics.TextureUnit)target, (Double)s, (Double)t); + #if DEBUG + } + #endif } @@ -54714,6 +72437,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -54721,6 +72448,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -54741,6 +72471,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -54748,6 +72482,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -54769,7 +72506,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -54790,7 +72534,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Single s, Single t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2fARB((OpenTK.Graphics.TextureUnit)target, (Single)s, (Single)t); + #if DEBUG + } + #endif } @@ -54811,6 +72562,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -54818,6 +72573,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -54838,6 +72596,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -54845,6 +72607,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -54866,7 +72631,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -54887,7 +72659,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int32 s, Int32 t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2iARB((OpenTK.Graphics.TextureUnit)target, (Int32)s, (Int32)t); + #if DEBUG + } + #endif } @@ -54908,6 +72687,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -54915,6 +72698,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -54935,6 +72721,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -54942,6 +72732,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -54963,7 +72756,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -54984,7 +72784,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int16 s, Int16 t) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2sARB((OpenTK.Graphics.TextureUnit)target, (Int16)s, (Int16)t); + #if DEBUG + } + #endif } @@ -55005,6 +72812,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -55012,6 +72823,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55032,6 +72846,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -55039,6 +72857,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord2svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55060,7 +72881,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord2(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord2svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -55081,7 +72909,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Double s, Double t, Double r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3dARB((OpenTK.Graphics.TextureUnit)target, (Double)s, (Double)t, (Double)r); + #if DEBUG + } + #endif } @@ -55102,6 +72937,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -55109,6 +72948,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55129,6 +72971,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -55136,6 +72982,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55157,7 +73006,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -55178,7 +73034,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Single s, Single t, Single r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3fARB((OpenTK.Graphics.TextureUnit)target, (Single)s, (Single)t, (Single)r); + #if DEBUG + } + #endif } @@ -55199,6 +73062,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -55206,6 +73073,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55226,6 +73096,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -55233,6 +73107,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55254,7 +73131,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -55275,7 +73159,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int32 s, Int32 t, Int32 r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3iARB((OpenTK.Graphics.TextureUnit)target, (Int32)s, (Int32)t, (Int32)r); + #if DEBUG + } + #endif } @@ -55296,6 +73187,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -55303,6 +73198,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55323,6 +73221,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -55330,6 +73232,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55351,7 +73256,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -55372,7 +73284,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int16 s, Int16 t, Int16 r) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3sARB((OpenTK.Graphics.TextureUnit)target, (Int16)s, (Int16)t, (Int16)r); + #if DEBUG + } + #endif } @@ -55393,6 +73312,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -55400,6 +73323,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55420,6 +73346,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -55427,6 +73357,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord3svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55448,7 +73381,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord3(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord3svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -55469,7 +73409,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Double s, Double t, Double r, Double q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4dARB((OpenTK.Graphics.TextureUnit)target, (Double)s, (Double)t, (Double)r, (Double)q); + #if DEBUG + } + #endif } @@ -55490,6 +73437,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -55497,6 +73448,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55517,6 +73471,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -55524,6 +73482,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55545,7 +73506,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4dvARB((OpenTK.Graphics.TextureUnit)target, (Double*)v); + #if DEBUG + } + #endif } @@ -55566,7 +73534,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Single s, Single t, Single r, Single q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4fARB((OpenTK.Graphics.TextureUnit)target, (Single)s, (Single)t, (Single)r, (Single)q); + #if DEBUG + } + #endif } @@ -55587,6 +73562,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -55594,6 +73573,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55614,6 +73596,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -55621,6 +73607,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55642,7 +73631,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4fvARB((OpenTK.Graphics.TextureUnit)target, (Single*)v); + #if DEBUG + } + #endif } @@ -55663,7 +73659,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int32 s, Int32 t, Int32 r, Int32 q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4iARB((OpenTK.Graphics.TextureUnit)target, (Int32)s, (Int32)t, (Int32)r, (Int32)q); + #if DEBUG + } + #endif } @@ -55684,6 +73687,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -55691,6 +73698,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55711,6 +73721,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -55718,6 +73732,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55739,7 +73756,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4ivARB((OpenTK.Graphics.TextureUnit)target, (Int32*)v); + #if DEBUG + } + #endif } @@ -55760,7 +73784,14 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int16 s, Int16 t, Int16 r, Int16 q) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4sARB((OpenTK.Graphics.TextureUnit)target, (Int16)s, (Int16)t, (Int16)r, (Int16)q); + #if DEBUG + } + #endif } @@ -55781,6 +73812,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -55788,6 +73823,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55808,6 +73846,10 @@ namespace OpenTK.Graphics public static void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -55815,6 +73857,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexCoord4svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -55836,7 +73881,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexCoord4(OpenTK.Graphics.TextureUnit target, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexCoord4svARB((OpenTK.Graphics.TextureUnit)target, (Int16*)v); + #if DEBUG + } + #endif } @@ -55852,6 +73904,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -55859,6 +73915,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixfARB((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -55874,6 +73933,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -55881,6 +73944,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixfARB((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -55897,7 +73963,14 @@ namespace OpenTK.Graphics public static unsafe void LoadTransposeMatrix(Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadTransposeMatrixfARB((Single*)m); + #if DEBUG + } + #endif } @@ -55913,6 +73986,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -55920,6 +73997,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixdARB((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -55935,6 +74015,10 @@ namespace OpenTK.Graphics public static void LoadTransposeMatrix(ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -55942,6 +74026,9 @@ namespace OpenTK.Graphics Delegates.glLoadTransposeMatrixdARB((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -55958,7 +74045,14 @@ namespace OpenTK.Graphics public static unsafe void LoadTransposeMatrix(Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadTransposeMatrixdARB((Double*)m); + #if DEBUG + } + #endif } @@ -55974,6 +74068,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -55981,6 +74079,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixfARB((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -55996,6 +74097,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -56003,6 +74108,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixfARB((Single*)m_ptr); } } + #if DEBUG + } + #endif } @@ -56019,7 +74127,14 @@ namespace OpenTK.Graphics public static unsafe void MultTransposeMatrix(Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultTransposeMatrixfARB((Single*)m); + #if DEBUG + } + #endif } @@ -56035,6 +74150,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -56042,6 +74161,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixdARB((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -56057,6 +74179,10 @@ namespace OpenTK.Graphics public static void MultTransposeMatrix(ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -56064,6 +74190,9 @@ namespace OpenTK.Graphics Delegates.glMultTransposeMatrixdARB((Double*)m_ptr); } } + #if DEBUG + } + #endif } @@ -56080,7 +74209,14 @@ namespace OpenTK.Graphics public static unsafe void MultTransposeMatrix(Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultTransposeMatrixdARB((Double*)m); + #if DEBUG + } + #endif } @@ -56101,7 +74237,14 @@ namespace OpenTK.Graphics public static void SampleCoverage(Single value, bool invert) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSampleCoverageARB((Single)value, (bool)invert); + #if DEBUG + } + #endif } @@ -56157,10 +74300,14 @@ namespace OpenTK.Graphics public static void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -56217,18 +74364,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] ref T8 data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56285,18 +74436,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T8[] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56353,18 +74508,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T8[,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56421,18 +74580,22 @@ namespace OpenTK.Graphics void CompressedTexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T8[,,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56483,10 +74646,14 @@ namespace OpenTK.Graphics public static void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -56538,18 +74705,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] ref T7 data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56601,18 +74772,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T7[] data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56664,18 +74839,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T7[,] data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56727,18 +74906,22 @@ namespace OpenTK.Graphics void CompressedTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T7[,,] data) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56784,10 +74967,14 @@ namespace OpenTK.Graphics public static void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -56834,18 +75021,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] ref T6 data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56892,18 +75083,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T6[] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -56950,18 +75145,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T6[,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57008,18 +75207,22 @@ namespace OpenTK.Graphics void CompressedTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T6[,,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57080,10 +75283,14 @@ namespace OpenTK.Graphics public static void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -57145,18 +75352,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T10 data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57218,18 +75429,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T10[] data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57291,18 +75506,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T10[,] data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57364,18 +75583,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T10[,,] data) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57431,10 +75654,14 @@ namespace OpenTK.Graphics public static void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -57491,18 +75718,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T8 data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57559,18 +75790,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T8[] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57627,18 +75862,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T8[,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57695,18 +75934,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T8[,,] data) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57752,10 +75995,14 @@ namespace OpenTK.Graphics public static void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #endif + Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG } + #endif } @@ -57802,18 +76049,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T6 data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57860,18 +76111,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T6[] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57918,18 +76173,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T6[,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -57976,18 +76235,22 @@ namespace OpenTK.Graphics void CompressedTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T6[,,] data) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage1DARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -58013,10 +76276,14 @@ namespace OpenTK.Graphics public static void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [Out] IntPtr img) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img); + #endif + Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img); + #if DEBUG } + #endif } @@ -58043,18 +76310,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] ref T2 img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -58081,18 +76352,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] T2[] img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -58119,18 +76394,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] T2[,] img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -58157,18 +76436,22 @@ namespace OpenTK.Graphics void GetCompressedTexImage(OpenTK.Graphics.TextureTarget target, Int32 level, [In, Out] T2[,,] img) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTexImageARB((OpenTK.Graphics.TextureTarget)target, (Int32)level, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -58189,13 +76472,24 @@ namespace OpenTK.Graphics public static void PointParameter(OpenTK.Graphics.ArbPointParameters pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfARB((OpenTK.Graphics.ArbPointParameters)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbPointParameters", Version = "1.0", EntryPoint = "glPointParameterfvARB")] public static void PointParameterv(OpenTK.Graphics.ArbPointParameters pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -58203,12 +76497,19 @@ namespace OpenTK.Graphics Delegates.glPointParameterfvARB((OpenTK.Graphics.ArbPointParameters)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbPointParameters", Version = "1.0", EntryPoint = "glPointParameterfvARB")] public static void PointParameterv(OpenTK.Graphics.ArbPointParameters pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -58216,6 +76517,9 @@ namespace OpenTK.Graphics Delegates.glPointParameterfvARB((OpenTK.Graphics.ArbPointParameters)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58223,7 +76527,14 @@ namespace OpenTK.Graphics public static unsafe void PointParameterv(OpenTK.Graphics.ArbPointParameters pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfvARB((OpenTK.Graphics.ArbPointParameters)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58231,6 +76542,10 @@ namespace OpenTK.Graphics public static void Weight(Int32 size, SByte[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* weights_ptr = weights) @@ -58238,6 +76553,9 @@ namespace OpenTK.Graphics Delegates.glWeightbvARB((Int32)size, (SByte*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58245,6 +76563,10 @@ namespace OpenTK.Graphics public static void Weight(Int32 size, ref SByte weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* weights_ptr = &weights) @@ -58252,6 +76574,9 @@ namespace OpenTK.Graphics Delegates.glWeightbvARB((Int32)size, (SByte*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58259,13 +76584,24 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, SByte* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightbvARB((Int32)size, (SByte*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightsvARB")] public static void Weight(Int32 size, Int16[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* weights_ptr = weights) @@ -58273,12 +76609,19 @@ namespace OpenTK.Graphics Delegates.glWeightsvARB((Int32)size, (Int16*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightsvARB")] public static void Weight(Int32 size, ref Int16 weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* weights_ptr = &weights) @@ -58286,6 +76629,9 @@ namespace OpenTK.Graphics Delegates.glWeightsvARB((Int32)size, (Int16*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58293,13 +76639,24 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, Int16* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightsvARB((Int32)size, (Int16*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightivARB")] public static void Weight(Int32 size, Int32[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* weights_ptr = weights) @@ -58307,12 +76664,19 @@ namespace OpenTK.Graphics Delegates.glWeightivARB((Int32)size, (Int32*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightivARB")] public static void Weight(Int32 size, ref Int32 weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* weights_ptr = &weights) @@ -58320,6 +76684,9 @@ namespace OpenTK.Graphics Delegates.glWeightivARB((Int32)size, (Int32*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58327,13 +76694,24 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, Int32* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightivARB((Int32)size, (Int32*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightfvARB")] public static void Weight(Int32 size, Single[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weights_ptr = weights) @@ -58341,12 +76719,19 @@ namespace OpenTK.Graphics Delegates.glWeightfvARB((Int32)size, (Single*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightfvARB")] public static void Weight(Int32 size, ref Single weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weights_ptr = &weights) @@ -58354,6 +76739,9 @@ namespace OpenTK.Graphics Delegates.glWeightfvARB((Int32)size, (Single*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58361,13 +76749,24 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, Single* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightfvARB((Int32)size, (Single*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightdvARB")] public static void Weight(Int32 size, Double[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* weights_ptr = weights) @@ -58375,12 +76774,19 @@ namespace OpenTK.Graphics Delegates.glWeightdvARB((Int32)size, (Double*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightdvARB")] public static void Weight(Int32 size, ref Double weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* weights_ptr = &weights) @@ -58388,6 +76794,9 @@ namespace OpenTK.Graphics Delegates.glWeightdvARB((Int32)size, (Double*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58395,13 +76804,24 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, Double* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightdvARB((Int32)size, (Double*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightubvARB")] public static void Weight(Int32 size, Byte[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* weights_ptr = weights) @@ -58409,12 +76829,19 @@ namespace OpenTK.Graphics Delegates.glWeightubvARB((Int32)size, (Byte*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightubvARB")] public static void Weight(Int32 size, ref Byte weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* weights_ptr = &weights) @@ -58422,6 +76849,9 @@ namespace OpenTK.Graphics Delegates.glWeightubvARB((Int32)size, (Byte*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58429,7 +76859,14 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, Byte* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightubvARB((Int32)size, (Byte*)weights); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58437,6 +76874,10 @@ namespace OpenTK.Graphics public static void Weight(Int32 size, UInt16[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* weights_ptr = weights) @@ -58444,6 +76885,9 @@ namespace OpenTK.Graphics Delegates.glWeightusvARB((Int32)size, (UInt16*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58451,6 +76895,10 @@ namespace OpenTK.Graphics public static void Weight(Int32 size, ref UInt16 weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* weights_ptr = &weights) @@ -58458,6 +76906,9 @@ namespace OpenTK.Graphics Delegates.glWeightusvARB((Int32)size, (UInt16*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58465,7 +76916,14 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, UInt16* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightusvARB((Int32)size, (UInt16*)weights); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58473,6 +76931,10 @@ namespace OpenTK.Graphics public static void Weight(Int32 size, UInt32[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* weights_ptr = weights) @@ -58480,6 +76942,9 @@ namespace OpenTK.Graphics Delegates.glWeightuivARB((Int32)size, (UInt32*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58487,6 +76952,10 @@ namespace OpenTK.Graphics public static void Weight(Int32 size, ref UInt32 weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* weights_ptr = &weights) @@ -58494,6 +76963,9 @@ namespace OpenTK.Graphics Delegates.glWeightuivARB((Int32)size, (UInt32*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58501,17 +76973,28 @@ namespace OpenTK.Graphics public static unsafe void Weight(Int32 size, UInt32* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWeightuivARB((Int32)size, (UInt32*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightPointerARB")] public static void WeightPointer(Int32 size, OpenTK.Graphics.ArbVertexBlend type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightPointerARB")] @@ -58519,18 +77002,22 @@ namespace OpenTK.Graphics void WeightPointer(Int32 size, OpenTK.Graphics.ArbVertexBlend type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightPointerARB")] @@ -58538,18 +77025,22 @@ namespace OpenTK.Graphics void WeightPointer(Int32 size, OpenTK.Graphics.ArbVertexBlend type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightPointerARB")] @@ -58557,18 +77048,22 @@ namespace OpenTK.Graphics void WeightPointer(Int32 size, OpenTK.Graphics.ArbVertexBlend type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glWeightPointerARB")] @@ -58576,38 +77071,60 @@ namespace OpenTK.Graphics void WeightPointer(Int32 size, OpenTK.Graphics.ArbVertexBlend type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerARB((Int32)size, (OpenTK.Graphics.ArbVertexBlend)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBlend", Version = "1.1", EntryPoint = "glVertexBlendARB")] public static void VertexBlend(Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexBlendARB((Int32)count); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glCurrentPaletteMatrixARB")] public static void CurrentPaletteMatrix(Int32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCurrentPaletteMatrixARB((Int32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexubvARB")] public static void MatrixIndex(Int32 size, Byte[] indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* indices_ptr = indices) @@ -58615,12 +77132,19 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexubvARB((Int32)size, (Byte*)indices_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexubvARB")] public static void MatrixIndex(Int32 size, ref Byte indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* indices_ptr = &indices) @@ -58628,6 +77152,9 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexubvARB((Int32)size, (Byte*)indices_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58635,7 +77162,14 @@ namespace OpenTK.Graphics public static unsafe void MatrixIndex(Int32 size, Byte* indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixIndexubvARB((Int32)size, (Byte*)indices); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58643,6 +77177,10 @@ namespace OpenTK.Graphics public static void MatrixIndex(Int32 size, UInt16[] indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* indices_ptr = indices) @@ -58650,12 +77188,19 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexusvARB((Int32)size, (UInt16*)indices_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexusvARB")] public static void MatrixIndex(Int32 size, Int16[] indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* indices_ptr = indices) @@ -58663,6 +77208,9 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexusvARB((Int32)size, (UInt16*)indices_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58670,6 +77218,10 @@ namespace OpenTK.Graphics public static void MatrixIndex(Int32 size, ref UInt16 indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* indices_ptr = &indices) @@ -58677,12 +77229,19 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexusvARB((Int32)size, (UInt16*)indices_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexusvARB")] public static void MatrixIndex(Int32 size, ref Int16 indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* indices_ptr = &indices) @@ -58690,6 +77249,9 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexusvARB((Int32)size, (UInt16*)indices_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58697,7 +77259,14 @@ namespace OpenTK.Graphics public static unsafe void MatrixIndex(Int32 size, UInt16* indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixIndexusvARB((Int32)size, (UInt16*)indices); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58705,7 +77274,14 @@ namespace OpenTK.Graphics public static unsafe void MatrixIndex(Int32 size, Int16* indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixIndexusvARB((Int32)size, (UInt16*)indices); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58713,6 +77289,10 @@ namespace OpenTK.Graphics public static void MatrixIndex(Int32 size, UInt32[] indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* indices_ptr = indices) @@ -58720,12 +77300,19 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexuivARB((Int32)size, (UInt32*)indices_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexuivARB")] public static void MatrixIndex(Int32 size, Int32[] indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* indices_ptr = indices) @@ -58733,6 +77320,9 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexuivARB((Int32)size, (UInt32*)indices_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58740,6 +77330,10 @@ namespace OpenTK.Graphics public static void MatrixIndex(Int32 size, ref UInt32 indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* indices_ptr = &indices) @@ -58747,12 +77341,19 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexuivARB((Int32)size, (UInt32*)indices_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexuivARB")] public static void MatrixIndex(Int32 size, ref Int32 indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* indices_ptr = &indices) @@ -58760,6 +77361,9 @@ namespace OpenTK.Graphics Delegates.glMatrixIndexuivARB((Int32)size, (UInt32*)indices_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58767,7 +77371,14 @@ namespace OpenTK.Graphics public static unsafe void MatrixIndex(Int32 size, UInt32* indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixIndexuivARB((Int32)size, (UInt32*)indices); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -58775,17 +77386,28 @@ namespace OpenTK.Graphics public static unsafe void MatrixIndex(Int32 size, Int32* indices) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixIndexuivARB((Int32)size, (UInt32*)indices); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexPointerARB")] public static void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ArbMatrixPalette type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexPointerARB")] @@ -58793,18 +77415,22 @@ namespace OpenTK.Graphics void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ArbMatrixPalette type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexPointerARB")] @@ -58812,18 +77438,22 @@ namespace OpenTK.Graphics void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ArbMatrixPalette type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexPointerARB")] @@ -58831,18 +77461,22 @@ namespace OpenTK.Graphics void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ArbMatrixPalette type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbMatrixPalette", Version = "1.1", EntryPoint = "glMatrixIndexPointerARB")] @@ -58850,18 +77484,22 @@ namespace OpenTK.Graphics void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ArbMatrixPalette type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerARB((Int32)size, (OpenTK.Graphics.ArbMatrixPalette)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -58877,7 +77515,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2dARB((Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -58893,6 +77538,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -58900,6 +77549,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2dvARB((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -58915,6 +77567,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -58922,6 +77578,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2dvARB((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -58938,7 +77597,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2dvARB((Double*)v); + #if DEBUG + } + #endif } @@ -58954,7 +77620,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2fARB((Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -58970,6 +77643,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -58977,6 +77654,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2fvARB((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -58992,6 +77672,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -58999,6 +77683,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2fvARB((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59015,7 +77702,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2fvARB((Single*)v); + #if DEBUG + } + #endif } @@ -59031,7 +77725,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2iARB((Int32)x, (Int32)y); + #if DEBUG + } + #endif } @@ -59047,6 +77748,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -59054,6 +77759,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2ivARB((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59069,6 +77777,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -59076,6 +77788,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2ivARB((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59092,7 +77807,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2ivARB((Int32*)v); + #if DEBUG + } + #endif } @@ -59108,7 +77830,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2sARB((Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -59124,6 +77853,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -59131,6 +77864,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2svARB((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59146,6 +77882,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -59153,6 +77893,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2svARB((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59169,7 +77912,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2svARB((Int16*)v); + #if DEBUG + } + #endif } @@ -59185,7 +77935,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3dARB((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -59201,6 +77958,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -59208,6 +77969,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3dvARB((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59223,6 +77987,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -59230,6 +77998,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3dvARB((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59246,7 +78017,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3dvARB((Double*)v); + #if DEBUG + } + #endif } @@ -59262,7 +78040,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3fARB((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -59278,6 +78063,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -59285,6 +78074,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3fvARB((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59300,6 +78092,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -59307,6 +78103,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3fvARB((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59323,7 +78122,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3fvARB((Single*)v); + #if DEBUG + } + #endif } @@ -59339,7 +78145,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3iARB((Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } @@ -59355,6 +78168,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -59362,6 +78179,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3ivARB((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59377,6 +78197,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -59384,6 +78208,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3ivARB((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59400,7 +78227,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3ivARB((Int32*)v); + #if DEBUG + } + #endif } @@ -59416,7 +78250,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3sARB((Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -59432,6 +78273,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -59439,6 +78284,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3svARB((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59454,6 +78302,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -59461,6 +78313,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3svARB((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59477,7 +78332,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3svARB((Int16*)v); + #if DEBUG + } + #endif } @@ -59499,7 +78361,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Double x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dARB((UInt32)index, (Double)x); + #if DEBUG + } + #endif } @@ -59528,6 +78397,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -59535,12 +78408,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib1dvARB")] public static void VertexAttrib1v(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -59548,6 +78428,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59555,6 +78438,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -59562,12 +78449,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib1dvARB")] public static void VertexAttrib1v(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -59575,6 +78469,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59582,7 +78479,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59590,7 +78494,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -59612,7 +78523,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Single x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fARB((UInt32)index, (Single)x); + #if DEBUG + } + #endif } @@ -59641,6 +78559,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -59648,12 +78570,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib1fvARB")] public static void VertexAttrib1v(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -59661,6 +78590,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59668,6 +78600,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -59675,12 +78611,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib1fvARB")] public static void VertexAttrib1v(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -59688,6 +78631,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59695,7 +78641,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59703,7 +78656,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -59725,7 +78685,14 @@ namespace OpenTK.Graphics public static void VertexAttrib1(UInt32 index, Int16 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1sARB((UInt32)index, (Int16)x); + #if DEBUG + } + #endif } @@ -59754,6 +78721,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -59761,12 +78732,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib1svARB")] public static void VertexAttrib1v(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -59774,6 +78752,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59781,6 +78762,10 @@ namespace OpenTK.Graphics public static void VertexAttrib1v(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -59788,12 +78773,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib1svARB")] public static void VertexAttrib1v(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -59801,6 +78793,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib1svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59808,7 +78803,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -59816,7 +78818,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib1v(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib1svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -59838,7 +78847,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dARB((UInt32)index, (Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -59881,6 +78897,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -59888,6 +78908,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59908,6 +78931,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -59915,6 +78942,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59936,6 +78966,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -59943,6 +78977,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59963,6 +79000,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -59970,6 +79011,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -59991,7 +79035,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -60013,7 +79064,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -60035,7 +79093,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fARB((UInt32)index, (Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -60078,6 +79143,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -60085,6 +79154,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60105,6 +79177,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -60112,6 +79188,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60133,6 +79212,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -60140,6 +79223,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60160,6 +79246,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -60167,6 +79257,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60188,7 +79281,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -60210,7 +79310,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -60232,7 +79339,14 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2sARB((UInt32)index, (Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -60275,6 +79389,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -60282,6 +79400,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60302,6 +79423,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -60309,6 +79434,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60330,6 +79458,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -60337,6 +79469,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60357,6 +79492,10 @@ namespace OpenTK.Graphics public static void VertexAttrib2(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -60364,6 +79503,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib2svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60385,7 +79527,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -60407,7 +79556,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib2(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib2svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -60429,7 +79585,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dARB((UInt32)index, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -60472,6 +79635,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -60479,6 +79646,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60499,6 +79669,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -60506,6 +79680,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60527,6 +79704,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -60534,6 +79715,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60554,6 +79738,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -60561,6 +79749,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60582,7 +79773,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -60604,7 +79802,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -60626,7 +79831,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fARB((UInt32)index, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -60669,6 +79881,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -60676,6 +79892,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60696,6 +79915,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -60703,6 +79926,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60724,6 +79950,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -60731,6 +79961,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60751,6 +79984,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -60758,6 +79995,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60779,7 +80019,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -60801,7 +80048,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -60823,7 +80077,14 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3sARB((UInt32)index, (Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -60866,6 +80127,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -60873,6 +80138,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60893,6 +80161,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -60900,6 +80172,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60921,6 +80196,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -60928,6 +80207,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60948,6 +80230,10 @@ namespace OpenTK.Graphics public static void VertexAttrib3(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -60955,6 +80241,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib3svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -60976,7 +80265,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -60998,7 +80294,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib3(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib3svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61006,6 +80309,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -61013,6 +80320,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NbvARB((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61020,6 +80330,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -61027,6 +80341,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NbvARB((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61034,7 +80351,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NbvARB((UInt32)index, (SByte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61042,6 +80366,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -61049,12 +80377,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NivARB")] public static void VertexAttrib4N(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -61062,6 +80397,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61069,6 +80407,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -61076,12 +80418,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NivARB")] public static void VertexAttrib4N(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -61089,6 +80438,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61096,7 +80448,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NivARB((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61104,7 +80463,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NivARB((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61112,6 +80478,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -61119,12 +80489,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NsvARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NsvARB")] public static void VertexAttrib4N(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -61132,6 +80509,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NsvARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61139,6 +80519,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -61146,12 +80530,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NsvARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NsvARB")] public static void VertexAttrib4N(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -61159,6 +80550,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NsvARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61166,7 +80560,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NsvARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61174,7 +80575,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NsvARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61182,7 +80590,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Byte x, Byte y, Byte z, Byte w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NubARB((UInt32)index, (Byte)x, (Byte)y, (Byte)z, (Byte)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NubARB")] @@ -61197,6 +80612,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -61204,12 +80623,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NubvARB")] public static void VertexAttrib4N(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -61217,6 +80643,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61224,6 +80653,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -61231,12 +80664,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glVertexAttrib4NubvARB")] public static void VertexAttrib4N(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -61244,6 +80684,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61251,7 +80694,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NubvARB((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61259,7 +80709,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NubvARB((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61267,6 +80724,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -61274,6 +80735,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NuivARB((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61281,6 +80745,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -61288,6 +80756,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NuivARB((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61295,7 +80766,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NuivARB((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61303,6 +80781,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -61310,6 +80792,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NusvARB((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61317,6 +80802,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4N(UInt32 index, ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -61324,6 +80813,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4NusvARB((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -61331,7 +80823,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4N(UInt32 index, UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4NusvARB((UInt32)index, (UInt16*)v); + #if DEBUG + } + #endif } @@ -61353,6 +80852,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -61360,6 +80863,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4bvARB((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61381,6 +80887,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -61388,6 +80898,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4bvARB((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61409,7 +80922,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4bvARB((UInt32)index, (SByte*)v); + #if DEBUG + } + #endif } @@ -61431,7 +80951,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dARB((UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } @@ -61474,6 +81001,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -61481,6 +81012,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61501,6 +81035,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -61508,6 +81046,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61529,6 +81070,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -61536,6 +81081,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61556,6 +81104,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -61563,6 +81115,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4dvARB((UInt32)index, (Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61584,7 +81139,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -61606,7 +81168,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4dvARB((UInt32)index, (Double*)v); + #if DEBUG + } + #endif } @@ -61628,7 +81197,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fARB((UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } @@ -61671,6 +81247,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -61678,6 +81258,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61698,6 +81281,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -61705,6 +81292,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61726,6 +81316,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -61733,6 +81327,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61753,6 +81350,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -61760,6 +81361,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4fvARB((UInt32)index, (Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61781,7 +81385,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -61803,7 +81414,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4fvARB((UInt32)index, (Single*)v); + #if DEBUG + } + #endif } @@ -61825,6 +81443,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -61832,6 +81454,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61852,6 +81477,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -61859,6 +81488,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61880,6 +81512,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -61887,6 +81523,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61907,6 +81546,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -61914,6 +81557,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ivARB((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -61935,7 +81581,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ivARB((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } @@ -61957,7 +81610,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ivARB((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } @@ -61979,7 +81639,14 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4sARB((UInt32)index, (Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } @@ -62022,6 +81689,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -62029,6 +81700,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62049,6 +81723,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -62056,6 +81734,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62077,6 +81758,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -62084,6 +81769,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62104,6 +81792,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -62111,6 +81803,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4svARB((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62132,7 +81827,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -62154,7 +81856,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4svARB((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } @@ -62176,6 +81885,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -62183,6 +81896,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62203,6 +81919,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -62210,6 +81930,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62231,6 +81954,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -62238,6 +81965,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62258,6 +81988,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -62265,6 +81999,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4ubvARB((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62286,7 +82023,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubvARB((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } @@ -62308,7 +82052,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4ubvARB((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } @@ -62330,6 +82081,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -62337,6 +82092,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4uivARB((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62358,6 +82116,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -62365,6 +82127,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4uivARB((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62386,7 +82151,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4uivARB((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } @@ -62408,6 +82180,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -62415,6 +82191,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4usvARB((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62436,6 +82215,10 @@ namespace OpenTK.Graphics public static void VertexAttrib4(UInt32 index, ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -62443,6 +82226,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttrib4usvARB((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -62464,7 +82250,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttrib4(UInt32 index, UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttrib4usvARB((UInt32)index, (UInt16*)v); + #if DEBUG + } + #endif } @@ -62506,10 +82299,14 @@ namespace OpenTK.Graphics public static void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -62550,10 +82347,14 @@ namespace OpenTK.Graphics public static void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -62596,18 +82397,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] ref T5 pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62649,18 +82454,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] ref T5 pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62703,18 +82512,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] T5[] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62756,18 +82569,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] T5[] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62810,18 +82627,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] T5[,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62863,18 +82684,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] T5[,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62917,18 +82742,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] T5[,,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62970,18 +82799,22 @@ namespace OpenTK.Graphics void VertexAttribPointer(Int32 index, Int32 size, OpenTK.Graphics.VertexAttribPointerTypeArb type, bool normalized, Int32 stride, [In, Out] T5[,,] pointer) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointerARB((UInt32)index, (Int32)size, (OpenTK.Graphics.VertexAttribPointerTypeArb)type, (bool)normalized, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -62998,7 +82831,14 @@ namespace OpenTK.Graphics public static void EnableVertexAttribArray(UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnableVertexAttribArrayARB((UInt32)index); + #if DEBUG + } + #endif } @@ -63022,7 +82862,14 @@ namespace OpenTK.Graphics public static void DisableVertexAttribArray(UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisableVertexAttribArrayARB((UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glDisableVertexAttribArrayARB")] @@ -63036,10 +82883,14 @@ namespace OpenTK.Graphics public static void ProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramFormatArb format, Int32 len, IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string); + #endif + Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramStringARB")] @@ -63047,18 +82898,22 @@ namespace OpenTK.Graphics void ProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramFormatArb format, Int32 len, [In, Out] ref T3 @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramStringARB")] @@ -63066,18 +82921,22 @@ namespace OpenTK.Graphics void ProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramFormatArb format, Int32 len, [In, Out] T3[] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramStringARB")] @@ -63085,18 +82944,22 @@ namespace OpenTK.Graphics void ProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramFormatArb format, Int32 len, [In, Out] T3[,] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramStringARB")] @@ -63104,18 +82967,22 @@ namespace OpenTK.Graphics void ProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramFormatArb format, Int32 len, [In, Out] T3[,,] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramFormatArb)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63123,7 +82990,14 @@ namespace OpenTK.Graphics public static void BindProgram(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindProgramARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)program); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glBindProgramARB")] @@ -63147,6 +83021,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, UInt32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = programs) @@ -63154,6 +83032,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsARB((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -63169,6 +83050,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, Int32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = programs) @@ -63176,6 +83061,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsARB((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -63192,6 +83080,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, ref UInt32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = &programs) @@ -63199,6 +83091,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsARB((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -63214,6 +83109,10 @@ namespace OpenTK.Graphics public static void DeleteProgram(Int32 n, ref Int32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = &programs) @@ -63221,6 +83120,9 @@ namespace OpenTK.Graphics Delegates.glDeleteProgramsARB((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } @@ -63237,7 +83139,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteProgram(Int32 n, UInt32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteProgramsARB((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } @@ -63254,7 +83163,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteProgram(Int32 n, Int32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteProgramsARB((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63262,6 +83178,10 @@ namespace OpenTK.Graphics public static void GenProgram(Int32 n, [Out] UInt32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = programs) @@ -63269,12 +83189,19 @@ namespace OpenTK.Graphics Delegates.glGenProgramsARB((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGenProgramsARB")] public static void GenProgram(Int32 n, [Out] Int32[] programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = programs) @@ -63282,6 +83209,9 @@ namespace OpenTK.Graphics Delegates.glGenProgramsARB((Int32)n, (UInt32*)programs_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63289,6 +83219,10 @@ namespace OpenTK.Graphics public static void GenProgram(Int32 n, [Out] out UInt32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* programs_ptr = &programs) @@ -63297,12 +83231,19 @@ namespace OpenTK.Graphics programs = *programs_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGenProgramsARB")] public static void GenProgram(Int32 n, [Out] out Int32 programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* programs_ptr = &programs) @@ -63311,6 +83252,9 @@ namespace OpenTK.Graphics programs = *programs_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63318,7 +83262,14 @@ namespace OpenTK.Graphics public static unsafe void GenProgram(Int32 n, [Out] UInt32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenProgramsARB((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63326,7 +83277,14 @@ namespace OpenTK.Graphics public static unsafe void GenProgram(Int32 n, [Out] Int32* programs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenProgramsARB((Int32)n, (UInt32*)programs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63334,7 +83292,14 @@ namespace OpenTK.Graphics public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameter4dARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramEnvParameter4dARB")] @@ -63349,6 +83314,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63356,12 +83325,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramEnvParameter4dvARB")] public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63369,6 +83345,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63376,6 +83355,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63383,12 +83366,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramEnvParameter4dvARB")] public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63396,6 +83386,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63403,7 +83396,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63411,7 +83411,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63419,7 +83426,14 @@ namespace OpenTK.Graphics public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameter4fARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramEnvParameter4fARB")] @@ -63434,6 +83448,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63441,12 +83459,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramEnvParameter4fvARB")] public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63454,6 +83479,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63461,6 +83489,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63468,12 +83500,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramEnvParameter4fvARB")] public static void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63481,6 +83520,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63488,7 +83530,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63496,7 +83545,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63504,7 +83560,14 @@ namespace OpenTK.Graphics public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameter4dARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramLocalParameter4dARB")] @@ -63519,6 +83582,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63526,12 +83593,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramLocalParameter4dvARB")] public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63539,6 +83613,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63546,6 +83623,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63553,12 +83634,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramLocalParameter4dvARB")] public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63566,6 +83654,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63573,7 +83664,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63581,7 +83679,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameter4dvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63589,7 +83694,14 @@ namespace OpenTK.Graphics public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameter4fARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramLocalParameter4fARB")] @@ -63604,6 +83716,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63611,12 +83727,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramLocalParameter4fvARB")] public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63624,6 +83747,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63631,6 +83757,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63638,12 +83768,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramLocalParameter4fvARB")] public static void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63651,6 +83788,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63658,7 +83798,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63666,7 +83813,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameter4fvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63674,6 +83828,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63681,12 +83839,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramEnvParameterdvARB")] public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63694,6 +83859,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63701,6 +83869,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63709,12 +83881,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramEnvParameterdvARB")] public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63723,6 +83902,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63730,7 +83912,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63738,7 +83927,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63746,6 +83942,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63753,12 +83953,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramEnvParameterfvARB")] public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63766,6 +83973,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramEnvParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63773,6 +83983,10 @@ namespace OpenTK.Graphics public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63781,12 +83995,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramEnvParameterfvARB")] public static void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63795,6 +84016,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63802,7 +84026,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63810,7 +84041,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramEnvParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramEnvParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63818,6 +84056,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63825,12 +84067,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramLocalParameterdvARB")] public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -63838,6 +84087,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63845,6 +84097,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63853,12 +84109,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramLocalParameterdvARB")] public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -63867,6 +84130,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63874,7 +84140,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63882,7 +84155,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterdvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63890,6 +84170,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63897,12 +84181,19 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramLocalParameterfvARB")] public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -63910,6 +84201,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramLocalParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63917,6 +84211,10 @@ namespace OpenTK.Graphics public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63925,12 +84223,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramLocalParameterfvARB")] public static void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -63939,6 +84244,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63946,7 +84254,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, UInt32 index, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -63954,7 +84269,14 @@ namespace OpenTK.Graphics public static unsafe void GetProgramLocalParameter(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 index, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramLocalParameterfvARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } @@ -63980,6 +84302,10 @@ namespace OpenTK.Graphics public static void GetProgram(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramParameterArb pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -63987,6 +84313,9 @@ namespace OpenTK.Graphics Delegates.glGetProgramivARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramParameterArb)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64012,6 +84341,10 @@ namespace OpenTK.Graphics public static void GetProgram(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramParameterArb pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -64020,6 +84353,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64046,17 +84382,28 @@ namespace OpenTK.Graphics public static unsafe void GetProgram(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramParameterArb pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetProgramivARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramParameterArb)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramStringARB")] public static void GetProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramStringParameterArb pname, [Out] IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string); + #endif + Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramStringARB")] @@ -64064,18 +84411,22 @@ namespace OpenTK.Graphics void GetProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramStringParameterArb pname, [In, Out] ref T2 @string) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramStringARB")] @@ -64083,18 +84434,22 @@ namespace OpenTK.Graphics void GetProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramStringParameterArb pname, [In, Out] T2[] @string) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramStringARB")] @@ -64102,18 +84457,22 @@ namespace OpenTK.Graphics void GetProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramStringParameterArb pname, [In, Out] T2[,] @string) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetProgramStringARB")] @@ -64121,18 +84480,22 @@ namespace OpenTK.Graphics void GetProgramString(OpenTK.Graphics.AssemblyProgramTargetArb target, OpenTK.Graphics.AssemblyProgramStringParameterArb pname, [In, Out] T2[,,] @string) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetProgramStringARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (OpenTK.Graphics.AssemblyProgramStringParameterArb)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -64159,6 +84522,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -64166,6 +84533,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribdvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64191,6 +84561,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -64198,6 +84572,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribdvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64224,6 +84601,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -64232,6 +84613,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64257,6 +84641,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -64265,6 +84653,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64291,7 +84682,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribdvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -64318,7 +84716,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribdvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Double*)@params); + #if DEBUG + } + #endif } @@ -64345,6 +84750,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -64352,6 +84761,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribfvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64377,6 +84789,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -64384,6 +84800,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribfvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64410,6 +84829,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -64418,6 +84841,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64443,6 +84869,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -64451,6 +84881,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64477,7 +84910,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribfvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -64504,7 +84944,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribfvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -64531,6 +84978,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -64538,6 +84989,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribivARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64563,6 +85017,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -64570,6 +85028,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribivARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -64596,6 +85057,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -64604,6 +85069,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64629,6 +85097,10 @@ namespace OpenTK.Graphics public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -64637,6 +85109,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -64663,7 +85138,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribivARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -64690,7 +85172,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribivARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -64698,20 +85187,28 @@ namespace OpenTK.Graphics public static void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer); + #endif + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetVertexAttribPointervARB")] public static void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer); + #endif + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -64720,18 +85217,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetVertexAttribPointervARB")] @@ -64739,18 +85240,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -64759,18 +85264,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetVertexAttribPointervARB")] @@ -64778,18 +85287,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -64798,18 +85311,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetVertexAttribPointervARB")] @@ -64817,18 +85334,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -64837,18 +85358,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glGetVertexAttribPointervARB")] @@ -64856,18 +85381,22 @@ namespace OpenTK.Graphics void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.VertexAttribPointerParameterArb pname, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointervARB((UInt32)index, (OpenTK.Graphics.VertexAttribPointerParameterArb)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -64884,7 +85413,14 @@ namespace OpenTK.Graphics public static bool IsProgram(UInt32 program) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsProgramARB((UInt32)program); + #if DEBUG + } + #endif } @@ -64922,7 +85458,14 @@ namespace OpenTK.Graphics public static void BindBuffer(OpenTK.Graphics.BufferTargetArb target, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferARB((OpenTK.Graphics.BufferTargetArb)target, (UInt32)buffer); + #if DEBUG + } + #endif } @@ -64965,6 +85508,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, UInt32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = buffers) @@ -64972,6 +85519,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffersARB((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -64992,6 +85542,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, Int32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = buffers) @@ -64999,6 +85553,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffersARB((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -65020,6 +85577,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, ref UInt32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = &buffers) @@ -65027,6 +85588,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffersARB((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -65047,6 +85611,10 @@ namespace OpenTK.Graphics public static void DeleteBuffers(Int32 n, ref Int32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = &buffers) @@ -65054,6 +85622,9 @@ namespace OpenTK.Graphics Delegates.glDeleteBuffersARB((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -65075,7 +85646,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteBuffers(Int32 n, UInt32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteBuffersARB((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -65097,7 +85675,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteBuffers(Int32 n, Int32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteBuffersARB((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -65119,6 +85704,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] UInt32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = buffers) @@ -65126,6 +85715,9 @@ namespace OpenTK.Graphics Delegates.glGenBuffersARB((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -65146,6 +85738,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] Int32[] buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = buffers) @@ -65153,6 +85749,9 @@ namespace OpenTK.Graphics Delegates.glGenBuffersARB((Int32)n, (UInt32*)buffers_ptr); } } + #if DEBUG + } + #endif } @@ -65174,6 +85773,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] out UInt32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* buffers_ptr = &buffers) @@ -65182,6 +85785,9 @@ namespace OpenTK.Graphics buffers = *buffers_ptr; } } + #if DEBUG + } + #endif } @@ -65202,6 +85808,10 @@ namespace OpenTK.Graphics public static void GenBuffers(Int32 n, [Out] out Int32 buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffers_ptr = &buffers) @@ -65210,6 +85820,9 @@ namespace OpenTK.Graphics buffers = *buffers_ptr; } } + #if DEBUG + } + #endif } @@ -65231,7 +85844,14 @@ namespace OpenTK.Graphics public static unsafe void GenBuffers(Int32 n, [Out] UInt32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenBuffersARB((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -65253,7 +85873,14 @@ namespace OpenTK.Graphics public static unsafe void GenBuffers(Int32 n, [Out] Int32* buffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenBuffersARB((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif } @@ -65270,7 +85897,14 @@ namespace OpenTK.Graphics public static bool IsBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsBufferARB((UInt32)buffer); + #if DEBUG + } + #endif } @@ -65317,10 +85951,14 @@ namespace OpenTK.Graphics public static void BufferData(OpenTK.Graphics.BufferTargetArb target, IntPtr size, IntPtr data, OpenTK.Graphics.BufferUsageArb usage) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.BufferUsageArb)usage); + #endif + Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.BufferUsageArb)usage); + #if DEBUG } + #endif } @@ -65352,18 +85990,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTargetArb target, IntPtr size, [In, Out] ref T2 data, OpenTK.Graphics.BufferUsageArb usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65395,18 +86037,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTargetArb target, IntPtr size, [In, Out] T2[] data, OpenTK.Graphics.BufferUsageArb usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65438,18 +86084,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTargetArb target, IntPtr size, [In, Out] T2[,] data, OpenTK.Graphics.BufferUsageArb usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65481,18 +86131,22 @@ namespace OpenTK.Graphics void BufferData(OpenTK.Graphics.BufferTargetArb target, IntPtr size, [In, Out] T2[,,] data, OpenTK.Graphics.BufferUsageArb usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.BufferUsageArb)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65523,10 +86177,14 @@ namespace OpenTK.Graphics public static void BufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } @@ -65558,18 +86216,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65601,18 +86263,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65644,18 +86310,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65687,18 +86357,22 @@ namespace OpenTK.Graphics void BufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65729,10 +86403,14 @@ namespace OpenTK.Graphics public static void GetBufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } @@ -65764,18 +86442,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65807,18 +86489,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65850,18 +86536,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65893,18 +86583,22 @@ namespace OpenTK.Graphics void GetBufferSubData(OpenTK.Graphics.BufferTargetArb target, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetBufferSubDataARB((OpenTK.Graphics.BufferTargetArb)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -65926,20 +86620,38 @@ namespace OpenTK.Graphics public static unsafe IntPtr MapBuffer(OpenTK.Graphics.BufferTargetArb target, OpenTK.Graphics.BufferAccessArb access) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glMapBufferARB((OpenTK.Graphics.BufferTargetArb)target, (OpenTK.Graphics.BufferAccessArb)access); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glUnmapBufferARB")] public static bool UnmapBuffer(OpenTK.Graphics.BufferTargetArb target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glUnmapBufferARB((OpenTK.Graphics.BufferTargetArb)target); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferParameterivARB")] public static void GetBufferParameter(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferParameterNameArb pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -65947,12 +86659,19 @@ namespace OpenTK.Graphics Delegates.glGetBufferParameterivARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferParameterNameArb)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferParameterivARB")] public static void GetBufferParameter(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferParameterNameArb pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -65961,6 +86680,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -65968,17 +86690,28 @@ namespace OpenTK.Graphics public static unsafe void GetBufferParameter(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferParameterNameArb pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBufferParameterivARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferParameterNameArb)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferPointervARB")] public static void GetBufferPointer(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferPointerNameArb pname, [Out] IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params); + #endif + Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferPointervARB")] @@ -65986,18 +86719,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferPointerNameArb pname, [In, Out] ref T2 @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferPointervARB")] @@ -66005,18 +86742,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferPointerNameArb pname, [In, Out] T2[] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferPointervARB")] @@ -66024,18 +86765,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferPointerNameArb pname, [In, Out] T2[,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glGetBufferPointervARB")] @@ -66043,18 +86788,22 @@ namespace OpenTK.Graphics void GetBufferPointer(OpenTK.Graphics.ArbVertexBufferObject target, OpenTK.Graphics.BufferPointerNameArb pname, [In, Out] T2[,,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervARB((OpenTK.Graphics.ArbVertexBufferObject)target, (OpenTK.Graphics.BufferPointerNameArb)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -66076,6 +86825,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -66083,6 +86836,9 @@ namespace OpenTK.Graphics Delegates.glGenQueriesARB((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -66103,6 +86859,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -66110,6 +86870,9 @@ namespace OpenTK.Graphics Delegates.glGenQueriesARB((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -66131,6 +86894,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] out UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -66139,6 +86906,9 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } @@ -66159,6 +86929,10 @@ namespace OpenTK.Graphics public static void GenQueries(Int32 n, [Out] out Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -66167,6 +86941,9 @@ namespace OpenTK.Graphics ids = *ids_ptr; } } + #if DEBUG + } + #endif } @@ -66188,7 +86965,14 @@ namespace OpenTK.Graphics public static unsafe void GenQueries(Int32 n, [Out] UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenQueriesARB((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -66210,7 +86994,14 @@ namespace OpenTK.Graphics public static unsafe void GenQueries(Int32 n, [Out] Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenQueriesARB((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -66232,6 +87023,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, UInt32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = ids) @@ -66239,6 +87034,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueriesARB((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -66259,6 +87057,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, Int32[] ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = ids) @@ -66266,6 +87068,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueriesARB((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -66287,6 +87092,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, ref UInt32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* ids_ptr = &ids) @@ -66294,6 +87103,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueriesARB((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -66314,6 +87126,10 @@ namespace OpenTK.Graphics public static void DeleteQueries(Int32 n, ref Int32 ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* ids_ptr = &ids) @@ -66321,6 +87137,9 @@ namespace OpenTK.Graphics Delegates.glDeleteQueriesARB((Int32)n, (UInt32*)ids_ptr); } } + #if DEBUG + } + #endif } @@ -66342,7 +87161,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteQueries(Int32 n, UInt32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteQueriesARB((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -66364,7 +87190,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteQueries(Int32 n, Int32* ids) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteQueriesARB((Int32)n, (UInt32*)ids); + #if DEBUG + } + #endif } @@ -66381,7 +87214,14 @@ namespace OpenTK.Graphics public static bool IsQuery(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsQueryARB((UInt32)id); + #if DEBUG + } + #endif } @@ -66419,7 +87259,14 @@ namespace OpenTK.Graphics public static void BeginQuery(OpenTK.Graphics.ArbOcclusionQuery target, UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginQueryARB((OpenTK.Graphics.ArbOcclusionQuery)target, (UInt32)id); + #if DEBUG + } + #endif } @@ -66447,13 +87294,24 @@ namespace OpenTK.Graphics public static void EndQuery(OpenTK.Graphics.ArbOcclusionQuery target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndQueryARB((OpenTK.Graphics.ArbOcclusionQuery)target); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbOcclusionQuery", Version = "1.5", EntryPoint = "glGetQueryivARB")] public static void GetQuery(OpenTK.Graphics.ArbOcclusionQuery target, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -66461,12 +87319,19 @@ namespace OpenTK.Graphics Delegates.glGetQueryivARB((OpenTK.Graphics.ArbOcclusionQuery)target, (OpenTK.Graphics.ArbOcclusionQuery)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbOcclusionQuery", Version = "1.5", EntryPoint = "glGetQueryivARB")] public static void GetQuery(OpenTK.Graphics.ArbOcclusionQuery target, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -66475,6 +87340,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -66482,7 +87350,14 @@ namespace OpenTK.Graphics public static unsafe void GetQuery(OpenTK.Graphics.ArbOcclusionQuery target, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryivARB((OpenTK.Graphics.ArbOcclusionQuery)target, (OpenTK.Graphics.ArbOcclusionQuery)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -66509,6 +87384,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -66516,6 +87395,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectivARB((UInt32)id, (OpenTK.Graphics.ArbOcclusionQuery)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -66541,6 +87423,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(Int32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -66548,6 +87434,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectivARB((UInt32)id, (OpenTK.Graphics.ArbOcclusionQuery)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -66574,6 +87463,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -66582,6 +87475,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -66607,6 +87503,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(Int32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -66615,6 +87515,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -66641,7 +87544,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectivARB((UInt32)id, (OpenTK.Graphics.ArbOcclusionQuery)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -66668,7 +87578,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObject(Int32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectivARB((UInt32)id, (OpenTK.Graphics.ArbOcclusionQuery)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -66695,6 +87612,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -66702,6 +87623,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectuivARB((UInt32)id, (OpenTK.Graphics.ArbOcclusionQuery)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -66728,6 +87652,10 @@ namespace OpenTK.Graphics public static void GetQueryObject(UInt32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -66736,6 +87664,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -66762,7 +87693,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObject(UInt32 id, OpenTK.Graphics.ArbOcclusionQuery pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectuivARB((UInt32)id, (OpenTK.Graphics.ArbOcclusionQuery)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -66770,7 +87708,14 @@ namespace OpenTK.Graphics public static void DeleteObject(UInt32 obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteObjectARB((UInt32)obj); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glDeleteObjectARB")] @@ -66784,7 +87729,14 @@ namespace OpenTK.Graphics public static Int32 GetHandle(OpenTK.Graphics.ArbShaderObjects pname) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetHandleARB((OpenTK.Graphics.ArbShaderObjects)pname); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -66792,7 +87744,14 @@ namespace OpenTK.Graphics public static void DetachObject(UInt32 containerObj, UInt32 attachedObj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDetachObjectARB((UInt32)containerObj, (UInt32)attachedObj); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glDetachObjectARB")] @@ -66806,7 +87765,14 @@ namespace OpenTK.Graphics public static Int32 CreateShaderObject(OpenTK.Graphics.ArbShaderObjects shaderType) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCreateShaderObjectARB((OpenTK.Graphics.ArbShaderObjects)shaderType); + #if DEBUG + } + #endif } @@ -66838,6 +87804,10 @@ namespace OpenTK.Graphics public static void ShaderSource(UInt32 shaderObj, Int32 count, String[] @string, Int32[] length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -66845,6 +87815,9 @@ namespace OpenTK.Graphics Delegates.glShaderSourceARB((UInt32)shaderObj, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -66875,6 +87848,10 @@ namespace OpenTK.Graphics public static void ShaderSource(Int32 shaderObj, Int32 count, String[] @string, Int32[] length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -66882,6 +87859,9 @@ namespace OpenTK.Graphics Delegates.glShaderSourceARB((UInt32)shaderObj, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -66913,6 +87893,10 @@ namespace OpenTK.Graphics public static void ShaderSource(UInt32 shaderObj, Int32 count, String[] @string, ref Int32 length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -66920,6 +87904,9 @@ namespace OpenTK.Graphics Delegates.glShaderSourceARB((UInt32)shaderObj, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -66950,6 +87937,10 @@ namespace OpenTK.Graphics public static void ShaderSource(Int32 shaderObj, Int32 count, String[] @string, ref Int32 length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -66957,6 +87948,9 @@ namespace OpenTK.Graphics Delegates.glShaderSourceARB((UInt32)shaderObj, (Int32)count, (String[])@string, (Int32*)length_ptr); } } + #if DEBUG + } + #endif } @@ -66988,7 +87982,14 @@ namespace OpenTK.Graphics public static unsafe void ShaderSource(UInt32 shaderObj, Int32 count, String[] @string, Int32* length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderSourceARB((UInt32)shaderObj, (Int32)count, (String[])@string, (Int32*)length); + #if DEBUG + } + #endif } @@ -67020,7 +88021,14 @@ namespace OpenTK.Graphics public static unsafe void ShaderSource(Int32 shaderObj, Int32 count, String[] @string, Int32* length) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderSourceARB((UInt32)shaderObj, (Int32)count, (String[])@string, (Int32*)length); + #if DEBUG + } + #endif } @@ -67037,7 +88045,14 @@ namespace OpenTK.Graphics public static void CompileShader(UInt32 shaderObj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCompileShaderARB((UInt32)shaderObj); + #if DEBUG + } + #endif } @@ -67060,7 +88075,14 @@ namespace OpenTK.Graphics public static Int32 CreateProgramObject() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCreateProgramObjectARB(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67068,7 +88090,14 @@ namespace OpenTK.Graphics public static void AttachObject(UInt32 containerObj, UInt32 obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAttachObjectARB((UInt32)containerObj, (UInt32)obj); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glAttachObjectARB")] @@ -67092,7 +88121,14 @@ namespace OpenTK.Graphics public static void LinkProgram(UInt32 programObj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLinkProgramARB((UInt32)programObj); + #if DEBUG + } + #endif } @@ -67116,7 +88152,14 @@ namespace OpenTK.Graphics public static void UseProgramObject(UInt32 programObj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUseProgramObjectARB((UInt32)programObj); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUseProgramObjectARB")] @@ -67140,7 +88183,14 @@ namespace OpenTK.Graphics public static void ValidateProgram(UInt32 programObj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glValidateProgramARB((UInt32)programObj); + #if DEBUG + } + #endif } @@ -67177,7 +88227,14 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Single v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1fARB((Int32)location, (Single)v0); + #if DEBUG + } + #endif } @@ -67198,7 +88255,14 @@ namespace OpenTK.Graphics public static void Uniform2(Int32 location, Single v0, Single v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2fARB((Int32)location, (Single)v0, (Single)v1); + #if DEBUG + } + #endif } @@ -67219,7 +88283,14 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Single v0, Single v1, Single v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3fARB((Int32)location, (Single)v0, (Single)v1, (Single)v2); + #if DEBUG + } + #endif } @@ -67240,7 +88311,14 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Single v0, Single v1, Single v2, Single v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4fARB((Int32)location, (Single)v0, (Single)v1, (Single)v2, (Single)v3); + #if DEBUG + } + #endif } @@ -67261,7 +88339,14 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1iARB((Int32)location, (Int32)v0); + #if DEBUG + } + #endif } @@ -67282,7 +88367,14 @@ namespace OpenTK.Graphics public static void Uniform2(Int32 location, Int32 v0, Int32 v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2iARB((Int32)location, (Int32)v0, (Int32)v1); + #if DEBUG + } + #endif } @@ -67303,7 +88395,14 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 v0, Int32 v1, Int32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3iARB((Int32)location, (Int32)v0, (Int32)v1, (Int32)v2); + #if DEBUG + } + #endif } @@ -67324,7 +88423,14 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 v0, Int32 v1, Int32 v2, Int32 v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4iARB((Int32)location, (Int32)v0, (Int32)v1, (Int32)v2, (Int32)v3); + #if DEBUG + } + #endif } @@ -67345,6 +88451,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67352,6 +88462,9 @@ namespace OpenTK.Graphics Delegates.glUniform1fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67372,6 +88485,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67379,6 +88496,9 @@ namespace OpenTK.Graphics Delegates.glUniform1fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67400,13 +88520,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1fvARB((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniform2fvARB")] public static void Uniform2v(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67414,12 +88545,19 @@ namespace OpenTK.Graphics Delegates.glUniform2fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniform2fvARB")] public static void Uniform2v(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67427,6 +88565,9 @@ namespace OpenTK.Graphics Delegates.glUniform2fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67434,7 +88575,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2fvARB((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } @@ -67455,6 +88603,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67462,6 +88614,9 @@ namespace OpenTK.Graphics Delegates.glUniform3fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67482,6 +88637,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67489,6 +88648,9 @@ namespace OpenTK.Graphics Delegates.glUniform3fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67510,7 +88672,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3fvARB((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } @@ -67531,6 +88700,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67538,6 +88711,9 @@ namespace OpenTK.Graphics Delegates.glUniform4fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67558,6 +88734,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67565,6 +88745,9 @@ namespace OpenTK.Graphics Delegates.glUniform4fvARB((Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67586,7 +88769,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4fvARB((Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } @@ -67607,6 +88797,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -67614,6 +88808,9 @@ namespace OpenTK.Graphics Delegates.glUniform1ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67634,6 +88831,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -67641,6 +88842,9 @@ namespace OpenTK.Graphics Delegates.glUniform1ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67662,13 +88866,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1ivARB((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniform2ivARB")] public static void Uniform2v(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -67676,12 +88891,19 @@ namespace OpenTK.Graphics Delegates.glUniform2ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniform2ivARB")] public static void Uniform2v(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -67689,6 +88911,9 @@ namespace OpenTK.Graphics Delegates.glUniform2ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67696,7 +88921,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2ivARB((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } @@ -67717,6 +88949,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -67724,6 +88960,9 @@ namespace OpenTK.Graphics Delegates.glUniform3ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67744,6 +88983,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -67751,6 +88994,9 @@ namespace OpenTK.Graphics Delegates.glUniform3ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67772,7 +89018,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3ivARB((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } @@ -67793,6 +89046,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -67800,6 +89057,9 @@ namespace OpenTK.Graphics Delegates.glUniform4ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67820,6 +89080,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -67827,6 +89091,9 @@ namespace OpenTK.Graphics Delegates.glUniform4ivARB((Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -67848,13 +89115,24 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4ivARB((Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniformMatrix2fvARB")] public static void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67862,12 +89140,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniformMatrix2fvARB")] public static void UniformMatrix2(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67875,6 +89160,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix2fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67882,13 +89170,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix2fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniformMatrix3fvARB")] public static void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67896,12 +89195,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniformMatrix3fvARB")] public static void UniformMatrix3(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67909,6 +89215,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix3fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67916,13 +89225,24 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix3fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniformMatrix4fvARB")] public static void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -67930,12 +89250,19 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glUniformMatrix4fvARB")] public static void UniformMatrix4(Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -67943,6 +89270,9 @@ namespace OpenTK.Graphics Delegates.glUniformMatrix4fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67950,7 +89280,14 @@ namespace OpenTK.Graphics public static unsafe void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformMatrix4fvARB((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67958,6 +89295,10 @@ namespace OpenTK.Graphics public static void GetObjectParameter(UInt32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -67965,12 +89306,19 @@ namespace OpenTK.Graphics Delegates.glGetObjectParameterfvARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetObjectParameterfvARB")] public static void GetObjectParameter(Int32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -67978,6 +89326,9 @@ namespace OpenTK.Graphics Delegates.glGetObjectParameterfvARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -67985,6 +89336,10 @@ namespace OpenTK.Graphics public static void GetObjectParameter(UInt32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -67993,12 +89348,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetObjectParameterfvARB")] public static void GetObjectParameter(Int32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -68007,6 +89369,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68014,7 +89379,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectParameter(UInt32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectParameterfvARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68022,7 +89394,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectParameter(Int32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectParameterfvARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68030,6 +89409,10 @@ namespace OpenTK.Graphics public static void GetObjectParameter(UInt32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -68037,12 +89420,19 @@ namespace OpenTK.Graphics Delegates.glGetObjectParameterivARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetObjectParameterivARB")] public static void GetObjectParameter(Int32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -68050,6 +89440,9 @@ namespace OpenTK.Graphics Delegates.glGetObjectParameterivARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68057,6 +89450,10 @@ namespace OpenTK.Graphics public static void GetObjectParameter(UInt32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -68065,12 +89462,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetObjectParameterivARB")] public static void GetObjectParameter(Int32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -68079,6 +89483,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68086,7 +89493,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectParameter(UInt32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectParameterivARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68094,7 +89508,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectParameter(Int32 obj, OpenTK.Graphics.ArbShaderObjects pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectParameterivARB((UInt32)obj, (OpenTK.Graphics.ArbShaderObjects)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68102,6 +89523,10 @@ namespace OpenTK.Graphics public static void GetInfoLog(UInt32 obj, Int32 maxLength, [Out] Int32[] length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -68109,12 +89534,19 @@ namespace OpenTK.Graphics Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static void GetInfoLog(Int32 obj, Int32 maxLength, [Out] Int32[] length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -68122,6 +89554,9 @@ namespace OpenTK.Graphics Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68129,6 +89564,10 @@ namespace OpenTK.Graphics public static void GetInfoLog(UInt32 obj, Int32 maxLength, [Out] out Int32 length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -68137,12 +89576,19 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static void GetInfoLog(Int32 obj, Int32 maxLength, [Out] out Int32 length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -68151,6 +89597,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68158,7 +89607,14 @@ namespace OpenTK.Graphics public static unsafe void GetInfoLog(UInt32 obj, Int32 maxLength, [Out] Int32* length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)infoLog); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68166,7 +89622,14 @@ namespace OpenTK.Graphics public static unsafe void GetInfoLog(Int32 obj, Int32 maxLength, [Out] Int32* length, [Out] System.Text.StringBuilder infoLog) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)infoLog); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68174,6 +89637,10 @@ namespace OpenTK.Graphics public static void GetAttachedObjects(UInt32 containerObj, Int32 maxCount, [Out] Int32[] count, [Out] UInt32[] obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -68182,12 +89649,19 @@ namespace OpenTK.Graphics Delegates.glGetAttachedObjectsARB((UInt32)containerObj, (Int32)maxCount, (Int32*)count_ptr, (UInt32*)obj_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetAttachedObjectsARB")] public static void GetAttachedObjects(Int32 containerObj, Int32 maxCount, [Out] Int32[] count, [Out] Int32[] obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -68196,6 +89670,9 @@ namespace OpenTK.Graphics Delegates.glGetAttachedObjectsARB((UInt32)containerObj, (Int32)maxCount, (Int32*)count_ptr, (UInt32*)obj_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68203,6 +89680,10 @@ namespace OpenTK.Graphics public static void GetAttachedObjects(UInt32 containerObj, Int32 maxCount, [Out] out Int32 count, [Out] out UInt32 obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -68213,12 +89694,19 @@ namespace OpenTK.Graphics obj = *obj_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetAttachedObjectsARB")] public static void GetAttachedObjects(Int32 containerObj, Int32 maxCount, [Out] out Int32 count, [Out] out Int32 obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -68229,6 +89717,9 @@ namespace OpenTK.Graphics obj = *obj_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68236,7 +89727,14 @@ namespace OpenTK.Graphics public static unsafe void GetAttachedObjects(UInt32 containerObj, Int32 maxCount, [Out] Int32* count, [Out] UInt32* obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetAttachedObjectsARB((UInt32)containerObj, (Int32)maxCount, (Int32*)count, (UInt32*)obj); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -68244,7 +89742,14 @@ namespace OpenTK.Graphics public static unsafe void GetAttachedObjects(Int32 containerObj, Int32 maxCount, [Out] Int32* count, [Out] Int32* obj) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetAttachedObjectsARB((UInt32)containerObj, (Int32)maxCount, (Int32*)count, (UInt32*)obj); + #if DEBUG + } + #endif } @@ -68266,7 +89771,14 @@ namespace OpenTK.Graphics public static Int32 GetUniformLocation(UInt32 programObj, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetUniformLocationARB((UInt32)programObj, (String)name); + #if DEBUG + } + #endif } @@ -68334,6 +89846,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ArbShaderObjects[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -68343,6 +89859,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ArbShaderObjects*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -68388,6 +89907,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ArbShaderObjects[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -68397,6 +89920,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ArbShaderObjects*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -68443,6 +89969,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ArbShaderObjects type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -68455,6 +89985,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -68500,6 +90033,10 @@ namespace OpenTK.Graphics public static void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ArbShaderObjects type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -68512,6 +90049,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -68558,7 +90098,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ArbShaderObjects* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ArbShaderObjects*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -68605,7 +90152,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ArbShaderObjects* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ArbShaderObjects*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -68632,6 +90186,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 programObj, Int32 location, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -68639,6 +90197,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformfvARB((UInt32)programObj, (Int32)location, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -68664,6 +90225,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 programObj, Int32 location, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -68671,6 +90236,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformfvARB((UInt32)programObj, (Int32)location, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -68697,6 +90265,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 programObj, Int32 location, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -68705,6 +90277,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -68730,6 +90305,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 programObj, Int32 location, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -68738,6 +90317,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -68764,7 +90346,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(UInt32 programObj, Int32 location, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformfvARB((UInt32)programObj, (Int32)location, (Single*)@params); + #if DEBUG + } + #endif } @@ -68791,7 +90380,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(Int32 programObj, Int32 location, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformfvARB((UInt32)programObj, (Int32)location, (Single*)@params); + #if DEBUG + } + #endif } @@ -68818,6 +90414,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 programObj, Int32 location, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -68825,6 +90425,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformivARB((UInt32)programObj, (Int32)location, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -68850,6 +90453,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 programObj, Int32 location, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -68857,6 +90464,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformivARB((UInt32)programObj, (Int32)location, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -68883,6 +90493,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 programObj, Int32 location, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -68891,6 +90505,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -68916,6 +90533,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 programObj, Int32 location, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -68924,6 +90545,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -68950,7 +90574,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(UInt32 programObj, Int32 location, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformivARB((UInt32)programObj, (Int32)location, (Int32*)@params); + #if DEBUG + } + #endif } @@ -68977,7 +90608,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(Int32 programObj, Int32 location, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformivARB((UInt32)programObj, (Int32)location, (Int32*)@params); + #if DEBUG + } + #endif } @@ -69009,6 +90647,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(UInt32 obj, Int32 maxLength, [Out] Int32[] length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -69016,6 +90658,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder[])source); } } + #if DEBUG + } + #endif } @@ -69046,6 +90691,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(Int32 obj, Int32 maxLength, [Out] Int32[] length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -69053,6 +90702,9 @@ namespace OpenTK.Graphics Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder[])source); } } + #if DEBUG + } + #endif } @@ -69084,6 +90736,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(UInt32 obj, Int32 maxLength, [Out] out Int32 length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -69092,6 +90748,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -69122,6 +90781,10 @@ namespace OpenTK.Graphics public static void GetShaderSource(Int32 obj, Int32 maxLength, [Out] out Int32 length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -69130,6 +90793,9 @@ namespace OpenTK.Graphics length = *length_ptr; } } + #if DEBUG + } + #endif } @@ -69161,7 +90827,14 @@ namespace OpenTK.Graphics public static unsafe void GetShaderSource(UInt32 obj, Int32 maxLength, [Out] Int32* length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder[])source); + #if DEBUG + } + #endif } @@ -69193,7 +90866,14 @@ namespace OpenTK.Graphics public static unsafe void GetShaderSource(Int32 obj, Int32 maxLength, [Out] Int32* length, [Out] System.Text.StringBuilder[] source) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder[])source); + #if DEBUG + } + #endif } @@ -69220,7 +90900,14 @@ namespace OpenTK.Graphics public static void BindAttribLocation(UInt32 programObj, UInt32 index, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindAttribLocationARB((UInt32)programObj, (UInt32)index, (String)name); + #if DEBUG + } + #endif } @@ -69293,6 +90980,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ArbVertexShader[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -69302,6 +90993,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ArbVertexShader*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -69347,6 +91041,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ArbVertexShader[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = length) @@ -69356,6 +91054,9 @@ namespace OpenTK.Graphics Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ArbVertexShader*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } @@ -69402,6 +91103,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ArbVertexShader type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -69414,6 +91119,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -69459,6 +91167,10 @@ namespace OpenTK.Graphics public static void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ArbVertexShader type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* length_ptr = &length) @@ -69471,6 +91183,9 @@ namespace OpenTK.Graphics type = *type_ptr; } } + #if DEBUG + } + #endif } @@ -69517,7 +91232,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ArbVertexShader* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ArbVertexShader*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -69564,7 +91286,14 @@ namespace OpenTK.Graphics public static unsafe void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ArbVertexShader* type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ArbVertexShader*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } @@ -69586,7 +91315,14 @@ namespace OpenTK.Graphics public static Int32 GetAttribLocation(UInt32 programObj, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetAttribLocationARB((UInt32)programObj, (String)name); + #if DEBUG + } + #endif } @@ -69628,6 +91364,10 @@ namespace OpenTK.Graphics public static void DrawBuffers(Int32 n, OpenTK.Graphics.ArbDrawBuffers[] bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.ArbDrawBuffers* bufs_ptr = bufs) @@ -69635,6 +91375,9 @@ namespace OpenTK.Graphics Delegates.glDrawBuffersARB((Int32)n, (OpenTK.Graphics.ArbDrawBuffers*)bufs_ptr); } } + #if DEBUG + } + #endif } @@ -69655,6 +91398,10 @@ namespace OpenTK.Graphics public static void DrawBuffers(Int32 n, ref OpenTK.Graphics.ArbDrawBuffers bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.ArbDrawBuffers* bufs_ptr = &bufs) @@ -69662,6 +91409,9 @@ namespace OpenTK.Graphics Delegates.glDrawBuffersARB((Int32)n, (OpenTK.Graphics.ArbDrawBuffers*)bufs_ptr); } } + #if DEBUG + } + #endif } @@ -69683,31 +91433,56 @@ namespace OpenTK.Graphics public static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ArbDrawBuffers* bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawBuffersARB((Int32)n, (OpenTK.Graphics.ArbDrawBuffers*)bufs); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbColorBufferFloat", Version = "1.5", EntryPoint = "glClampColorARB")] public static void ClampColor(OpenTK.Graphics.ArbColorBufferFloat target, OpenTK.Graphics.ArbColorBufferFloat clamp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClampColorARB((OpenTK.Graphics.ArbColorBufferFloat)target, (OpenTK.Graphics.ArbColorBufferFloat)clamp); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbDrawInstanced", Version = "2.0", EntryPoint = "glDrawArraysInstancedARB")] public static void DrawArraysInstance(OpenTK.Graphics.BeginMode mode, Int32 first, Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawArraysInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)first, (Int32)count, (Int32)primcount); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedARB")] public static void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); + #endif + Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); + #if DEBUG } + #endif } [AutoGenerated(Category = "ArbDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedARB")] @@ -69715,18 +91490,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedARB")] @@ -69734,18 +91513,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedARB")] @@ -69753,18 +91536,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedARB")] @@ -69772,18 +91559,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedARB((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -69791,7 +91582,14 @@ namespace OpenTK.Graphics public static void ProgramParameter(UInt32 program, OpenTK.Graphics.ArbGeometryShader4 pname, Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameteriARB((UInt32)program, (OpenTK.Graphics.ArbGeometryShader4)pname, (Int32)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glProgramParameteriARB")] @@ -69806,7 +91604,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureARB((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glFramebufferTextureARB")] @@ -69821,7 +91626,14 @@ namespace OpenTK.Graphics public static void FramebufferTextureLayer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureLayerARB((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glFramebufferTextureLayerARB")] @@ -69836,7 +91648,14 @@ namespace OpenTK.Graphics public static void FramebufferTextureFace(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, OpenTK.Graphics.TextureTarget face) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureFaceARB((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (OpenTK.Graphics.TextureTarget)face); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbGeometryShader4", Version = "3.0", EntryPoint = "glFramebufferTextureFaceARB")] @@ -69851,7 +91670,14 @@ namespace OpenTK.Graphics public static void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexBufferARB((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.ArbTextureBufferObject)internalformat, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ArbTextureBufferObject", Version = "3.0", EntryPoint = "glTexBufferARB")] @@ -69878,7 +91704,14 @@ namespace OpenTK.Graphics public static void BlendColor(Single red, Single green, Single blue, Single alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendColorEXT((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif } @@ -69899,7 +91732,14 @@ namespace OpenTK.Graphics public static void PolygonOffset(Single factor, Single bias) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPolygonOffsetEXT((Single)factor, (Single)bias); + #if DEBUG + } + #endif } @@ -69960,10 +91800,14 @@ namespace OpenTK.Graphics public static void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -70025,18 +91869,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70098,18 +91946,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70171,18 +92023,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70244,18 +92100,22 @@ namespace OpenTK.Graphics void TexImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70321,10 +92181,14 @@ namespace OpenTK.Graphics public static void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -70391,18 +92255,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T10 pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70469,18 +92337,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70547,18 +92419,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70625,18 +92501,22 @@ namespace OpenTK.Graphics void TexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70682,10 +92562,14 @@ namespace OpenTK.Graphics public static void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -70732,18 +92616,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T6 pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70790,18 +92678,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70848,18 +92740,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70906,18 +92802,22 @@ namespace OpenTK.Graphics void TexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,,] pixels) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -70973,10 +92873,14 @@ namespace OpenTK.Graphics public static void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } @@ -71033,18 +92937,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T8 pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71101,18 +93009,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71169,18 +93081,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71237,18 +93153,22 @@ namespace OpenTK.Graphics void TexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71289,7 +93209,14 @@ namespace OpenTK.Graphics public static void CopyTexImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)border); + #if DEBUG + } + #endif } @@ -71335,7 +93262,14 @@ namespace OpenTK.Graphics public static void CopyTexImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif } @@ -71371,7 +93305,14 @@ namespace OpenTK.Graphics public static void CopyTexSubImage1D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexSubImage1DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -71417,7 +93358,14 @@ namespace OpenTK.Graphics public static void CopyTexSubImage2D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexSubImage2DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -71468,7 +93416,14 @@ namespace OpenTK.Graphics public static void CopyTexSubImage3D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTexSubImage3DEXT((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -71504,10 +93459,14 @@ namespace OpenTK.Graphics public static void GetHistogram(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr values) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #endif + Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #if DEBUG } + #endif } @@ -71544,18 +93503,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T4 values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71592,18 +93555,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71640,18 +93607,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71688,18 +93659,22 @@ namespace OpenTK.Graphics void GetHistogram(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -71725,6 +93700,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -71732,6 +93711,9 @@ namespace OpenTK.Graphics Delegates.glGetHistogramParameterfvEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -71757,6 +93739,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -71765,6 +93751,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -71791,7 +93780,14 @@ namespace OpenTK.Graphics public static unsafe void GetHistogramParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetHistogramParameterfvEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -71817,6 +93813,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -71824,6 +93824,9 @@ namespace OpenTK.Graphics Delegates.glGetHistogramParameterivEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -71849,6 +93852,10 @@ namespace OpenTK.Graphics public static void GetHistogramParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -71857,6 +93864,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -71883,7 +93893,14 @@ namespace OpenTK.Graphics public static unsafe void GetHistogramParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetHistogramParameterivEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -71919,10 +93936,14 @@ namespace OpenTK.Graphics public static void GetMinmax(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr values) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #endif + Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values); + #if DEBUG } + #endif } @@ -71959,18 +93980,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T4 values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72007,18 +94032,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72055,18 +94084,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72103,18 +94136,22 @@ namespace OpenTK.Graphics void GetMinmax(OpenTK.Graphics.ExtHistogram target, bool reset, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T4[,,] values) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); - try - { - Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); - } - finally - { - values_ptr.Free(); - } + #endif + GCHandle values_ptr = GCHandle.Alloc(values, GCHandleType.Pinned); + try + { + Delegates.glGetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (bool)reset, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)values_ptr.AddrOfPinnedObject()); } + finally + { + values_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72140,6 +94177,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -72147,6 +94188,9 @@ namespace OpenTK.Graphics Delegates.glGetMinmaxParameterfvEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -72172,6 +94216,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -72180,6 +94228,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -72206,7 +94257,14 @@ namespace OpenTK.Graphics public static unsafe void GetMinmaxParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMinmaxParameterfvEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -72232,6 +94290,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -72239,6 +94301,9 @@ namespace OpenTK.Graphics Delegates.glGetMinmaxParameterivEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -72264,6 +94329,10 @@ namespace OpenTK.Graphics public static void GetMinmaxParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -72272,6 +94341,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -72298,7 +94370,14 @@ namespace OpenTK.Graphics public static unsafe void GetMinmaxParameter(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.ExtHistogram pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMinmaxParameterivEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.ExtHistogram)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -72329,7 +94408,14 @@ namespace OpenTK.Graphics public static void Histogram(OpenTK.Graphics.ExtHistogram target, Int32 width, OpenTK.Graphics.PixelInternalFormat internalformat, bool sink) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glHistogramEXT((OpenTK.Graphics.ExtHistogram)target, (Int32)width, (OpenTK.Graphics.PixelInternalFormat)internalformat, (bool)sink); + #if DEBUG + } + #endif } @@ -72355,7 +94441,14 @@ namespace OpenTK.Graphics public static void Minmax(OpenTK.Graphics.ExtHistogram target, OpenTK.Graphics.PixelInternalFormat internalformat, bool sink) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMinmaxEXT((OpenTK.Graphics.ExtHistogram)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (bool)sink); + #if DEBUG + } + #endif } @@ -72371,7 +94464,14 @@ namespace OpenTK.Graphics public static void ResetHistogram(OpenTK.Graphics.ExtHistogram target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glResetHistogramEXT((OpenTK.Graphics.ExtHistogram)target); + #if DEBUG + } + #endif } @@ -72387,7 +94487,14 @@ namespace OpenTK.Graphics public static void ResetMinmax(OpenTK.Graphics.ExtHistogram target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glResetMinmaxEXT((OpenTK.Graphics.ExtHistogram)target); + #if DEBUG + } + #endif } @@ -72428,10 +94535,14 @@ namespace OpenTK.Graphics public static void ConvolutionFilter1D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr image) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #endif + Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #if DEBUG } + #endif } @@ -72473,18 +94584,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72526,18 +94641,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72579,18 +94698,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72632,18 +94755,22 @@ namespace OpenTK.Graphics void ConvolutionFilter1D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] image) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72689,10 +94816,14 @@ namespace OpenTK.Graphics public static void ConvolutionFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr image) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #endif + Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #if DEBUG } + #endif } @@ -72739,18 +94870,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T6 image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72797,18 +94932,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[] image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72855,18 +94994,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,] image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72913,18 +95056,22 @@ namespace OpenTK.Graphics void ConvolutionFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T6[,,] image) where T6 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -72953,13 +95100,24 @@ namespace OpenTK.Graphics public static void ConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameterfEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Single)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtConvolution", Version = "1.0", EntryPoint = "glConvolutionParameterfvEXT")] public static void ConvolutionParameterv(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -72967,12 +95125,19 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameterfvEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtConvolution", Version = "1.0", EntryPoint = "glConvolutionParameterfvEXT")] public static void ConvolutionParameterv(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -72980,6 +95145,9 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameterfvEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -72987,7 +95155,14 @@ namespace OpenTK.Graphics public static unsafe void ConvolutionParameterv(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameterfvEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -73016,13 +95191,24 @@ namespace OpenTK.Graphics public static void ConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameteriEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Int32)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtConvolution", Version = "1.0", EntryPoint = "glConvolutionParameterivEXT")] public static void ConvolutionParameterv(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -73030,12 +95216,19 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameterivEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtConvolution", Version = "1.0", EntryPoint = "glConvolutionParameterivEXT")] public static void ConvolutionParameterv(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -73043,6 +95236,9 @@ namespace OpenTK.Graphics Delegates.glConvolutionParameterivEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -73050,7 +95246,14 @@ namespace OpenTK.Graphics public static unsafe void ConvolutionParameterv(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glConvolutionParameterivEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -73081,7 +95284,14 @@ namespace OpenTK.Graphics public static void CopyConvolutionFilter1D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyConvolutionFilter1DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -73117,7 +95327,14 @@ namespace OpenTK.Graphics public static void CopyConvolutionFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyConvolutionFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } @@ -73148,10 +95365,14 @@ namespace OpenTK.Graphics public static void GetConvolutionFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr image) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #endif + Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image); + #if DEBUG } + #endif } @@ -73183,18 +95404,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T3 image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73226,18 +95451,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[] image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73269,18 +95498,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,] image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73312,18 +95545,22 @@ namespace OpenTK.Graphics void GetConvolutionFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,,] image) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); - try - { - Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); - } - finally - { - image_ptr.Free(); - } + #endif + GCHandle image_ptr = GCHandle.Alloc(image, GCHandleType.Pinned); + try + { + Delegates.glGetConvolutionFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)image_ptr.AddrOfPinnedObject()); } + finally + { + image_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73349,6 +95586,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -73356,6 +95597,9 @@ namespace OpenTK.Graphics Delegates.glGetConvolutionParameterfvEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -73381,6 +95625,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -73389,6 +95637,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -73415,7 +95666,14 @@ namespace OpenTK.Graphics public static unsafe void GetConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetConvolutionParameterfvEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -73441,6 +95699,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -73448,6 +95710,9 @@ namespace OpenTK.Graphics Delegates.glGetConvolutionParameterivEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -73473,6 +95738,10 @@ namespace OpenTK.Graphics public static void GetConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -73481,6 +95750,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -73507,7 +95779,14 @@ namespace OpenTK.Graphics public static unsafe void GetConvolutionParameter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.ExtConvolution pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetConvolutionParameterivEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.ExtConvolution)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -73548,10 +95827,14 @@ namespace OpenTK.Graphics public static void GetSeparableFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [Out] IntPtr span) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span); + #endif + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span); + #if DEBUG } + #endif } @@ -73593,18 +95876,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] ref T5 span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73646,18 +95933,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] T5[] span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73699,18 +95990,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] T5[,] span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73752,18 +96047,22 @@ namespace OpenTK.Graphics void GetSeparableFilter(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr row, [Out] IntPtr column, [In, Out] T5[,,] span) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - span_ptr.Free(); - } + #endif + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column, (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73806,20 +96105,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73862,20 +96165,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73918,20 +96225,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -73974,20 +96285,24 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74031,22 +96346,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74090,22 +96409,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74149,22 +96472,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74208,22 +96535,26 @@ namespace OpenTK.Graphics where T4 : struct where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); - try - { - Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - span_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + GCHandle span_ptr = GCHandle.Alloc(span, GCHandleType.Pinned); + try + { + Delegates.glGetSeparableFilterEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject(), (IntPtr)span_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + span_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74274,10 +96605,14 @@ namespace OpenTK.Graphics public static void SeparableFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, IntPtr column) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column); + #endif + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column); + #if DEBUG } + #endif } @@ -74329,18 +96664,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] ref T7 column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74392,18 +96731,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] T7[] column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74455,18 +96798,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] T7[,] column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74518,18 +96865,22 @@ namespace OpenTK.Graphics void SeparableFilter2D(OpenTK.Graphics.ExtConvolution target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr row, [In, Out] T7[,,] column) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - column_ptr.Free(); - } + #endif + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row, (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74582,20 +96933,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74648,20 +97003,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74714,20 +97073,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74780,20 +97143,24 @@ namespace OpenTK.Graphics where T6 : struct where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); - GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); - try - { - Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); - } - finally - { - row_ptr.Free(); - column_ptr.Free(); - } + #endif + GCHandle row_ptr = GCHandle.Alloc(row, GCHandleType.Pinned); + GCHandle column_ptr = GCHandle.Alloc(column, GCHandleType.Pinned); + try + { + Delegates.glSeparableFilter2DEXT((OpenTK.Graphics.ExtConvolution)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)row_ptr.AddrOfPinnedObject(), (IntPtr)column_ptr.AddrOfPinnedObject()); } + finally + { + row_ptr.Free(); + column_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -74820,6 +97187,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, UInt32[] textures, [Out] bool[] residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -74828,6 +97199,9 @@ namespace OpenTK.Graphics return Delegates.glAreTexturesResidentEXT((Int32)n, (UInt32*)textures_ptr, (bool*)residences_ptr); } } + #if DEBUG + } + #endif } @@ -74853,6 +97227,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, Int32[] textures, [Out] bool[] residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -74861,6 +97239,9 @@ namespace OpenTK.Graphics return Delegates.glAreTexturesResidentEXT((Int32)n, (UInt32*)textures_ptr, (bool*)residences_ptr); } } + #if DEBUG + } + #endif } @@ -74887,6 +97268,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, ref UInt32 textures, [Out] out bool residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -74897,6 +97282,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } @@ -74922,6 +97310,10 @@ namespace OpenTK.Graphics public static bool AreTexturesResident(Int32 n, ref Int32 textures, [Out] out bool residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -74932,6 +97324,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } @@ -74958,7 +97353,14 @@ namespace OpenTK.Graphics public static unsafe bool AreTexturesResident(Int32 n, UInt32* textures, [Out] bool* residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glAreTexturesResidentEXT((Int32)n, (UInt32*)textures, (bool*)residences); + #if DEBUG + } + #endif } @@ -74985,7 +97387,14 @@ namespace OpenTK.Graphics public static unsafe bool AreTexturesResident(Int32 n, Int32* textures, [Out] bool* residences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glAreTexturesResidentEXT((Int32)n, (UInt32*)textures, (bool*)residences); + #if DEBUG + } + #endif } @@ -75007,7 +97416,14 @@ namespace OpenTK.Graphics public static void BindTexture(OpenTK.Graphics.TextureTarget target, UInt32 texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindTextureEXT((OpenTK.Graphics.TextureTarget)target, (UInt32)texture); + #if DEBUG + } + #endif } @@ -75050,6 +97466,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, UInt32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -75057,6 +97477,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTexturesEXT((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -75077,6 +97500,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, Int32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -75084,6 +97511,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTexturesEXT((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -75105,6 +97535,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, ref UInt32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -75112,6 +97546,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTexturesEXT((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -75132,6 +97569,10 @@ namespace OpenTK.Graphics public static void DeleteTextures(Int32 n, ref Int32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -75139,6 +97580,9 @@ namespace OpenTK.Graphics Delegates.glDeleteTexturesEXT((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -75160,7 +97604,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteTextures(Int32 n, UInt32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteTexturesEXT((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -75182,7 +97633,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteTextures(Int32 n, Int32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteTexturesEXT((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -75204,6 +97662,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] UInt32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -75211,6 +97673,9 @@ namespace OpenTK.Graphics Delegates.glGenTexturesEXT((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -75231,6 +97696,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] Int32[] textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -75238,6 +97707,9 @@ namespace OpenTK.Graphics Delegates.glGenTexturesEXT((Int32)n, (UInt32*)textures_ptr); } } + #if DEBUG + } + #endif } @@ -75259,6 +97731,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] out UInt32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -75267,6 +97743,9 @@ namespace OpenTK.Graphics textures = *textures_ptr; } } + #if DEBUG + } + #endif } @@ -75287,6 +97766,10 @@ namespace OpenTK.Graphics public static void GenTextures(Int32 n, [Out] out Int32 textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -75295,6 +97778,9 @@ namespace OpenTK.Graphics textures = *textures_ptr; } } + #if DEBUG + } + #endif } @@ -75316,7 +97802,14 @@ namespace OpenTK.Graphics public static unsafe void GenTextures(Int32 n, [Out] UInt32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenTexturesEXT((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -75338,7 +97831,14 @@ namespace OpenTK.Graphics public static unsafe void GenTextures(Int32 n, [Out] Int32* textures) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenTexturesEXT((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif } @@ -75355,7 +97855,14 @@ namespace OpenTK.Graphics public static bool IsTexture(UInt32 texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsTextureEXT((UInt32)texture); + #if DEBUG + } + #endif } @@ -75398,6 +97905,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, UInt32[] textures, Single[] priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = textures) @@ -75406,6 +97917,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTexturesEXT((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -75431,6 +97945,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, Int32[] textures, Single[] priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = textures) @@ -75439,6 +97957,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTexturesEXT((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -75465,6 +97986,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, ref UInt32 textures, ref Single priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* textures_ptr = &textures) @@ -75473,6 +97998,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTexturesEXT((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -75498,6 +98026,10 @@ namespace OpenTK.Graphics public static void PrioritizeTextures(Int32 n, ref Int32 textures, ref Single priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* textures_ptr = &textures) @@ -75506,6 +98038,9 @@ namespace OpenTK.Graphics Delegates.glPrioritizeTexturesEXT((Int32)n, (UInt32*)textures_ptr, (Single*)priorities_ptr); } } + #if DEBUG + } + #endif } @@ -75532,7 +98067,14 @@ namespace OpenTK.Graphics public static unsafe void PrioritizeTextures(Int32 n, UInt32* textures, Single* priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPrioritizeTexturesEXT((Int32)n, (UInt32*)textures, (Single*)priorities); + #if DEBUG + } + #endif } @@ -75559,7 +98101,14 @@ namespace OpenTK.Graphics public static unsafe void PrioritizeTextures(Int32 n, Int32* textures, Single* priorities) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPrioritizeTexturesEXT((Int32)n, (UInt32*)textures, (Single*)priorities); + #if DEBUG + } + #endif } @@ -75575,7 +98124,14 @@ namespace OpenTK.Graphics public static void ArrayElement(Int32 i) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glArrayElementEXT((Int32)i); + #if DEBUG + } + #endif } @@ -75606,10 +98162,14 @@ namespace OpenTK.Graphics public static void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, Int32 count, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #endif + Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -75641,18 +98201,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, Int32 count, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -75684,18 +98248,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, Int32 count, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -75727,18 +98295,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, Int32 count, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -75770,18 +98342,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, Int32 count, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -75807,7 +98383,14 @@ namespace OpenTK.Graphics public static void DrawArrays(OpenTK.Graphics.BeginMode mode, Int32 first, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawArraysEXT((OpenTK.Graphics.BeginMode)mode, (Int32)first, (Int32)count); + #if DEBUG + } + #endif } @@ -75828,6 +98411,10 @@ namespace OpenTK.Graphics public static void EdgeFlagPointer(Int32 stride, Int32 count, bool[] pointer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* pointer_ptr = pointer) @@ -75835,6 +98422,9 @@ namespace OpenTK.Graphics Delegates.glEdgeFlagPointerEXT((Int32)stride, (Int32)count, (bool*)pointer_ptr); } } + #if DEBUG + } + #endif } @@ -75855,6 +98445,10 @@ namespace OpenTK.Graphics public static void EdgeFlagPointer(Int32 stride, Int32 count, ref bool pointer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* pointer_ptr = &pointer) @@ -75862,6 +98456,9 @@ namespace OpenTK.Graphics Delegates.glEdgeFlagPointerEXT((Int32)stride, (Int32)count, (bool*)pointer_ptr); } } + #if DEBUG + } + #endif } @@ -75883,17 +98480,28 @@ namespace OpenTK.Graphics public static unsafe void EdgeFlagPointer(Int32 stride, Int32 count, bool* pointer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEdgeFlagPointerEXT((Int32)stride, (Int32)count, (bool*)pointer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexArray", Version = "1.0", EntryPoint = "glGetPointervEXT")] public static void GetPointer(OpenTK.Graphics.GetPointervPName pname, [Out] IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params); + #endif + Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtVertexArray", Version = "1.0", EntryPoint = "glGetPointervEXT")] @@ -75901,18 +98509,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] ref T1 @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexArray", Version = "1.0", EntryPoint = "glGetPointervEXT")] @@ -75920,18 +98532,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] T1[] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexArray", Version = "1.0", EntryPoint = "glGetPointervEXT")] @@ -75939,18 +98555,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] T1[,] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexArray", Version = "1.0", EntryPoint = "glGetPointervEXT")] @@ -75958,18 +98578,22 @@ namespace OpenTK.Graphics void GetPointer(OpenTK.Graphics.GetPointervPName pname, [In, Out] T1[,,] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointervEXT((OpenTK.Graphics.GetPointervPName)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -75995,10 +98619,14 @@ namespace OpenTK.Graphics public static void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, Int32 count, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #endif + Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -76025,18 +98653,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, Int32 count, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76063,18 +98695,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, Int32 count, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76101,18 +98737,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, Int32 count, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76139,18 +98779,22 @@ namespace OpenTK.Graphics void IndexPointer(OpenTK.Graphics.IndexPointerType type, Int32 stride, Int32 count, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerEXT((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76176,10 +98820,14 @@ namespace OpenTK.Graphics public static void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, Int32 count, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #endif + Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -76206,18 +98854,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, Int32 count, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76244,18 +98896,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, Int32 count, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76282,18 +98938,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, Int32 count, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76320,18 +98980,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, Int32 stride, Int32 count, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerEXT((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76362,10 +99026,14 @@ namespace OpenTK.Graphics public static void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, Int32 count, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #endif + Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -76397,18 +99065,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, Int32 count, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76440,18 +99112,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, Int32 count, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76483,18 +99159,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, Int32 count, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76526,18 +99206,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, Int32 count, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerEXT((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76568,10 +99252,14 @@ namespace OpenTK.Graphics public static void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, Int32 count, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #endif + Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -76603,18 +99291,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, Int32 count, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76646,18 +99338,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, Int32 count, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76689,18 +99385,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, Int32 count, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76732,18 +99432,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, Int32 count, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerEXT((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (Int32)count, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76759,7 +99463,14 @@ namespace OpenTK.Graphics public static void BlendEquation(OpenTK.Graphics.ExtBlendMinmax mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendEquationEXT((OpenTK.Graphics.ExtBlendMinmax)mode); + #if DEBUG + } + #endif } @@ -76780,13 +99491,24 @@ namespace OpenTK.Graphics public static void PointParameter(OpenTK.Graphics.ExtPointParameters pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfEXT((OpenTK.Graphics.ExtPointParameters)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPointParameters", Version = "1.0", EntryPoint = "glPointParameterfvEXT")] public static void PointParameterv(OpenTK.Graphics.ExtPointParameters pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -76794,12 +99516,19 @@ namespace OpenTK.Graphics Delegates.glPointParameterfvEXT((OpenTK.Graphics.ExtPointParameters)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPointParameters", Version = "1.0", EntryPoint = "glPointParameterfvEXT")] public static void PointParameterv(OpenTK.Graphics.ExtPointParameters pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -76807,6 +99536,9 @@ namespace OpenTK.Graphics Delegates.glPointParameterfvEXT((OpenTK.Graphics.ExtPointParameters)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -76814,7 +99546,14 @@ namespace OpenTK.Graphics public static unsafe void PointParameterv(OpenTK.Graphics.ExtPointParameters pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfvEXT((OpenTK.Graphics.ExtPointParameters)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -76855,10 +99594,14 @@ namespace OpenTK.Graphics public static void ColorSubTable(OpenTK.Graphics.ExtColorSubtable target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data); + #endif + Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data); + #if DEBUG } + #endif } @@ -76900,18 +99643,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.ExtColorSubtable target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -76953,18 +99700,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.ExtColorSubtable target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77006,18 +99757,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.ExtColorSubtable target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77059,18 +99814,22 @@ namespace OpenTK.Graphics void ColorSubTable(OpenTK.Graphics.ExtColorSubtable target, Int32 start, Int32 count, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] data) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)count, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77101,7 +99860,14 @@ namespace OpenTK.Graphics public static void CopyColorSubTable(OpenTK.Graphics.ExtColorSubtable target, Int32 start, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyColorSubTableEXT((OpenTK.Graphics.ExtColorSubtable)target, (Int32)start, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -77142,10 +99908,14 @@ namespace OpenTK.Graphics public static void ColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelInternalFormat internalFormat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr table) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #endif + Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #if DEBUG } + #endif } @@ -77187,18 +99957,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelInternalFormat internalFormat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77240,18 +100014,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelInternalFormat internalFormat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77293,18 +100071,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelInternalFormat internalFormat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77346,18 +100128,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelInternalFormat internalFormat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelInternalFormat)internalFormat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77388,10 +100174,14 @@ namespace OpenTK.Graphics public static void GetColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data); + #endif + Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data); + #if DEBUG } + #endif } @@ -77423,18 +100213,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77466,18 +100260,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77509,18 +100307,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77552,18 +100354,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -77589,6 +100395,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.ExtPalettedTexture pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -77596,6 +100406,9 @@ namespace OpenTK.Graphics Delegates.glGetColorTableParameterivEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.ExtPalettedTexture)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -77621,6 +100434,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.ExtPalettedTexture pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -77629,6 +100446,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -77655,7 +100475,14 @@ namespace OpenTK.Graphics public static unsafe void GetColorTableParameter(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.ExtPalettedTexture pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetColorTableParameterivEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.ExtPalettedTexture)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -77681,6 +100508,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.ExtPalettedTexture pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -77688,6 +100519,9 @@ namespace OpenTK.Graphics Delegates.glGetColorTableParameterfvEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.ExtPalettedTexture)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -77713,6 +100547,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.ExtPalettedTexture pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -77721,6 +100559,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -77747,41 +100588,80 @@ namespace OpenTK.Graphics public static unsafe void GetColorTableParameter(OpenTK.Graphics.ExtPalettedTexture target, OpenTK.Graphics.ExtPalettedTexture pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetColorTableParameterfvEXT((OpenTK.Graphics.ExtPalettedTexture)target, (OpenTK.Graphics.ExtPalettedTexture)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtIndexMaterial", Version = "1.1", EntryPoint = "glIndexMaterialEXT")] public static void IndexMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.ExtIndexMaterial mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexMaterialEXT((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.ExtIndexMaterial)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtIndexFunc", Version = "1.1", EntryPoint = "glIndexFuncEXT")] public static void IndexFunc(OpenTK.Graphics.ExtIndexFunc func, Single @ref) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glIndexFuncEXT((OpenTK.Graphics.ExtIndexFunc)func, (Single)@ref); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCompiledVertexArray", Version = "1.1", EntryPoint = "glLockArraysEXT")] public static void LockArrays(Int32 first, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLockArraysEXT((Int32)first, (Int32)count); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCompiledVertexArray", Version = "1.1", EntryPoint = "glUnlockArraysEXT")] public static void UnlockArrays() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUnlockArraysEXT(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCullVertex", Version = "1.1", EntryPoint = "glCullParameterdvEXT")] public static void CullParameter(OpenTK.Graphics.ExtCullVertex pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -77789,12 +100669,19 @@ namespace OpenTK.Graphics Delegates.glCullParameterdvEXT((OpenTK.Graphics.ExtCullVertex)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCullVertex", Version = "1.1", EntryPoint = "glCullParameterdvEXT")] public static void CullParameter(OpenTK.Graphics.ExtCullVertex pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -77803,6 +100690,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -77810,13 +100700,24 @@ namespace OpenTK.Graphics public static unsafe void CullParameter(OpenTK.Graphics.ExtCullVertex pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCullParameterdvEXT((OpenTK.Graphics.ExtCullVertex)pname, (Double*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCullVertex", Version = "1.1", EntryPoint = "glCullParameterfvEXT")] public static void CullParameter(OpenTK.Graphics.ExtCullVertex pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -77824,12 +100725,19 @@ namespace OpenTK.Graphics Delegates.glCullParameterfvEXT((OpenTK.Graphics.ExtCullVertex)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCullVertex", Version = "1.1", EntryPoint = "glCullParameterfvEXT")] public static void CullParameter(OpenTK.Graphics.ExtCullVertex pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -77838,6 +100746,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -77845,7 +100756,14 @@ namespace OpenTK.Graphics public static unsafe void CullParameter(OpenTK.Graphics.ExtCullVertex pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCullParameterfvEXT((OpenTK.Graphics.ExtCullVertex)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -77887,10 +100805,14 @@ namespace OpenTK.Graphics public static void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #endif + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #if DEBUG } + #endif } @@ -77931,10 +100853,14 @@ namespace OpenTK.Graphics public static void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #endif + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices); + #if DEBUG } + #endif } @@ -77977,18 +100903,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T5 indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78030,18 +100960,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T5 indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78084,18 +101018,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78137,18 +101075,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78191,18 +101133,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78244,18 +101190,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78298,18 +101248,22 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -78351,59 +101305,102 @@ namespace OpenTK.Graphics void DrawRangeElements(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T5[,,] indices) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawRangeElementsEXT((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtLightTexture", Version = "1.1", EntryPoint = "glApplyTextureEXT")] public static void ApplyTexture(OpenTK.Graphics.ExtLightTexture mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glApplyTextureEXT((OpenTK.Graphics.ExtLightTexture)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtLightTexture", Version = "1.1", EntryPoint = "glTextureLightEXT")] public static void TextureLight(OpenTK.Graphics.ExtLightTexture pname) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureLightEXT((OpenTK.Graphics.ExtLightTexture)pname); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtLightTexture", Version = "1.1", EntryPoint = "glTextureMaterialEXT")] public static void TextureMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureMaterialEXT((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPixelTransform", Version = "1.1", EntryPoint = "glPixelTransformParameteriEXT")] public static void PixelTransformParameter(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTransformParameteriEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPixelTransform", Version = "1.1", EntryPoint = "glPixelTransformParameterfEXT")] public static void PixelTransformParameter(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTransformParameterfEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPixelTransform", Version = "1.1", EntryPoint = "glPixelTransformParameterivEXT")] public static void PixelTransformParameterv(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -78411,12 +101408,19 @@ namespace OpenTK.Graphics Delegates.glPixelTransformParameterivEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPixelTransform", Version = "1.1", EntryPoint = "glPixelTransformParameterivEXT")] public static void PixelTransformParameterv(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -78424,6 +101428,9 @@ namespace OpenTK.Graphics Delegates.glPixelTransformParameterivEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -78431,13 +101438,24 @@ namespace OpenTK.Graphics public static unsafe void PixelTransformParameterv(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTransformParameterivEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPixelTransform", Version = "1.1", EntryPoint = "glPixelTransformParameterfvEXT")] public static void PixelTransformParameterv(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -78445,12 +101463,19 @@ namespace OpenTK.Graphics Delegates.glPixelTransformParameterfvEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtPixelTransform", Version = "1.1", EntryPoint = "glPixelTransformParameterfvEXT")] public static void PixelTransformParameterv(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -78458,6 +101483,9 @@ namespace OpenTK.Graphics Delegates.glPixelTransformParameterfvEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -78465,7 +101493,14 @@ namespace OpenTK.Graphics public static unsafe void PixelTransformParameterv(OpenTK.Graphics.ExtPixelTransform target, OpenTK.Graphics.ExtPixelTransform pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTransformParameterfvEXT((OpenTK.Graphics.ExtPixelTransform)target, (OpenTK.Graphics.ExtPixelTransform)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -78482,7 +101517,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(SByte red, SByte green, SByte blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3bEXT((SByte)red, (SByte)green, (SByte)blue); + #if DEBUG + } + #endif } @@ -78499,6 +101541,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -78506,6 +101552,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78522,6 +101571,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -78529,6 +101582,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78545,7 +101601,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3bvEXT((SByte*)v); + #if DEBUG + } + #endif } @@ -78561,7 +101624,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Double red, Double green, Double blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3dEXT((Double)red, (Double)green, (Double)blue); + #if DEBUG + } + #endif } @@ -78577,6 +101647,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -78584,6 +101658,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3dvEXT((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78599,6 +101676,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -78606,6 +101687,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3dvEXT((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78622,7 +101706,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3dvEXT((Double*)v); + #if DEBUG + } + #endif } @@ -78638,7 +101729,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Single red, Single green, Single blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3fEXT((Single)red, (Single)green, (Single)blue); + #if DEBUG + } + #endif } @@ -78654,6 +101752,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -78661,6 +101763,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3fvEXT((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78676,6 +101781,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -78683,6 +101792,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3fvEXT((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78699,7 +101811,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3fvEXT((Single*)v); + #if DEBUG + } + #endif } @@ -78715,7 +101834,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int32 red, Int32 green, Int32 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3iEXT((Int32)red, (Int32)green, (Int32)blue); + #if DEBUG + } + #endif } @@ -78731,6 +101857,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -78738,6 +101868,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3ivEXT((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78753,6 +101886,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -78760,6 +101897,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3ivEXT((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78776,7 +101916,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3ivEXT((Int32*)v); + #if DEBUG + } + #endif } @@ -78792,7 +101939,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int16 red, Int16 green, Int16 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3sEXT((Int16)red, (Int16)green, (Int16)blue); + #if DEBUG + } + #endif } @@ -78808,6 +101962,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -78815,6 +101973,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3svEXT((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78830,6 +101991,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -78837,6 +102002,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3svEXT((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78853,7 +102021,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3svEXT((Int16*)v); + #if DEBUG + } + #endif } @@ -78869,7 +102044,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Byte red, Byte green, Byte blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3ubEXT((Byte)red, (Byte)green, (Byte)blue); + #if DEBUG + } + #endif } @@ -78885,6 +102067,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -78892,6 +102078,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3ubvEXT((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78907,6 +102096,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -78914,6 +102107,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3ubvEXT((Byte*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78930,7 +102126,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3ubvEXT((Byte*)v); + #if DEBUG + } + #endif } @@ -78947,7 +102150,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt32 red, UInt32 green, UInt32 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3uiEXT((UInt32)red, (UInt32)green, (UInt32)blue); + #if DEBUG + } + #endif } @@ -78964,6 +102174,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -78971,6 +102185,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3uivEXT((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -78987,6 +102204,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -78994,6 +102215,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3uivEXT((UInt32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -79010,7 +102234,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3uivEXT((UInt32*)v); + #if DEBUG + } + #endif } @@ -79027,7 +102258,14 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt16 red, UInt16 green, UInt16 blue) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3usEXT((UInt16)red, (UInt16)green, (UInt16)blue); + #if DEBUG + } + #endif } @@ -79044,6 +102282,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -79051,6 +102293,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3usvEXT((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -79067,6 +102312,10 @@ namespace OpenTK.Graphics public static void SecondaryColor3(ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -79074,6 +102323,9 @@ namespace OpenTK.Graphics Delegates.glSecondaryColor3usvEXT((UInt16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -79090,7 +102342,14 @@ namespace OpenTK.Graphics public static unsafe void SecondaryColor3(UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSecondaryColor3usvEXT((UInt16*)v); + #if DEBUG + } + #endif } @@ -79121,10 +102380,14 @@ namespace OpenTK.Graphics public static void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -79156,18 +102419,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -79199,18 +102466,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -79242,18 +102513,22 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -79285,25 +102560,36 @@ namespace OpenTK.Graphics void SecondaryColorPointer(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerEXT((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTexturePerturbNormal", Version = "1.1", EntryPoint = "glTextureNormalEXT")] public static void TextureNormal(OpenTK.Graphics.ExtTexturePerturbNormal mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureNormalEXT((OpenTK.Graphics.ExtTexturePerturbNormal)mode); + #if DEBUG + } + #endif } @@ -79334,6 +102620,10 @@ namespace OpenTK.Graphics public static void MultiDrawArrays(OpenTK.Graphics.BeginMode mode, [Out] Int32[] first, [Out] Int32[] count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = first) @@ -79342,6 +102632,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawArraysEXT((OpenTK.Graphics.BeginMode)mode, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } @@ -79372,6 +102665,10 @@ namespace OpenTK.Graphics public static void MultiDrawArrays(OpenTK.Graphics.BeginMode mode, [Out] out Int32 first, [Out] out Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = &first) @@ -79382,6 +102679,9 @@ namespace OpenTK.Graphics count = *count_ptr; } } + #if DEBUG + } + #endif } @@ -79413,7 +102713,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawArrays(OpenTK.Graphics.BeginMode mode, [Out] Int32* first, [Out] Int32* count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawArraysEXT((OpenTK.Graphics.BeginMode)mode, (Int32*)first, (Int32*)count, (Int32)primcount); + #if DEBUG + } + #endif } @@ -79449,6 +102756,10 @@ namespace OpenTK.Graphics public static void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -79456,6 +102767,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawElementsEXT((OpenTK.Graphics.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); } } + #if DEBUG + } + #endif } @@ -79492,6 +102806,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -79507,6 +102825,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79543,6 +102864,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -79558,6 +102883,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79594,6 +102922,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -79609,6 +102941,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79645,6 +102980,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = count) @@ -79660,6 +102999,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79695,6 +103037,10 @@ namespace OpenTK.Graphics public static void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -79702,6 +103048,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawElementsEXT((OpenTK.Graphics.BeginMode)mode, (Int32*)count_ptr, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); } } + #if DEBUG + } + #endif } @@ -79738,6 +103087,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -79753,6 +103106,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79789,6 +103145,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -79804,6 +103164,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79840,6 +103203,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -79855,6 +103222,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79891,6 +103261,10 @@ namespace OpenTK.Graphics void MultiDrawElements(OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* count_ptr = &count) @@ -79906,6 +103280,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } @@ -79942,7 +103319,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawElementsEXT((OpenTK.Graphics.BeginMode)mode, (Int32*)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); + #if DEBUG + } + #endif } @@ -79980,6 +103364,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -79989,6 +103377,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -80026,6 +103417,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -80035,6 +103430,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -80072,6 +103470,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -80081,6 +103483,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -80118,6 +103523,10 @@ namespace OpenTK.Graphics unsafe void MultiDrawElements(OpenTK.Graphics.BeginMode mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -80127,6 +103536,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } @@ -80142,13 +103554,24 @@ namespace OpenTK.Graphics public static void FogCoord(Single coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordfEXT((Single)coord); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFogCoord", Version = "1.1", EntryPoint = "glFogCoordfvEXT")] public static void FogCoordv(Single[] coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coord_ptr = coord) @@ -80156,12 +103579,19 @@ namespace OpenTK.Graphics Delegates.glFogCoordfvEXT((Single*)coord_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFogCoord", Version = "1.1", EntryPoint = "glFogCoordfvEXT")] public static void FogCoordv(ref Single coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coord_ptr = &coord) @@ -80169,6 +103599,9 @@ namespace OpenTK.Graphics Delegates.glFogCoordfvEXT((Single*)coord_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80176,7 +103609,14 @@ namespace OpenTK.Graphics public static unsafe void FogCoordv(Single* coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoordfvEXT((Single*)coord); + #if DEBUG + } + #endif } @@ -80192,13 +103632,24 @@ namespace OpenTK.Graphics public static void FogCoord(Double coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoorddEXT((Double)coord); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFogCoord", Version = "1.1", EntryPoint = "glFogCoorddvEXT")] public static void FogCoordv(Double[] coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coord_ptr = coord) @@ -80206,12 +103657,19 @@ namespace OpenTK.Graphics Delegates.glFogCoorddvEXT((Double*)coord_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFogCoord", Version = "1.1", EntryPoint = "glFogCoorddvEXT")] public static void FogCoordv(ref Double coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coord_ptr = &coord) @@ -80219,6 +103677,9 @@ namespace OpenTK.Graphics Delegates.glFogCoorddvEXT((Double*)coord_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80226,7 +103687,14 @@ namespace OpenTK.Graphics public static unsafe void FogCoordv(Double* coord) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogCoorddvEXT((Double*)coord); + #if DEBUG + } + #endif } @@ -80252,10 +103720,14 @@ namespace OpenTK.Graphics public static void FogCoordPointer(OpenTK.Graphics.ExtFogCoord type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -80282,18 +103754,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.ExtFogCoord type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -80320,18 +103796,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.ExtFogCoord type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -80358,18 +103838,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.ExtFogCoord type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -80396,18 +103880,22 @@ namespace OpenTK.Graphics void FogCoordPointer(OpenTK.Graphics.ExtFogCoord type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerEXT((OpenTK.Graphics.ExtFogCoord)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80415,7 +103903,14 @@ namespace OpenTK.Graphics public static void Tangent3(SByte tx, SByte ty, SByte tz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3bEXT((SByte)tx, (SByte)ty, (SByte)tz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3bEXT")] @@ -80430,6 +103925,10 @@ namespace OpenTK.Graphics public static void Tangent3(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -80437,12 +103936,19 @@ namespace OpenTK.Graphics Delegates.glTangent3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3bvEXT")] public static void Tangent3(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -80450,6 +103956,9 @@ namespace OpenTK.Graphics Delegates.glTangent3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80457,6 +103966,10 @@ namespace OpenTK.Graphics public static void Tangent3(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -80464,12 +103977,19 @@ namespace OpenTK.Graphics Delegates.glTangent3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3bvEXT")] public static void Tangent3(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -80477,6 +103997,9 @@ namespace OpenTK.Graphics Delegates.glTangent3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80484,7 +104007,14 @@ namespace OpenTK.Graphics public static unsafe void Tangent3(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3bvEXT((SByte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80492,20 +104022,38 @@ namespace OpenTK.Graphics public static unsafe void Tangent3(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3bvEXT((SByte*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3dEXT")] public static void Tangent3(Double tx, Double ty, Double tz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3dEXT((Double)tx, (Double)ty, (Double)tz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3dvEXT")] public static void Tangent3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -80513,12 +104061,19 @@ namespace OpenTK.Graphics Delegates.glTangent3dvEXT((Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3dvEXT")] public static void Tangent3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -80526,6 +104081,9 @@ namespace OpenTK.Graphics Delegates.glTangent3dvEXT((Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80533,20 +104091,38 @@ namespace OpenTK.Graphics public static unsafe void Tangent3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3dvEXT((Double*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3fEXT")] public static void Tangent3(Single tx, Single ty, Single tz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3fEXT((Single)tx, (Single)ty, (Single)tz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3fvEXT")] public static void Tangent3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -80554,12 +104130,19 @@ namespace OpenTK.Graphics Delegates.glTangent3fvEXT((Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3fvEXT")] public static void Tangent3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -80567,6 +104150,9 @@ namespace OpenTK.Graphics Delegates.glTangent3fvEXT((Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80574,20 +104160,38 @@ namespace OpenTK.Graphics public static unsafe void Tangent3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3fvEXT((Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3iEXT")] public static void Tangent3(Int32 tx, Int32 ty, Int32 tz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3iEXT((Int32)tx, (Int32)ty, (Int32)tz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3ivEXT")] public static void Tangent3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -80595,12 +104199,19 @@ namespace OpenTK.Graphics Delegates.glTangent3ivEXT((Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3ivEXT")] public static void Tangent3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -80608,6 +104219,9 @@ namespace OpenTK.Graphics Delegates.glTangent3ivEXT((Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80615,20 +104229,38 @@ namespace OpenTK.Graphics public static unsafe void Tangent3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3ivEXT((Int32*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3sEXT")] public static void Tangent3(Int16 tx, Int16 ty, Int16 tz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3sEXT((Int16)tx, (Int16)ty, (Int16)tz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3svEXT")] public static void Tangent3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -80636,12 +104268,19 @@ namespace OpenTK.Graphics Delegates.glTangent3svEXT((Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangent3svEXT")] public static void Tangent3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -80649,6 +104288,9 @@ namespace OpenTK.Graphics Delegates.glTangent3svEXT((Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80656,7 +104298,14 @@ namespace OpenTK.Graphics public static unsafe void Tangent3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTangent3svEXT((Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80664,7 +104313,14 @@ namespace OpenTK.Graphics public static void Binormal3(SByte bx, SByte by, SByte bz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3bEXT((SByte)bx, (SByte)by, (SByte)bz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3bEXT")] @@ -80679,6 +104335,10 @@ namespace OpenTK.Graphics public static void Binormal3(SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -80686,12 +104346,19 @@ namespace OpenTK.Graphics Delegates.glBinormal3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3bvEXT")] public static void Binormal3(Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -80699,6 +104366,9 @@ namespace OpenTK.Graphics Delegates.glBinormal3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80706,6 +104376,10 @@ namespace OpenTK.Graphics public static void Binormal3(ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -80713,12 +104387,19 @@ namespace OpenTK.Graphics Delegates.glBinormal3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3bvEXT")] public static void Binormal3(ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -80726,6 +104407,9 @@ namespace OpenTK.Graphics Delegates.glBinormal3bvEXT((SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80733,7 +104417,14 @@ namespace OpenTK.Graphics public static unsafe void Binormal3(SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3bvEXT((SByte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80741,20 +104432,38 @@ namespace OpenTK.Graphics public static unsafe void Binormal3(Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3bvEXT((SByte*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3dEXT")] public static void Binormal3(Double bx, Double by, Double bz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3dEXT((Double)bx, (Double)by, (Double)bz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3dvEXT")] public static void Binormal3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -80762,12 +104471,19 @@ namespace OpenTK.Graphics Delegates.glBinormal3dvEXT((Double*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3dvEXT")] public static void Binormal3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -80775,6 +104491,9 @@ namespace OpenTK.Graphics Delegates.glBinormal3dvEXT((Double*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80782,20 +104501,38 @@ namespace OpenTK.Graphics public static unsafe void Binormal3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3dvEXT((Double*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3fEXT")] public static void Binormal3(Single bx, Single by, Single bz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3fEXT((Single)bx, (Single)by, (Single)bz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3fvEXT")] public static void Binormal3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -80803,12 +104540,19 @@ namespace OpenTK.Graphics Delegates.glBinormal3fvEXT((Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3fvEXT")] public static void Binormal3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -80816,6 +104560,9 @@ namespace OpenTK.Graphics Delegates.glBinormal3fvEXT((Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80823,20 +104570,38 @@ namespace OpenTK.Graphics public static unsafe void Binormal3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3fvEXT((Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3iEXT")] public static void Binormal3(Int32 bx, Int32 by, Int32 bz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3iEXT((Int32)bx, (Int32)by, (Int32)bz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3ivEXT")] public static void Binormal3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -80844,12 +104609,19 @@ namespace OpenTK.Graphics Delegates.glBinormal3ivEXT((Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3ivEXT")] public static void Binormal3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -80857,6 +104629,9 @@ namespace OpenTK.Graphics Delegates.glBinormal3ivEXT((Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80864,20 +104639,38 @@ namespace OpenTK.Graphics public static unsafe void Binormal3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3ivEXT((Int32*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3sEXT")] public static void Binormal3(Int16 bx, Int16 by, Int16 bz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3sEXT((Int16)bx, (Int16)by, (Int16)bz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3svEXT")] public static void Binormal3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -80885,12 +104678,19 @@ namespace OpenTK.Graphics Delegates.glBinormal3svEXT((Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormal3svEXT")] public static void Binormal3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -80898,6 +104698,9 @@ namespace OpenTK.Graphics Delegates.glBinormal3svEXT((Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -80905,17 +104708,28 @@ namespace OpenTK.Graphics public static unsafe void Binormal3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBinormal3svEXT((Int16*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangentPointerEXT")] public static void TangentPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangentPointerEXT")] @@ -80923,18 +104737,22 @@ namespace OpenTK.Graphics void TangentPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangentPointerEXT")] @@ -80942,18 +104760,22 @@ namespace OpenTK.Graphics void TangentPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangentPointerEXT")] @@ -80961,18 +104783,22 @@ namespace OpenTK.Graphics void TangentPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glTangentPointerEXT")] @@ -80980,28 +104806,36 @@ namespace OpenTK.Graphics void TangentPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTangentPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormalPointerEXT")] public static void BinormalPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormalPointerEXT")] @@ -81009,18 +104843,22 @@ namespace OpenTK.Graphics void BinormalPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormalPointerEXT")] @@ -81028,18 +104866,22 @@ namespace OpenTK.Graphics void BinormalPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormalPointerEXT")] @@ -81047,18 +104889,22 @@ namespace OpenTK.Graphics void BinormalPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtCoordinateFrame", Version = "1.1", EntryPoint = "glBinormalPointerEXT")] @@ -81066,18 +104912,22 @@ namespace OpenTK.Graphics void BinormalPointer(OpenTK.Graphics.ExtCoordinateFrame type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glBinormalPointerEXT((OpenTK.Graphics.ExtCoordinateFrame)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -81108,20 +104958,38 @@ namespace OpenTK.Graphics public static void BlendFuncSeparate(OpenTK.Graphics.ExtBlendFuncSeparate sfactorRGB, OpenTK.Graphics.ExtBlendFuncSeparate dfactorRGB, OpenTK.Graphics.ExtBlendFuncSeparate sfactorAlpha, OpenTK.Graphics.ExtBlendFuncSeparate dfactorAlpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendFuncSeparateEXT((OpenTK.Graphics.ExtBlendFuncSeparate)sfactorRGB, (OpenTK.Graphics.ExtBlendFuncSeparate)dfactorRGB, (OpenTK.Graphics.ExtBlendFuncSeparate)sfactorAlpha, (OpenTK.Graphics.ExtBlendFuncSeparate)dfactorAlpha); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightfEXT")] public static void VertexWeight(Single weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexWeightfEXT((Single)weight); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightfvEXT")] public static void VertexWeightv(Single[] weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weight_ptr = weight) @@ -81129,12 +104997,19 @@ namespace OpenTK.Graphics Delegates.glVertexWeightfvEXT((Single*)weight_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightfvEXT")] public static void VertexWeightv(ref Single weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weight_ptr = &weight) @@ -81142,6 +105017,9 @@ namespace OpenTK.Graphics Delegates.glVertexWeightfvEXT((Single*)weight_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81149,17 +105027,28 @@ namespace OpenTK.Graphics public static unsafe void VertexWeightv(Single* weight) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexWeightfvEXT((Single*)weight); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightPointerEXT")] public static void VertexWeightPointer(Int32 size, OpenTK.Graphics.ExtVertexWeighting type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightPointerEXT")] @@ -81167,18 +105056,22 @@ namespace OpenTK.Graphics void VertexWeightPointer(Int32 size, OpenTK.Graphics.ExtVertexWeighting type, Int32 stride, [In, Out] ref T3 pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightPointerEXT")] @@ -81186,18 +105079,22 @@ namespace OpenTK.Graphics void VertexWeightPointer(Int32 size, OpenTK.Graphics.ExtVertexWeighting type, Int32 stride, [In, Out] T3[] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightPointerEXT")] @@ -81205,18 +105102,22 @@ namespace OpenTK.Graphics void VertexWeightPointer(Int32 size, OpenTK.Graphics.ExtVertexWeighting type, Int32 stride, [In, Out] T3[,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexWeighting", Version = "1.1", EntryPoint = "glVertexWeightPointerEXT")] @@ -81224,46 +105125,78 @@ namespace OpenTK.Graphics void VertexWeightPointer(Int32 size, OpenTK.Graphics.ExtVertexWeighting type, Int32 stride, [In, Out] T3[,,] pointer) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexWeightPointerEXT((Int32)size, (OpenTK.Graphics.ExtVertexWeighting)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtMultisample", Version = "1.0", EntryPoint = "glSampleMaskEXT")] public static void SampleMask(Single value, bool invert) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSampleMaskEXT((Single)value, (bool)invert); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtMultisample", Version = "1.0", EntryPoint = "glSamplePatternEXT")] public static void SamplePattern(OpenTK.Graphics.ExtMultisample pattern) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSamplePatternEXT((OpenTK.Graphics.ExtMultisample)pattern); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBeginVertexShaderEXT")] public static void BeginVertexShader() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginVertexShaderEXT(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glEndVertexShaderEXT")] public static void EndVertexShader() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndVertexShaderEXT(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81271,7 +105204,14 @@ namespace OpenTK.Graphics public static void BindVertexShader(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindVertexShaderEXT((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBindVertexShaderEXT")] @@ -81286,7 +105226,14 @@ namespace OpenTK.Graphics public static Int32 GenVertexShaders(UInt32 range) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGenVertexShadersEXT((UInt32)range); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGenVertexShadersEXT")] @@ -81301,7 +105248,14 @@ namespace OpenTK.Graphics public static void DeleteVertexShader(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteVertexShaderEXT((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glDeleteVertexShaderEXT")] @@ -81316,7 +105270,14 @@ namespace OpenTK.Graphics public static void ShaderOp1(OpenTK.Graphics.ExtVertexShader op, UInt32 res, UInt32 arg1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderOp1EXT((OpenTK.Graphics.ExtVertexShader)op, (UInt32)res, (UInt32)arg1); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glShaderOp1EXT")] @@ -81331,7 +105292,14 @@ namespace OpenTK.Graphics public static void ShaderOp2(OpenTK.Graphics.ExtVertexShader op, UInt32 res, UInt32 arg1, UInt32 arg2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderOp2EXT((OpenTK.Graphics.ExtVertexShader)op, (UInt32)res, (UInt32)arg1, (UInt32)arg2); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glShaderOp2EXT")] @@ -81346,7 +105314,14 @@ namespace OpenTK.Graphics public static void ShaderOp3(OpenTK.Graphics.ExtVertexShader op, UInt32 res, UInt32 arg1, UInt32 arg2, UInt32 arg3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glShaderOp3EXT((OpenTK.Graphics.ExtVertexShader)op, (UInt32)res, (UInt32)arg1, (UInt32)arg2, (UInt32)arg3); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glShaderOp3EXT")] @@ -81361,7 +105336,14 @@ namespace OpenTK.Graphics public static void Swizzle(UInt32 res, UInt32 @in, OpenTK.Graphics.ExtVertexShader outX, OpenTK.Graphics.ExtVertexShader outY, OpenTK.Graphics.ExtVertexShader outZ, OpenTK.Graphics.ExtVertexShader outW) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSwizzleEXT((UInt32)res, (UInt32)@in, (OpenTK.Graphics.ExtVertexShader)outX, (OpenTK.Graphics.ExtVertexShader)outY, (OpenTK.Graphics.ExtVertexShader)outZ, (OpenTK.Graphics.ExtVertexShader)outW); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSwizzleEXT")] @@ -81376,7 +105358,14 @@ namespace OpenTK.Graphics public static void WriteMask(UInt32 res, UInt32 @in, OpenTK.Graphics.ExtVertexShader outX, OpenTK.Graphics.ExtVertexShader outY, OpenTK.Graphics.ExtVertexShader outZ, OpenTK.Graphics.ExtVertexShader outW) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWriteMaskEXT((UInt32)res, (UInt32)@in, (OpenTK.Graphics.ExtVertexShader)outX, (OpenTK.Graphics.ExtVertexShader)outY, (OpenTK.Graphics.ExtVertexShader)outZ, (OpenTK.Graphics.ExtVertexShader)outW); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glWriteMaskEXT")] @@ -81391,7 +105380,14 @@ namespace OpenTK.Graphics public static void InsertComponent(UInt32 res, UInt32 src, UInt32 num) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glInsertComponentEXT((UInt32)res, (UInt32)src, (UInt32)num); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glInsertComponentEXT")] @@ -81406,7 +105402,14 @@ namespace OpenTK.Graphics public static void ExtractComponent(UInt32 res, UInt32 src, UInt32 num) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glExtractComponentEXT((UInt32)res, (UInt32)src, (UInt32)num); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glExtractComponentEXT")] @@ -81421,7 +105424,14 @@ namespace OpenTK.Graphics public static Int32 GenSymbol(OpenTK.Graphics.ExtVertexShader datatype, OpenTK.Graphics.ExtVertexShader storagetype, OpenTK.Graphics.ExtVertexShader range, UInt32 components) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGenSymbolsEXT((OpenTK.Graphics.ExtVertexShader)datatype, (OpenTK.Graphics.ExtVertexShader)storagetype, (OpenTK.Graphics.ExtVertexShader)range, (UInt32)components); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGenSymbolsEXT")] @@ -81436,20 +105446,28 @@ namespace OpenTK.Graphics public static void SetInvariant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, IntPtr addr) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #endif + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetInvariantEXT")] public static void SetInvariant(Int32 id, OpenTK.Graphics.ExtVertexShader type, IntPtr addr) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #endif + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -81458,18 +105476,22 @@ namespace OpenTK.Graphics void SetInvariant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] ref T2 addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetInvariantEXT")] @@ -81477,18 +105499,22 @@ namespace OpenTK.Graphics void SetInvariant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] ref T2 addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81497,18 +105523,22 @@ namespace OpenTK.Graphics void SetInvariant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetInvariantEXT")] @@ -81516,18 +105546,22 @@ namespace OpenTK.Graphics void SetInvariant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81536,18 +105570,22 @@ namespace OpenTK.Graphics void SetInvariant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetInvariantEXT")] @@ -81555,18 +105593,22 @@ namespace OpenTK.Graphics void SetInvariant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81575,18 +105617,22 @@ namespace OpenTK.Graphics void SetInvariant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetInvariantEXT")] @@ -81594,18 +105640,22 @@ namespace OpenTK.Graphics void SetInvariant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetInvariantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81613,20 +105663,28 @@ namespace OpenTK.Graphics public static void SetLocalConstant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, IntPtr addr) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #endif + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetLocalConstantEXT")] public static void SetLocalConstant(Int32 id, OpenTK.Graphics.ExtVertexShader type, IntPtr addr) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #endif + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -81635,18 +105693,22 @@ namespace OpenTK.Graphics void SetLocalConstant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] ref T2 addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetLocalConstantEXT")] @@ -81654,18 +105716,22 @@ namespace OpenTK.Graphics void SetLocalConstant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] ref T2 addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81674,18 +105740,22 @@ namespace OpenTK.Graphics void SetLocalConstant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetLocalConstantEXT")] @@ -81693,18 +105763,22 @@ namespace OpenTK.Graphics void SetLocalConstant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81713,18 +105787,22 @@ namespace OpenTK.Graphics void SetLocalConstant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetLocalConstantEXT")] @@ -81732,18 +105810,22 @@ namespace OpenTK.Graphics void SetLocalConstant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81752,18 +105834,22 @@ namespace OpenTK.Graphics void SetLocalConstant(UInt32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glSetLocalConstantEXT")] @@ -81771,18 +105857,22 @@ namespace OpenTK.Graphics void SetLocalConstant(Int32 id, OpenTK.Graphics.ExtVertexShader type, [In, Out] T2[,,] addr) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glSetLocalConstantEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81790,6 +105880,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, SByte[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* addr_ptr = addr) @@ -81797,6 +105891,9 @@ namespace OpenTK.Graphics Delegates.glVariantbvEXT((UInt32)id, (SByte*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81804,6 +105901,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref SByte addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* addr_ptr = &addr) @@ -81811,6 +105912,9 @@ namespace OpenTK.Graphics Delegates.glVariantbvEXT((UInt32)id, (SByte*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81818,7 +105922,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, SByte* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantbvEXT((UInt32)id, (SByte*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81826,6 +105937,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, Int16[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* addr_ptr = addr) @@ -81833,12 +105948,19 @@ namespace OpenTK.Graphics Delegates.glVariantsvEXT((UInt32)id, (Int16*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantsvEXT")] public static void Variant(Int32 id, Int16[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* addr_ptr = addr) @@ -81846,6 +105968,9 @@ namespace OpenTK.Graphics Delegates.glVariantsvEXT((UInt32)id, (Int16*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81853,6 +105978,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref Int16 addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* addr_ptr = &addr) @@ -81860,12 +105989,19 @@ namespace OpenTK.Graphics Delegates.glVariantsvEXT((UInt32)id, (Int16*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantsvEXT")] public static void Variant(Int32 id, ref Int16 addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* addr_ptr = &addr) @@ -81873,6 +106009,9 @@ namespace OpenTK.Graphics Delegates.glVariantsvEXT((UInt32)id, (Int16*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81880,7 +106019,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, Int16* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantsvEXT((UInt32)id, (Int16*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81888,7 +106034,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(Int32 id, Int16* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantsvEXT((UInt32)id, (Int16*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81896,6 +106049,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, Int32[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* addr_ptr = addr) @@ -81903,12 +106060,19 @@ namespace OpenTK.Graphics Delegates.glVariantivEXT((UInt32)id, (Int32*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantivEXT")] public static void Variant(Int32 id, Int32[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* addr_ptr = addr) @@ -81916,6 +106080,9 @@ namespace OpenTK.Graphics Delegates.glVariantivEXT((UInt32)id, (Int32*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81923,6 +106090,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref Int32 addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* addr_ptr = &addr) @@ -81930,12 +106101,19 @@ namespace OpenTK.Graphics Delegates.glVariantivEXT((UInt32)id, (Int32*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantivEXT")] public static void Variant(Int32 id, ref Int32 addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* addr_ptr = &addr) @@ -81943,6 +106121,9 @@ namespace OpenTK.Graphics Delegates.glVariantivEXT((UInt32)id, (Int32*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81950,7 +106131,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, Int32* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantivEXT((UInt32)id, (Int32*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81958,7 +106146,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(Int32 id, Int32* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantivEXT((UInt32)id, (Int32*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81966,6 +106161,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, Single[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* addr_ptr = addr) @@ -81973,12 +106172,19 @@ namespace OpenTK.Graphics Delegates.glVariantfvEXT((UInt32)id, (Single*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantfvEXT")] public static void Variant(Int32 id, Single[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* addr_ptr = addr) @@ -81986,6 +106192,9 @@ namespace OpenTK.Graphics Delegates.glVariantfvEXT((UInt32)id, (Single*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -81993,6 +106202,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref Single addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* addr_ptr = &addr) @@ -82000,12 +106213,19 @@ namespace OpenTK.Graphics Delegates.glVariantfvEXT((UInt32)id, (Single*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantfvEXT")] public static void Variant(Int32 id, ref Single addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* addr_ptr = &addr) @@ -82013,6 +106233,9 @@ namespace OpenTK.Graphics Delegates.glVariantfvEXT((UInt32)id, (Single*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82020,7 +106243,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, Single* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantfvEXT((UInt32)id, (Single*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82028,7 +106258,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(Int32 id, Single* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantfvEXT((UInt32)id, (Single*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82036,6 +106273,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, Double[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* addr_ptr = addr) @@ -82043,12 +106284,19 @@ namespace OpenTK.Graphics Delegates.glVariantdvEXT((UInt32)id, (Double*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantdvEXT")] public static void Variant(Int32 id, Double[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* addr_ptr = addr) @@ -82056,6 +106304,9 @@ namespace OpenTK.Graphics Delegates.glVariantdvEXT((UInt32)id, (Double*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82063,6 +106314,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref Double addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* addr_ptr = &addr) @@ -82070,12 +106325,19 @@ namespace OpenTK.Graphics Delegates.glVariantdvEXT((UInt32)id, (Double*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantdvEXT")] public static void Variant(Int32 id, ref Double addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* addr_ptr = &addr) @@ -82083,6 +106345,9 @@ namespace OpenTK.Graphics Delegates.glVariantdvEXT((UInt32)id, (Double*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82090,7 +106355,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, Double* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantdvEXT((UInt32)id, (Double*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82098,7 +106370,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(Int32 id, Double* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantdvEXT((UInt32)id, (Double*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82106,6 +106385,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, Byte[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* addr_ptr = addr) @@ -82113,12 +106396,19 @@ namespace OpenTK.Graphics Delegates.glVariantubvEXT((UInt32)id, (Byte*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantubvEXT")] public static void Variant(Int32 id, Byte[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* addr_ptr = addr) @@ -82126,6 +106416,9 @@ namespace OpenTK.Graphics Delegates.glVariantubvEXT((UInt32)id, (Byte*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82133,6 +106426,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref Byte addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* addr_ptr = &addr) @@ -82140,12 +106437,19 @@ namespace OpenTK.Graphics Delegates.glVariantubvEXT((UInt32)id, (Byte*)addr_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantubvEXT")] public static void Variant(Int32 id, ref Byte addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* addr_ptr = &addr) @@ -82153,6 +106457,9 @@ namespace OpenTK.Graphics Delegates.glVariantubvEXT((UInt32)id, (Byte*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82160,7 +106467,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, Byte* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantubvEXT((UInt32)id, (Byte*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82168,7 +106482,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(Int32 id, Byte* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantubvEXT((UInt32)id, (Byte*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82176,6 +106497,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, UInt16[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* addr_ptr = addr) @@ -82183,6 +106508,9 @@ namespace OpenTK.Graphics Delegates.glVariantusvEXT((UInt32)id, (UInt16*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82190,6 +106518,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref UInt16 addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* addr_ptr = &addr) @@ -82197,6 +106529,9 @@ namespace OpenTK.Graphics Delegates.glVariantusvEXT((UInt32)id, (UInt16*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82204,7 +106539,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, UInt16* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantusvEXT((UInt32)id, (UInt16*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82212,6 +106554,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, UInt32[] addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* addr_ptr = addr) @@ -82219,6 +106565,9 @@ namespace OpenTK.Graphics Delegates.glVariantuivEXT((UInt32)id, (UInt32*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82226,6 +106575,10 @@ namespace OpenTK.Graphics public static void Variant(UInt32 id, ref UInt32 addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* addr_ptr = &addr) @@ -82233,6 +106586,9 @@ namespace OpenTK.Graphics Delegates.glVariantuivEXT((UInt32)id, (UInt32*)addr_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82240,7 +106596,14 @@ namespace OpenTK.Graphics public static unsafe void Variant(UInt32 id, UInt32* addr) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantuivEXT((UInt32)id, (UInt32*)addr); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82248,20 +106611,28 @@ namespace OpenTK.Graphics public static void VariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader type, UInt32 stride, IntPtr addr) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr); + #endif + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantPointerEXT")] public static void VariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader type, Int32 stride, IntPtr addr) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr); + #endif + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -82270,18 +106641,22 @@ namespace OpenTK.Graphics void VariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader type, UInt32 stride, [In, Out] ref T3 addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantPointerEXT")] @@ -82289,18 +106664,22 @@ namespace OpenTK.Graphics void VariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader type, Int32 stride, [In, Out] ref T3 addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82309,18 +106688,22 @@ namespace OpenTK.Graphics void VariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader type, UInt32 stride, [In, Out] T3[] addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantPointerEXT")] @@ -82328,18 +106711,22 @@ namespace OpenTK.Graphics void VariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader type, Int32 stride, [In, Out] T3[] addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82348,18 +106735,22 @@ namespace OpenTK.Graphics void VariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader type, UInt32 stride, [In, Out] T3[,] addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantPointerEXT")] @@ -82367,18 +106758,22 @@ namespace OpenTK.Graphics void VariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader type, Int32 stride, [In, Out] T3[,] addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82387,18 +106782,22 @@ namespace OpenTK.Graphics void VariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader type, UInt32 stride, [In, Out] T3[,,] addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glVariantPointerEXT")] @@ -82406,18 +106805,22 @@ namespace OpenTK.Graphics void VariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader type, Int32 stride, [In, Out] T3[,,] addr) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); - try - { - Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); - } - finally - { - addr_ptr.Free(); - } + #endif + GCHandle addr_ptr = GCHandle.Alloc(addr, GCHandleType.Pinned); + try + { + Delegates.glVariantPointerEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)type, (UInt32)stride, (IntPtr)addr_ptr.AddrOfPinnedObject()); } + finally + { + addr_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82425,7 +106828,14 @@ namespace OpenTK.Graphics public static void EnableVariantClientState(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnableVariantClientStateEXT((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glEnableVariantClientStateEXT")] @@ -82440,7 +106850,14 @@ namespace OpenTK.Graphics public static void DisableVariantClientState(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisableVariantClientStateEXT((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glDisableVariantClientStateEXT")] @@ -82454,35 +106871,70 @@ namespace OpenTK.Graphics public static Int32 BindLightParameter(OpenTK.Graphics.LightName light, OpenTK.Graphics.LightParameter value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glBindLightParameterEXT((OpenTK.Graphics.LightName)light, (OpenTK.Graphics.LightParameter)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBindMaterialParameterEXT")] public static Int32 BindMaterialParameter(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glBindMaterialParameterEXT((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBindTexGenParameterEXT")] public static Int32 BindTexGenParameter(OpenTK.Graphics.TextureUnit unit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glBindTexGenParameterEXT((OpenTK.Graphics.TextureUnit)unit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBindTextureUnitParameterEXT")] public static Int32 BindTextureUnitParameter(OpenTK.Graphics.TextureUnit unit, OpenTK.Graphics.ExtVertexShader value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glBindTextureUnitParameterEXT((OpenTK.Graphics.TextureUnit)unit, (OpenTK.Graphics.ExtVertexShader)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBindParameterEXT")] public static Int32 BindParameter(OpenTK.Graphics.ExtVertexShader value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glBindParameterEXT((OpenTK.Graphics.ExtVertexShader)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82490,7 +106942,14 @@ namespace OpenTK.Graphics public static bool IsVariantEnabled(UInt32 id, OpenTK.Graphics.ExtVertexShader cap) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsVariantEnabledEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)cap); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glIsVariantEnabledEXT")] @@ -82505,6 +106964,10 @@ namespace OpenTK.Graphics public static void GetVariantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -82512,12 +106975,19 @@ namespace OpenTK.Graphics Delegates.glGetVariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantBooleanvEXT")] public static void GetVariantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -82525,6 +106995,9 @@ namespace OpenTK.Graphics Delegates.glGetVariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82532,6 +107005,10 @@ namespace OpenTK.Graphics public static void GetVariantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -82540,12 +107017,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantBooleanvEXT")] public static void GetVariantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -82554,6 +107038,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82561,7 +107048,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82569,7 +107063,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82577,6 +107078,10 @@ namespace OpenTK.Graphics public static void GetVariantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -82584,12 +107089,19 @@ namespace OpenTK.Graphics Delegates.glGetVariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantIntegervEXT")] public static void GetVariantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -82597,6 +107109,9 @@ namespace OpenTK.Graphics Delegates.glGetVariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82604,6 +107119,10 @@ namespace OpenTK.Graphics public static void GetVariantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -82612,12 +107131,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantIntegervEXT")] public static void GetVariantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -82626,6 +107152,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82633,7 +107162,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82641,7 +107177,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82649,6 +107192,10 @@ namespace OpenTK.Graphics public static void GetVariantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -82656,12 +107203,19 @@ namespace OpenTK.Graphics Delegates.glGetVariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantFloatvEXT")] public static void GetVariantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -82669,6 +107223,9 @@ namespace OpenTK.Graphics Delegates.glGetVariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82676,6 +107233,10 @@ namespace OpenTK.Graphics public static void GetVariantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -82684,12 +107245,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantFloatvEXT")] public static void GetVariantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -82698,6 +107266,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82705,7 +107276,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82713,7 +107291,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82721,20 +107306,28 @@ namespace OpenTK.Graphics public static void GetVariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data); + #endif + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantPointervEXT")] public static void GetVariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data); + #endif + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -82743,18 +107336,22 @@ namespace OpenTK.Graphics void GetVariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] ref T2 data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantPointervEXT")] @@ -82762,18 +107359,22 @@ namespace OpenTK.Graphics void GetVariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] ref T2 data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82782,18 +107383,22 @@ namespace OpenTK.Graphics void GetVariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] T2[] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantPointervEXT")] @@ -82801,18 +107406,22 @@ namespace OpenTK.Graphics void GetVariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] T2[] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82821,18 +107430,22 @@ namespace OpenTK.Graphics void GetVariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] T2[,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantPointervEXT")] @@ -82840,18 +107453,22 @@ namespace OpenTK.Graphics void GetVariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] T2[,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82860,18 +107477,22 @@ namespace OpenTK.Graphics void GetVariantPointer(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] T2[,,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetVariantPointervEXT")] @@ -82879,18 +107500,22 @@ namespace OpenTK.Graphics void GetVariantPointer(Int32 id, OpenTK.Graphics.ExtVertexShader value, [In, Out] T2[,,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetVariantPointervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82898,6 +107523,10 @@ namespace OpenTK.Graphics public static void GetInvariantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -82905,12 +107534,19 @@ namespace OpenTK.Graphics Delegates.glGetInvariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetInvariantBooleanvEXT")] public static void GetInvariantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -82918,6 +107554,9 @@ namespace OpenTK.Graphics Delegates.glGetInvariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82925,6 +107564,10 @@ namespace OpenTK.Graphics public static void GetInvariantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -82933,12 +107576,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetInvariantBooleanvEXT")] public static void GetInvariantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -82947,6 +107597,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82954,7 +107607,14 @@ namespace OpenTK.Graphics public static unsafe void GetInvariantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInvariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82962,7 +107622,14 @@ namespace OpenTK.Graphics public static unsafe void GetInvariantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInvariantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82970,6 +107637,10 @@ namespace OpenTK.Graphics public static void GetInvariantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -82977,12 +107648,19 @@ namespace OpenTK.Graphics Delegates.glGetInvariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetInvariantIntegervEXT")] public static void GetInvariantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -82990,6 +107668,9 @@ namespace OpenTK.Graphics Delegates.glGetInvariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -82997,6 +107678,10 @@ namespace OpenTK.Graphics public static void GetInvariantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -83005,12 +107690,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetInvariantIntegervEXT")] public static void GetInvariantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -83019,6 +107711,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83026,7 +107721,14 @@ namespace OpenTK.Graphics public static unsafe void GetInvariantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInvariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83034,7 +107736,14 @@ namespace OpenTK.Graphics public static unsafe void GetInvariantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInvariantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83042,6 +107751,10 @@ namespace OpenTK.Graphics public static void GetInvariantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -83049,12 +107762,19 @@ namespace OpenTK.Graphics Delegates.glGetInvariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetInvariantFloatvEXT")] public static void GetInvariantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -83062,6 +107782,9 @@ namespace OpenTK.Graphics Delegates.glGetInvariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83069,6 +107792,10 @@ namespace OpenTK.Graphics public static void GetInvariantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -83077,12 +107804,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetInvariantFloatvEXT")] public static void GetInvariantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -83091,6 +107825,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83098,7 +107835,14 @@ namespace OpenTK.Graphics public static unsafe void GetInvariantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInvariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83106,7 +107850,14 @@ namespace OpenTK.Graphics public static unsafe void GetInvariantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetInvariantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83114,6 +107865,10 @@ namespace OpenTK.Graphics public static void GetLocalConstantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -83121,12 +107876,19 @@ namespace OpenTK.Graphics Delegates.glGetLocalConstantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetLocalConstantBooleanvEXT")] public static void GetLocalConstantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -83134,6 +107896,9 @@ namespace OpenTK.Graphics Delegates.glGetLocalConstantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83141,6 +107906,10 @@ namespace OpenTK.Graphics public static void GetLocalConstantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -83149,12 +107918,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetLocalConstantBooleanvEXT")] public static void GetLocalConstantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -83163,6 +107939,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83170,7 +107949,14 @@ namespace OpenTK.Graphics public static unsafe void GetLocalConstantBoolean(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLocalConstantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83178,7 +107964,14 @@ namespace OpenTK.Graphics public static unsafe void GetLocalConstantBoolean(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLocalConstantBooleanvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83186,6 +107979,10 @@ namespace OpenTK.Graphics public static void GetLocalConstantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -83193,12 +107990,19 @@ namespace OpenTK.Graphics Delegates.glGetLocalConstantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetLocalConstantIntegervEXT")] public static void GetLocalConstantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -83206,6 +108010,9 @@ namespace OpenTK.Graphics Delegates.glGetLocalConstantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83213,6 +108020,10 @@ namespace OpenTK.Graphics public static void GetLocalConstantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -83221,12 +108032,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetLocalConstantIntegervEXT")] public static void GetLocalConstantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -83235,6 +108053,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83242,7 +108063,14 @@ namespace OpenTK.Graphics public static unsafe void GetLocalConstantInteger(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLocalConstantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83250,7 +108078,14 @@ namespace OpenTK.Graphics public static unsafe void GetLocalConstantInteger(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLocalConstantIntegervEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83258,6 +108093,10 @@ namespace OpenTK.Graphics public static void GetLocalConstantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -83265,12 +108104,19 @@ namespace OpenTK.Graphics Delegates.glGetLocalConstantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetLocalConstantFloatvEXT")] public static void GetLocalConstantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -83278,6 +108124,9 @@ namespace OpenTK.Graphics Delegates.glGetLocalConstantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83285,6 +108134,10 @@ namespace OpenTK.Graphics public static void GetLocalConstantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -83293,12 +108146,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glGetLocalConstantFloatvEXT")] public static void GetLocalConstantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -83307,6 +108167,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83314,7 +108177,14 @@ namespace OpenTK.Graphics public static unsafe void GetLocalConstantFloat(UInt32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLocalConstantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83322,21 +108192,42 @@ namespace OpenTK.Graphics public static unsafe void GetLocalConstantFloat(Int32 id, OpenTK.Graphics.ExtVertexShader value, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetLocalConstantFloatvEXT((UInt32)id, (OpenTK.Graphics.ExtVertexShader)value, (Single*)data); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtStencilTwoSide", Version = "1.3", EntryPoint = "glActiveStencilFaceEXT")] public static void ActiveStencilFace(OpenTK.Graphics.ExtStencilTwoSide face) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glActiveStencilFaceEXT((OpenTK.Graphics.ExtStencilTwoSide)face); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDepthBoundsTest", Version = "1.2", EntryPoint = "glDepthBoundsEXT")] public static void DepthBounds(Double zmin, Double zmax) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDepthBoundsEXT((Double)zmin, (Double)zmax); + #if DEBUG + } + #endif } @@ -83357,7 +108248,14 @@ namespace OpenTK.Graphics public static void BlendEquationSeparate(OpenTK.Graphics.ExtBlendEquationSeparate modeRGB, OpenTK.Graphics.ExtBlendEquationSeparate modeAlpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendEquationSeparateEXT((OpenTK.Graphics.ExtBlendEquationSeparate)modeRGB, (OpenTK.Graphics.ExtBlendEquationSeparate)modeAlpha); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83365,7 +108263,14 @@ namespace OpenTK.Graphics public static bool IsRenderbuffer(UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsRenderbufferEXT((UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glIsRenderbufferEXT")] @@ -83380,7 +108285,14 @@ namespace OpenTK.Graphics public static void BindRenderbuffer(OpenTK.Graphics.RenderbufferTarget target, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindRenderbufferEXT((OpenTK.Graphics.RenderbufferTarget)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glBindRenderbufferEXT")] @@ -83395,6 +108307,10 @@ namespace OpenTK.Graphics public static void DeleteRenderbuffers(Int32 n, UInt32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = renderbuffers) @@ -83402,12 +108318,19 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glDeleteRenderbuffersEXT")] public static void DeleteRenderbuffers(Int32 n, Int32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = renderbuffers) @@ -83415,6 +108338,9 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83422,6 +108348,10 @@ namespace OpenTK.Graphics public static void DeleteRenderbuffers(Int32 n, ref UInt32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = &renderbuffers) @@ -83429,12 +108359,19 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glDeleteRenderbuffersEXT")] public static void DeleteRenderbuffers(Int32 n, ref Int32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = &renderbuffers) @@ -83442,6 +108379,9 @@ namespace OpenTK.Graphics Delegates.glDeleteRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83449,7 +108389,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83457,7 +108404,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83465,6 +108419,10 @@ namespace OpenTK.Graphics public static void GenRenderbuffers(Int32 n, [Out] UInt32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = renderbuffers) @@ -83472,12 +108430,19 @@ namespace OpenTK.Graphics Delegates.glGenRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGenRenderbuffersEXT")] public static void GenRenderbuffers(Int32 n, [Out] Int32[] renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = renderbuffers) @@ -83485,6 +108450,9 @@ namespace OpenTK.Graphics Delegates.glGenRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83492,6 +108460,10 @@ namespace OpenTK.Graphics public static void GenRenderbuffers(Int32 n, [Out] out UInt32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* renderbuffers_ptr = &renderbuffers) @@ -83500,12 +108472,19 @@ namespace OpenTK.Graphics renderbuffers = *renderbuffers_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGenRenderbuffersEXT")] public static void GenRenderbuffers(Int32 n, [Out] out Int32 renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* renderbuffers_ptr = &renderbuffers) @@ -83514,6 +108493,9 @@ namespace OpenTK.Graphics renderbuffers = *renderbuffers_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83521,7 +108503,14 @@ namespace OpenTK.Graphics public static unsafe void GenRenderbuffers(Int32 n, [Out] UInt32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83529,20 +108518,38 @@ namespace OpenTK.Graphics public static unsafe void GenRenderbuffers(Int32 n, [Out] Int32* renderbuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenRenderbuffersEXT((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glRenderbufferStorageEXT")] public static void RenderbufferStorage(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferStorage internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRenderbufferStorageEXT((OpenTK.Graphics.RenderbufferTarget)target, (OpenTK.Graphics.RenderbufferStorage)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGetRenderbufferParameterivEXT")] public static void GetRenderbufferParameter(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -83550,12 +108557,19 @@ namespace OpenTK.Graphics Delegates.glGetRenderbufferParameterivEXT((OpenTK.Graphics.RenderbufferTarget)target, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGetRenderbufferParameterivEXT")] public static void GetRenderbufferParameter(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -83564,6 +108578,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83571,7 +108588,14 @@ namespace OpenTK.Graphics public static unsafe void GetRenderbufferParameter(OpenTK.Graphics.RenderbufferTarget target, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetRenderbufferParameterivEXT((OpenTK.Graphics.RenderbufferTarget)target, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83579,7 +108603,14 @@ namespace OpenTK.Graphics public static bool IsFramebuffer(UInt32 framebuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsFramebufferEXT((UInt32)framebuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glIsFramebufferEXT")] @@ -83594,7 +108625,14 @@ namespace OpenTK.Graphics public static void BindFramebuffer(OpenTK.Graphics.FramebufferTarget target, UInt32 framebuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindFramebufferEXT((OpenTK.Graphics.FramebufferTarget)target, (UInt32)framebuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glBindFramebufferEXT")] @@ -83609,6 +108647,10 @@ namespace OpenTK.Graphics public static void DeleteFramebuffers(Int32 n, UInt32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = framebuffers) @@ -83616,12 +108658,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffersEXT((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glDeleteFramebuffersEXT")] public static void DeleteFramebuffers(Int32 n, Int32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = framebuffers) @@ -83629,6 +108678,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffersEXT((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83636,6 +108688,10 @@ namespace OpenTK.Graphics public static void DeleteFramebuffers(Int32 n, ref UInt32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = &framebuffers) @@ -83643,12 +108699,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffersEXT((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glDeleteFramebuffersEXT")] public static void DeleteFramebuffers(Int32 n, ref Int32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = &framebuffers) @@ -83656,6 +108719,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFramebuffersEXT((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83663,7 +108729,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFramebuffersEXT((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83671,7 +108744,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFramebuffers(Int32 n, Int32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFramebuffersEXT((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83679,6 +108759,10 @@ namespace OpenTK.Graphics public static void GenFramebuffers(Int32 n, [Out] UInt32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = framebuffers) @@ -83686,12 +108770,19 @@ namespace OpenTK.Graphics Delegates.glGenFramebuffersEXT((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGenFramebuffersEXT")] public static void GenFramebuffers(Int32 n, [Out] Int32[] framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = framebuffers) @@ -83699,6 +108790,9 @@ namespace OpenTK.Graphics Delegates.glGenFramebuffersEXT((Int32)n, (UInt32*)framebuffers_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83706,6 +108800,10 @@ namespace OpenTK.Graphics public static void GenFramebuffers(Int32 n, [Out] out UInt32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* framebuffers_ptr = &framebuffers) @@ -83714,12 +108812,19 @@ namespace OpenTK.Graphics framebuffers = *framebuffers_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGenFramebuffersEXT")] public static void GenFramebuffers(Int32 n, [Out] out Int32 framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* framebuffers_ptr = &framebuffers) @@ -83728,6 +108833,9 @@ namespace OpenTK.Graphics framebuffers = *framebuffers_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83735,7 +108843,14 @@ namespace OpenTK.Graphics public static unsafe void GenFramebuffers(Int32 n, [Out] UInt32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFramebuffersEXT((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83743,14 +108858,28 @@ namespace OpenTK.Graphics public static unsafe void GenFramebuffers(Int32 n, [Out] Int32* framebuffers) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFramebuffersEXT((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glCheckFramebufferStatusEXT")] public static OpenTK.Graphics.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.FramebufferTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCheckFramebufferStatusEXT((OpenTK.Graphics.FramebufferTarget)target); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83758,7 +108887,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture1D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTexture1DEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glFramebufferTexture1DEXT")] @@ -83773,7 +108909,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture2D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTexture2DEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glFramebufferTexture2DEXT")] @@ -83788,7 +108931,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture3D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level, Int32 zoffset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTexture3DEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level, (Int32)zoffset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glFramebufferTexture3DEXT")] @@ -83803,7 +108953,14 @@ namespace OpenTK.Graphics public static void FramebufferRenderbuffer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferRenderbufferEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glFramebufferRenderbufferEXT")] @@ -83817,6 +108974,10 @@ namespace OpenTK.Graphics public static void GetFramebufferAttachmentParameter(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -83824,12 +108985,19 @@ namespace OpenTK.Graphics Delegates.glGetFramebufferAttachmentParameterivEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.FramebufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGetFramebufferAttachmentParameterivEXT")] public static void GetFramebufferAttachmentParameter(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -83838,6 +109006,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83845,14 +109016,28 @@ namespace OpenTK.Graphics public static unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFramebufferAttachmentParameterivEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.FramebufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferObject", Version = "1.2", EntryPoint = "glGenerateMipmapEXT")] public static void GenerateMipmap(OpenTK.Graphics.GenerateMipmapTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenerateMipmapEXT((OpenTK.Graphics.GenerateMipmapTarget)target); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83860,7 +109045,14 @@ namespace OpenTK.Graphics public static void StencilClearTag(Int32 stencilTagBits, UInt32 stencilClearTag) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilClearTagEXT((Int32)stencilTagBits, (UInt32)stencilClearTag); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtStencilClearTag", Version = "1.5", EntryPoint = "glStencilClearTagEXT")] @@ -83874,14 +109066,28 @@ namespace OpenTK.Graphics public static void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ClearBufferMask mask, OpenTK.Graphics.ExtFramebufferBlit filter) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlitFramebufferEXT((Int32)srcX0, (Int32)srcY0, (Int32)srcX1, (Int32)srcY1, (Int32)dstX0, (Int32)dstY0, (Int32)dstX1, (Int32)dstY1, (OpenTK.Graphics.ClearBufferMask)mask, (OpenTK.Graphics.ExtFramebufferBlit)filter); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtFramebufferMultisample", Version = "1.5", EntryPoint = "glRenderbufferStorageMultisampleEXT")] public static void RenderbufferStorageMultisample(OpenTK.Graphics.ExtFramebufferMultisample target, Int32 samples, OpenTK.Graphics.ExtFramebufferMultisample internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glRenderbufferStorageMultisampleEXT((OpenTK.Graphics.ExtFramebufferMultisample)target, (Int32)samples, (OpenTK.Graphics.ExtFramebufferMultisample)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83889,6 +109095,10 @@ namespace OpenTK.Graphics public static void GetQueryObjecti64(UInt32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] Int64[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int64* @params_ptr = @params) @@ -83896,12 +109106,19 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (Int64*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTimerQuery", Version = "1.5", EntryPoint = "glGetQueryObjecti64vEXT")] public static void GetQueryObjecti64(Int32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] Int64[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int64* @params_ptr = @params) @@ -83909,6 +109126,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (Int64*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83916,6 +109136,10 @@ namespace OpenTK.Graphics public static void GetQueryObjecti64(UInt32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] out Int64 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int64* @params_ptr = &@params) @@ -83924,12 +109148,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTimerQuery", Version = "1.5", EntryPoint = "glGetQueryObjecti64vEXT")] public static void GetQueryObjecti64(Int32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] out Int64 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int64* @params_ptr = &@params) @@ -83938,6 +109169,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83945,7 +109179,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObjecti64(UInt32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] Int64* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (Int64*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83953,7 +109194,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObjecti64(Int32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] Int64* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjecti64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (Int64*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83961,6 +109209,10 @@ namespace OpenTK.Graphics public static void GetQueryObjectui64(UInt32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] UInt64[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt64* @params_ptr = @params) @@ -83968,12 +109220,19 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (UInt64*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTimerQuery", Version = "1.5", EntryPoint = "glGetQueryObjectui64vEXT")] public static void GetQueryObjectui64(Int32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] Int64[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int64* @params_ptr = @params) @@ -83981,6 +109240,9 @@ namespace OpenTK.Graphics Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (UInt64*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -83988,6 +109250,10 @@ namespace OpenTK.Graphics public static void GetQueryObjectui64(UInt32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] out UInt64 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt64* @params_ptr = &@params) @@ -83996,12 +109262,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTimerQuery", Version = "1.5", EntryPoint = "glGetQueryObjectui64vEXT")] public static void GetQueryObjectui64(Int32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] out Int64 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int64* @params_ptr = &@params) @@ -84010,6 +109283,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84017,7 +109293,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObjectui64(UInt32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] UInt64* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (UInt64*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84025,7 +109308,14 @@ namespace OpenTK.Graphics public static unsafe void GetQueryObjectui64(Int32 id, OpenTK.Graphics.ExtTimerQuery pname, [Out] Int64* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetQueryObjectui64vEXT((UInt32)id, (OpenTK.Graphics.ExtTimerQuery)pname, (UInt64*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84033,6 +109323,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, UInt32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -84040,12 +109334,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuProgramParameters", Version = "1.2", EntryPoint = "glProgramEnvParameters4fvEXT")] public static void ProgramEnvParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, Int32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -84053,6 +109354,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84060,6 +109364,10 @@ namespace OpenTK.Graphics public static void ProgramEnvParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, UInt32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -84067,12 +109375,19 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuProgramParameters", Version = "1.2", EntryPoint = "glProgramEnvParameters4fvEXT")] public static void ProgramEnvParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, Int32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -84080,6 +109395,9 @@ namespace OpenTK.Graphics Delegates.glProgramEnvParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84087,7 +109405,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, UInt32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84095,7 +109420,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramEnvParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, Int32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramEnvParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84103,6 +109435,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, UInt32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -84110,12 +109446,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuProgramParameters", Version = "1.2", EntryPoint = "glProgramLocalParameters4fvEXT")] public static void ProgramLocalParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, Int32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -84123,6 +109466,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84130,6 +109476,10 @@ namespace OpenTK.Graphics public static void ProgramLocalParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, UInt32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -84137,12 +109487,19 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuProgramParameters", Version = "1.2", EntryPoint = "glProgramLocalParameters4fvEXT")] public static void ProgramLocalParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, Int32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -84150,6 +109507,9 @@ namespace OpenTK.Graphics Delegates.glProgramLocalParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84157,7 +109517,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, UInt32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84165,7 +109532,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramLocalParameters4(OpenTK.Graphics.ExtGpuProgramParameters target, Int32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramLocalParameters4fvEXT((OpenTK.Graphics.ExtGpuProgramParameters)target, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84173,7 +109547,14 @@ namespace OpenTK.Graphics public static void FramebufferTexture(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGeometryProgram4", Version = "2.0", EntryPoint = "glFramebufferTextureEXT")] @@ -84188,7 +109569,14 @@ namespace OpenTK.Graphics public static void FramebufferTextureLayer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureLayerEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGeometryProgram4", Version = "2.0", EntryPoint = "glFramebufferTextureLayerEXT")] @@ -84203,7 +109591,14 @@ namespace OpenTK.Graphics public static void FramebufferTextureFace(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, OpenTK.Graphics.TextureTarget face) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferTextureFaceEXT((OpenTK.Graphics.FramebufferTarget)target, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (OpenTK.Graphics.TextureTarget)face); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvGeometryProgram4", Version = "2.0", EntryPoint = "glFramebufferTextureFaceEXT")] @@ -84218,7 +109613,14 @@ namespace OpenTK.Graphics public static void ProgramParameter(UInt32 program, OpenTK.Graphics.ExtGeometryShader4 pname, Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramParameteriEXT((UInt32)program, (OpenTK.Graphics.ExtGeometryShader4)pname, (Int32)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGeometryShader4", Version = "2.0", EntryPoint = "glProgramParameteriEXT")] @@ -84233,7 +109635,14 @@ namespace OpenTK.Graphics public static void VertexAttribI1(UInt32 index, Int32 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1iEXT((UInt32)index, (Int32)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI1iEXT")] @@ -84248,7 +109657,14 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2iEXT((UInt32)index, (Int32)x, (Int32)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI2iEXT")] @@ -84263,7 +109679,14 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3iEXT((UInt32)index, (Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI3iEXT")] @@ -84278,7 +109701,14 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4iEXT((UInt32)index, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4iEXT")] @@ -84293,7 +109723,14 @@ namespace OpenTK.Graphics public static void VertexAttribI1(UInt32 index, UInt32 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1uiEXT((UInt32)index, (UInt32)x); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84301,7 +109738,14 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, UInt32 x, UInt32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2uiEXT((UInt32)index, (UInt32)x, (UInt32)y); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84309,7 +109753,14 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, UInt32 x, UInt32 y, UInt32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3uiEXT((UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84317,7 +109768,14 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, UInt32 x, UInt32 y, UInt32 z, UInt32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4uiEXT((UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z, (UInt32)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84325,6 +109783,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84332,12 +109794,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI1ivEXT")] public static void VertexAttribI1v(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84345,6 +109814,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84352,6 +109824,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84359,12 +109835,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI1ivEXT")] public static void VertexAttribI1v(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84372,6 +109855,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84379,7 +109865,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI1v(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84387,7 +109880,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI1v(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84395,6 +109895,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84402,12 +109906,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI2ivEXT")] public static void VertexAttribI2(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84415,6 +109926,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84422,6 +109936,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84429,12 +109947,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI2ivEXT")] public static void VertexAttribI2(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84442,6 +109967,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84449,7 +109977,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI2(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84457,7 +109992,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI2(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84465,6 +110007,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84472,12 +110018,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI3ivEXT")] public static void VertexAttribI3(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84485,6 +110038,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84492,6 +110048,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84499,12 +110059,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI3ivEXT")] public static void VertexAttribI3(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84512,6 +110079,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84519,7 +110089,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI3(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84527,7 +110104,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI3(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84535,6 +110119,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84542,12 +110130,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4ivEXT")] public static void VertexAttribI4(Int32 index, Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -84555,6 +110150,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84562,6 +110160,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84569,12 +110171,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4ivEXT")] public static void VertexAttribI4(Int32 index, ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -84582,6 +110191,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ivEXT((UInt32)index, (Int32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84589,7 +110201,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84597,7 +110216,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(Int32 index, Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ivEXT((UInt32)index, (Int32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84605,6 +110231,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -84612,6 +110242,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84619,6 +110252,10 @@ namespace OpenTK.Graphics public static void VertexAttribI1v(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -84626,6 +110263,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI1uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84633,7 +110273,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI1v(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI1uivEXT((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84641,6 +110288,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -84648,6 +110299,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84655,6 +110309,10 @@ namespace OpenTK.Graphics public static void VertexAttribI2(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -84662,6 +110320,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI2uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84669,7 +110330,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI2(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI2uivEXT((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84677,6 +110345,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -84684,6 +110356,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84691,6 +110366,10 @@ namespace OpenTK.Graphics public static void VertexAttribI3(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -84698,6 +110377,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI3uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84705,7 +110387,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI3(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI3uivEXT((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84713,6 +110402,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, UInt32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = v) @@ -84720,6 +110413,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84727,6 +110423,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref UInt32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* v_ptr = &v) @@ -84734,6 +110434,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4uivEXT((UInt32)index, (UInt32*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84741,7 +110444,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, UInt32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4uivEXT((UInt32)index, (UInt32*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84749,6 +110459,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, SByte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = v) @@ -84756,6 +110470,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4bvEXT((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84763,6 +110480,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref SByte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* v_ptr = &v) @@ -84770,6 +110491,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4bvEXT((UInt32)index, (SByte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84777,7 +110501,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, SByte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4bvEXT((UInt32)index, (SByte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84785,6 +110516,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -84792,12 +110527,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4svEXT((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4svEXT")] public static void VertexAttribI4(Int32 index, Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -84805,6 +110547,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4svEXT((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84812,6 +110557,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -84819,12 +110568,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4svEXT((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4svEXT")] public static void VertexAttribI4(Int32 index, ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -84832,6 +110588,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4svEXT((UInt32)index, (Int16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84839,7 +110598,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4svEXT((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84847,7 +110613,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(Int32 index, Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4svEXT((UInt32)index, (Int16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84855,6 +110628,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -84862,12 +110639,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubvEXT((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4ubvEXT")] public static void VertexAttribI4(Int32 index, Byte[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = v) @@ -84875,6 +110659,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubvEXT((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84882,6 +110669,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -84889,12 +110680,19 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubvEXT((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribI4ubvEXT")] public static void VertexAttribI4(Int32 index, ref Byte v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* v_ptr = &v) @@ -84902,6 +110700,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4ubvEXT((UInt32)index, (Byte*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84909,7 +110710,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ubvEXT((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84917,7 +110725,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(Int32 index, Byte* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4ubvEXT((UInt32)index, (Byte*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84925,6 +110740,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, UInt16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = v) @@ -84932,6 +110751,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4usvEXT((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84939,6 +110761,10 @@ namespace OpenTK.Graphics public static void VertexAttribI4(UInt32 index, ref UInt16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* v_ptr = &v) @@ -84946,6 +110772,9 @@ namespace OpenTK.Graphics Delegates.glVertexAttribI4usvEXT((UInt32)index, (UInt16*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84953,7 +110782,14 @@ namespace OpenTK.Graphics public static unsafe void VertexAttribI4(UInt32 index, UInt16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribI4usvEXT((UInt32)index, (UInt16*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -84961,20 +110797,28 @@ namespace OpenTK.Graphics public static void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribIPointerEXT")] public static void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -84983,18 +110827,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribIPointerEXT")] @@ -85002,18 +110850,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85022,18 +110874,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribIPointerEXT")] @@ -85041,18 +110897,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85061,18 +110921,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribIPointerEXT")] @@ -85080,18 +110944,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85100,18 +110968,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glVertexAttribIPointerEXT")] @@ -85119,18 +110991,22 @@ namespace OpenTK.Graphics void VertexAttribIPointer(Int32 index, Int32 size, OpenTK.Graphics.NvVertexProgram4 type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribIPointerEXT((UInt32)index, (Int32)size, (OpenTK.Graphics.NvVertexProgram4)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85138,6 +111014,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -85145,12 +111025,19 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribIivEXT((UInt32)index, (OpenTK.Graphics.NvVertexProgram4)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glGetVertexAttribIivEXT")] public static void GetVertexAttribI(Int32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -85158,6 +111045,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribIivEXT((UInt32)index, (OpenTK.Graphics.NvVertexProgram4)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85165,6 +111055,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -85173,12 +111067,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "NvVertexProgram4", Version = "", EntryPoint = "glGetVertexAttribIivEXT")] public static void GetVertexAttribI(Int32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -85187,6 +111088,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85194,7 +111098,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribI(UInt32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribIivEXT((UInt32)index, (OpenTK.Graphics.NvVertexProgram4)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85202,7 +111113,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribI(Int32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribIivEXT((UInt32)index, (OpenTK.Graphics.NvVertexProgram4)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85210,6 +111128,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -85217,6 +111139,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribIuivEXT((UInt32)index, (OpenTK.Graphics.NvVertexProgram4)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85224,6 +111149,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribI(UInt32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -85232,6 +111161,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85239,7 +111171,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribI(UInt32 index, OpenTK.Graphics.NvVertexProgram4 pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribIuivEXT((UInt32)index, (OpenTK.Graphics.NvVertexProgram4)pname, (UInt32*)@params); + #if DEBUG + } + #endif } @@ -85266,6 +111205,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -85273,6 +111216,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformuivEXT((UInt32)program, (Int32)location, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -85298,6 +111244,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 program, Int32 location, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -85305,6 +111255,9 @@ namespace OpenTK.Graphics Delegates.glGetUniformuivEXT((UInt32)program, (Int32)location, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -85331,6 +111284,10 @@ namespace OpenTK.Graphics public static void GetUniform(UInt32 program, Int32 location, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -85339,6 +111296,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -85364,6 +111324,10 @@ namespace OpenTK.Graphics public static void GetUniform(Int32 program, Int32 location, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -85372,6 +111336,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -85398,7 +111365,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(UInt32 program, Int32 location, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformuivEXT((UInt32)program, (Int32)location, (UInt32*)@params); + #if DEBUG + } + #endif } @@ -85425,7 +111399,14 @@ namespace OpenTK.Graphics public static unsafe void GetUniform(Int32 program, Int32 location, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetUniformuivEXT((UInt32)program, (Int32)location, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85433,7 +111414,14 @@ namespace OpenTK.Graphics public static void BindFragDataLocation(UInt32 program, UInt32 color, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindFragDataLocationEXT((UInt32)program, (UInt32)color, (String)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuShader4", Version = "2.0", EntryPoint = "glBindFragDataLocationEXT")] @@ -85448,7 +111436,14 @@ namespace OpenTK.Graphics public static Int32 GetFragDataLocation(UInt32 program, String name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetFragDataLocationEXT((UInt32)program, (String)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuShader4", Version = "2.0", EntryPoint = "glGetFragDataLocationEXT")] @@ -85477,7 +111472,14 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, UInt32 v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1uiEXT((Int32)location, (UInt32)v0); + #if DEBUG + } + #endif } @@ -85520,7 +111522,14 @@ namespace OpenTK.Graphics public static void Uniform2(Int32 location, UInt32 v0, UInt32 v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2uiEXT((Int32)location, (UInt32)v0, (UInt32)v1); + #if DEBUG + } + #endif } @@ -85563,7 +111572,14 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, UInt32 v0, UInt32 v1, UInt32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3uiEXT((Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2); + #if DEBUG + } + #endif } @@ -85606,7 +111622,14 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, UInt32 v0, UInt32 v1, UInt32 v2, UInt32 v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4uiEXT((Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2, (UInt32)v3); + #if DEBUG + } + #endif } @@ -85649,6 +111672,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -85656,6 +111683,9 @@ namespace OpenTK.Graphics Delegates.glUniform1uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85676,6 +111706,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -85683,6 +111717,9 @@ namespace OpenTK.Graphics Delegates.glUniform1uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85704,6 +111741,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -85711,6 +111752,9 @@ namespace OpenTK.Graphics Delegates.glUniform1uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85731,6 +111775,10 @@ namespace OpenTK.Graphics public static void Uniform1(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -85738,6 +111786,9 @@ namespace OpenTK.Graphics Delegates.glUniform1uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85759,7 +111810,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -85781,7 +111839,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform1(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform1uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85789,6 +111854,10 @@ namespace OpenTK.Graphics public static void Uniform2v(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -85796,12 +111865,19 @@ namespace OpenTK.Graphics Delegates.glUniform2uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuShader4", Version = "2.0", EntryPoint = "glUniform2uivEXT")] public static void Uniform2v(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -85809,6 +111885,9 @@ namespace OpenTK.Graphics Delegates.glUniform2uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85816,6 +111895,10 @@ namespace OpenTK.Graphics public static void Uniform2v(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -85823,12 +111906,19 @@ namespace OpenTK.Graphics Delegates.glUniform2uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtGpuShader4", Version = "2.0", EntryPoint = "glUniform2uivEXT")] public static void Uniform2v(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -85836,6 +111926,9 @@ namespace OpenTK.Graphics Delegates.glUniform2uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85843,7 +111936,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -85851,7 +111951,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform2v(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform2uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -85873,6 +111980,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -85880,6 +111991,9 @@ namespace OpenTK.Graphics Delegates.glUniform3uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85900,6 +112014,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -85907,6 +112025,9 @@ namespace OpenTK.Graphics Delegates.glUniform3uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85928,6 +112049,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -85935,6 +112060,9 @@ namespace OpenTK.Graphics Delegates.glUniform3uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85955,6 +112083,10 @@ namespace OpenTK.Graphics public static void Uniform3(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -85962,6 +112094,9 @@ namespace OpenTK.Graphics Delegates.glUniform3uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -85983,7 +112118,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -86005,7 +112147,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform3(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform3uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -86027,6 +112176,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -86034,6 +112187,9 @@ namespace OpenTK.Graphics Delegates.glUniform4uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -86054,6 +112210,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -86061,6 +112221,9 @@ namespace OpenTK.Graphics Delegates.glUniform4uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -86082,6 +112245,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -86089,6 +112256,9 @@ namespace OpenTK.Graphics Delegates.glUniform4uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -86109,6 +112279,10 @@ namespace OpenTK.Graphics public static void Uniform4(Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -86116,6 +112290,9 @@ namespace OpenTK.Graphics Delegates.glUniform4uivEXT((Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } @@ -86137,7 +112314,14 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } @@ -86159,24 +112343,42 @@ namespace OpenTK.Graphics public static unsafe void Uniform4(Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniform4uivEXT((Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawInstanced", Version = "2.0", EntryPoint = "glDrawArraysInstancedEXT")] public static void DrawArraysInstance(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawArraysInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)start, (Int32)count, (Int32)primcount); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedEXT")] public static void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); + #endif + Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedEXT")] @@ -86184,18 +112386,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedEXT")] @@ -86203,18 +112409,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedEXT")] @@ -86222,18 +112432,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawInstanced", Version = "2.0", EntryPoint = "glDrawElementsInstancedEXT")] @@ -86241,18 +112455,22 @@ namespace OpenTK.Graphics void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); - } - finally - { - indices_ptr.Free(); - } + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElementsInstancedEXT((OpenTK.Graphics.BeginMode)mode, (Int32)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject(), (Int32)primcount); } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86260,7 +112478,14 @@ namespace OpenTK.Graphics public static void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ExtTextureBufferObject internalformat, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexBufferEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.ExtTextureBufferObject)internalformat, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTextureBufferObject", Version = "2.0", EntryPoint = "glTexBufferEXT")] @@ -86275,7 +112500,14 @@ namespace OpenTK.Graphics public static void ColorMaskIndexe(UInt32 index, bool r, bool g, bool b, bool a) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorMaskIndexedEXT((UInt32)index, (bool)r, (bool)g, (bool)b, (bool)a); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glColorMaskIndexedEXT")] @@ -86290,6 +112522,10 @@ namespace OpenTK.Graphics public static void GetBooleanIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -86297,12 +112533,19 @@ namespace OpenTK.Graphics Delegates.glGetBooleanIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glGetBooleanIndexedvEXT")] public static void GetBooleanIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index, [Out] bool[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = data) @@ -86310,6 +112553,9 @@ namespace OpenTK.Graphics Delegates.glGetBooleanIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (bool*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86317,6 +112563,10 @@ namespace OpenTK.Graphics public static void GetBooleanIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -86325,12 +112575,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glGetBooleanIndexedvEXT")] public static void GetBooleanIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index, [Out] out bool data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* data_ptr = &data) @@ -86339,6 +112596,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86346,7 +112606,14 @@ namespace OpenTK.Graphics public static unsafe void GetBooleanIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBooleanIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86354,7 +112621,14 @@ namespace OpenTK.Graphics public static unsafe void GetBooleanIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index, [Out] bool* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetBooleanIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (bool*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86362,6 +112636,10 @@ namespace OpenTK.Graphics public static void GetIntegerIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -86369,12 +112647,19 @@ namespace OpenTK.Graphics Delegates.glGetIntegerIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glGetIntegerIndexedvEXT")] public static void GetIntegerIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index, [Out] Int32[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = data) @@ -86382,6 +112667,9 @@ namespace OpenTK.Graphics Delegates.glGetIntegerIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (Int32*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86389,6 +112677,10 @@ namespace OpenTK.Graphics public static void GetIntegerIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -86397,12 +112689,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glGetIntegerIndexedvEXT")] public static void GetIntegerIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index, [Out] out Int32 data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* data_ptr = &data) @@ -86411,6 +112710,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86418,7 +112720,14 @@ namespace OpenTK.Graphics public static unsafe void GetIntegerIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetIntegerIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86426,7 +112735,14 @@ namespace OpenTK.Graphics public static unsafe void GetIntegerIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index, [Out] Int32* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetIntegerIndexedvEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index, (Int32*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86434,7 +112750,14 @@ namespace OpenTK.Graphics public static void EnableIndexe(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnableIndexedEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glEnableIndexedEXT")] @@ -86449,7 +112772,14 @@ namespace OpenTK.Graphics public static void DisableIndexe(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisableIndexedEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glDisableIndexedEXT")] @@ -86464,7 +112794,14 @@ namespace OpenTK.Graphics public static bool IsEnabledIndexe(OpenTK.Graphics.ExtDrawBuffers2 target, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsEnabledIndexedEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDrawBuffers2", Version = "2.0", EntryPoint = "glIsEnabledIndexedEXT")] @@ -86479,7 +112816,14 @@ namespace OpenTK.Graphics public static void UniformBuffer(UInt32 program, Int32 location, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUniformBufferEXT((UInt32)program, (Int32)location, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtBindableUniform", Version = "2.0", EntryPoint = "glUniformBufferEXT")] @@ -86494,7 +112838,14 @@ namespace OpenTK.Graphics public static Int32 GetUniformBufferSize(UInt32 program, Int32 location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetUniformBufferSizeEXT((UInt32)program, (Int32)location); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtBindableUniform", Version = "2.0", EntryPoint = "glGetUniformBufferSizeEXT")] @@ -86509,7 +112860,14 @@ namespace OpenTK.Graphics public static IntPtr GetUniformOffset(UInt32 program, Int32 location) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetUniformOffsetEXT((UInt32)program, (Int32)location); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtBindableUniform", Version = "2.0", EntryPoint = "glGetUniformOffsetEXT")] @@ -86523,6 +112881,10 @@ namespace OpenTK.Graphics public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -86530,12 +112892,19 @@ namespace OpenTK.Graphics Delegates.glTexParameterIivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTextureInteger", Version = "2.0", EntryPoint = "glTexParameterIivEXT")] public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -86543,6 +112912,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterIivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86550,7 +112922,14 @@ namespace OpenTK.Graphics public static unsafe void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameterIivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86558,6 +112937,10 @@ namespace OpenTK.Graphics public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -86565,6 +112948,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterIuivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86572,6 +112958,10 @@ namespace OpenTK.Graphics public static void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -86579,6 +112969,9 @@ namespace OpenTK.Graphics Delegates.glTexParameterIuivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86586,13 +112979,24 @@ namespace OpenTK.Graphics public static unsafe void TexParameterIv(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexParameterIuivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTextureInteger", Version = "2.0", EntryPoint = "glGetTexParameterIivEXT")] public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -86600,12 +113004,19 @@ namespace OpenTK.Graphics Delegates.glGetTexParameterIivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTextureInteger", Version = "2.0", EntryPoint = "glGetTexParameterIivEXT")] public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -86614,6 +113025,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86621,7 +113035,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexParameterIivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86629,6 +113050,10 @@ namespace OpenTK.Graphics public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -86636,6 +113061,9 @@ namespace OpenTK.Graphics Delegates.glGetTexParameterIuivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86643,6 +113071,10 @@ namespace OpenTK.Graphics public static void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -86651,6 +113083,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86658,14 +113093,28 @@ namespace OpenTK.Graphics public static unsafe void GetTexParameterI(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexParameterIuivEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTextureInteger", Version = "2.0", EntryPoint = "glClearColorIiEXT")] public static void ClearColorI(Int32 red, Int32 green, Int32 blue, Int32 alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearColorIiEXT((Int32)red, (Int32)green, (Int32)blue, (Int32)alpha); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86673,21 +113122,42 @@ namespace OpenTK.Graphics public static void ClearColorI(UInt32 red, UInt32 green, UInt32 blue, UInt32 alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClearColorIuiEXT((UInt32)red, (UInt32)green, (UInt32)blue, (UInt32)alpha); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glBeginTransformFeedbackEXT")] public static void BeginTransformFeedback(OpenTK.Graphics.ExtTransformFeedback primitiveMode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginTransformFeedbackEXT((OpenTK.Graphics.ExtTransformFeedback)primitiveMode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glEndTransformFeedbackEXT")] public static void EndTransformFeedback() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndTransformFeedbackEXT(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86695,7 +113165,14 @@ namespace OpenTK.Graphics public static void BindBufferRange(OpenTK.Graphics.ExtTransformFeedback target, UInt32 index, UInt32 buffer, IntPtr offset, IntPtr size) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferRangeEXT((OpenTK.Graphics.ExtTransformFeedback)target, (UInt32)index, (UInt32)buffer, (IntPtr)offset, (IntPtr)size); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glBindBufferRangeEXT")] @@ -86710,7 +113187,14 @@ namespace OpenTK.Graphics public static void BindBufferOffset(OpenTK.Graphics.ExtTransformFeedback target, UInt32 index, UInt32 buffer, IntPtr offset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferOffsetEXT((OpenTK.Graphics.ExtTransformFeedback)target, (UInt32)index, (UInt32)buffer, (IntPtr)offset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glBindBufferOffsetEXT")] @@ -86725,7 +113209,14 @@ namespace OpenTK.Graphics public static void BindBufferBase(OpenTK.Graphics.ExtTransformFeedback target, UInt32 index, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindBufferBaseEXT((OpenTK.Graphics.ExtTransformFeedback)target, (UInt32)index, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glBindBufferBaseEXT")] @@ -86738,163 +113229,187 @@ namespace OpenTK.Graphics [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glTransformFeedbackVaryingsEXT")] public static - void TransformFeedbackVarying(UInt32 program, Int32 count, Int32[] locations, OpenTK.Graphics.ExtTransformFeedback bufferMode) + void TransformFeedbackVarying(UInt32 program, Int32 count, String varyings, OpenTK.Graphics.ExtTransformFeedback bufferMode) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - fixed (Int32* locations_ptr = locations) - { - Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); - } + #endif + Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (String)varyings, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glTransformFeedbackVaryingsEXT")] public static - void TransformFeedbackVarying(Int32 program, Int32 count, Int32[] locations, OpenTK.Graphics.ExtTransformFeedback bufferMode) + void TransformFeedbackVarying(Int32 program, Int32 count, String varyings, OpenTK.Graphics.ExtTransformFeedback bufferMode) { - unsafe - { - fixed (Int32* locations_ptr = locations) - { - Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glTransformFeedbackVaryingsEXT")] - public static - void TransformFeedbackVarying(UInt32 program, Int32 count, ref Int32 locations, OpenTK.Graphics.ExtTransformFeedback bufferMode) - { - unsafe - { - fixed (Int32* locations_ptr = &locations) - { - Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); - } - } - } - - [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glTransformFeedbackVaryingsEXT")] - public static - void TransformFeedbackVarying(Int32 program, Int32 count, ref Int32 locations, OpenTK.Graphics.ExtTransformFeedback bufferMode) - { - unsafe - { - fixed (Int32* locations_ptr = &locations) - { - Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (Int32*)locations_ptr, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); - } - } - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glTransformFeedbackVaryingsEXT")] - public static - unsafe void TransformFeedbackVarying(UInt32 program, Int32 count, Int32* locations, OpenTK.Graphics.ExtTransformFeedback bufferMode) - { - Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (Int32*)locations, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glTransformFeedbackVaryingsEXT")] - public static - unsafe void TransformFeedbackVarying(Int32 program, Int32 count, Int32* locations, OpenTK.Graphics.ExtTransformFeedback bufferMode) - { - Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (Int32*)locations, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); + Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (String)varyings, (OpenTK.Graphics.ExtTransformFeedback)bufferMode); } [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32[] location) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ExtTransformFeedback[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = location) + fixed (Int32* length_ptr = length) + fixed (Int32* size_ptr = size) + fixed (OpenTK.Graphics.ExtTransformFeedback* type_ptr = type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location_ptr); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] Int32[] location) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [Out] Int32[] length, [Out] Int32[] size, [Out] OpenTK.Graphics.ExtTransformFeedback[] type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = location) + fixed (Int32* length_ptr = length) + fixed (Int32* size_ptr = size) + fixed (OpenTK.Graphics.ExtTransformFeedback* type_ptr = type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location_ptr); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] out Int32 location) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ExtTransformFeedback type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = &location) + fixed (Int32* length_ptr = &length) + fixed (Int32* size_ptr = &size) + fixed (OpenTK.Graphics.ExtTransformFeedback* type_ptr = &type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location_ptr); - location = *location_ptr; + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] out Int32 location) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [Out] out Int32 length, [Out] out Int32 size, [Out] out OpenTK.Graphics.ExtTransformFeedback type, [Out] System.Text.StringBuilder name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { - fixed (Int32* location_ptr = &location) + fixed (Int32* length_ptr = &length) + fixed (Int32* size_ptr = &size) + fixed (OpenTK.Graphics.ExtTransformFeedback* type_ptr = &type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location_ptr); - location = *location_ptr; + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32* location) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ExtTransformFeedback* type, [Out] System.Text.StringBuilder name) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ExtTransformFeedback*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, [Out] Int32* location) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ExtTransformFeedback* type, [Out] System.Text.StringBuilder name) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location); + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ExtTransformFeedback*)type, (System.Text.StringBuilder)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glClientAttribDefaultEXT")] public static void ClientAttribDefault(OpenTK.Graphics.ClientAttribMask mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClientAttribDefaultEXT((OpenTK.Graphics.ClientAttribMask)mask); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glPushClientAttribDefaultEXT")] public static void PushClientAttribDefault(OpenTK.Graphics.ClientAttribMask mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPushClientAttribDefaultEXT((OpenTK.Graphics.ClientAttribMask)mask); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadfEXT")] public static void MatrixLoad(OpenTK.Graphics.MatrixMode mode, Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -86902,12 +113417,19 @@ namespace OpenTK.Graphics Delegates.glMatrixLoadfEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadfEXT")] public static void MatrixLoad(OpenTK.Graphics.MatrixMode mode, ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -86915,6 +113437,9 @@ namespace OpenTK.Graphics Delegates.glMatrixLoadfEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86922,13 +113447,24 @@ namespace OpenTK.Graphics public static unsafe void MatrixLoad(OpenTK.Graphics.MatrixMode mode, Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixLoadfEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoaddEXT")] public static void MatrixLoad(OpenTK.Graphics.MatrixMode mode, Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -86936,12 +113472,19 @@ namespace OpenTK.Graphics Delegates.glMatrixLoaddEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoaddEXT")] public static void MatrixLoad(OpenTK.Graphics.MatrixMode mode, ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -86949,6 +113492,9 @@ namespace OpenTK.Graphics Delegates.glMatrixLoaddEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86956,13 +113502,24 @@ namespace OpenTK.Graphics public static unsafe void MatrixLoad(OpenTK.Graphics.MatrixMode mode, Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixLoaddEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultfEXT")] public static void MatrixMult(OpenTK.Graphics.MatrixMode mode, Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -86970,12 +113527,19 @@ namespace OpenTK.Graphics Delegates.glMatrixMultfEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultfEXT")] public static void MatrixMult(OpenTK.Graphics.MatrixMode mode, ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -86983,6 +113547,9 @@ namespace OpenTK.Graphics Delegates.glMatrixMultfEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -86990,13 +113557,24 @@ namespace OpenTK.Graphics public static unsafe void MatrixMult(OpenTK.Graphics.MatrixMode mode, Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixMultfEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultdEXT")] public static void MatrixMult(OpenTK.Graphics.MatrixMode mode, Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -87004,12 +113582,19 @@ namespace OpenTK.Graphics Delegates.glMatrixMultdEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultdEXT")] public static void MatrixMult(OpenTK.Graphics.MatrixMode mode, ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -87017,6 +113602,9 @@ namespace OpenTK.Graphics Delegates.glMatrixMultdEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87024,90 +113612,178 @@ namespace OpenTK.Graphics public static unsafe void MatrixMult(OpenTK.Graphics.MatrixMode mode, Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixMultdEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadIdentityEXT")] public static void MatrixLoadIdentity(OpenTK.Graphics.MatrixMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixLoadIdentityEXT((OpenTK.Graphics.MatrixMode)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixRotatefEXT")] public static void MatrixRotate(OpenTK.Graphics.MatrixMode mode, Single angle, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixRotatefEXT((OpenTK.Graphics.MatrixMode)mode, (Single)angle, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixRotatedEXT")] public static void MatrixRotate(OpenTK.Graphics.MatrixMode mode, Double angle, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixRotatedEXT((OpenTK.Graphics.MatrixMode)mode, (Double)angle, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixScalefEXT")] public static void MatrixScale(OpenTK.Graphics.MatrixMode mode, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixScalefEXT((OpenTK.Graphics.MatrixMode)mode, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixScaledEXT")] public static void MatrixScale(OpenTK.Graphics.MatrixMode mode, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixScaledEXT((OpenTK.Graphics.MatrixMode)mode, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixTranslatefEXT")] public static void MatrixTranslate(OpenTK.Graphics.MatrixMode mode, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixTranslatefEXT((OpenTK.Graphics.MatrixMode)mode, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixTranslatedEXT")] public static void MatrixTranslate(OpenTK.Graphics.MatrixMode mode, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixTranslatedEXT((OpenTK.Graphics.MatrixMode)mode, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixFrustumEXT")] public static void MatrixFrustum(OpenTK.Graphics.MatrixMode mode, Double left, Double right, Double bottom, Double top, Double zNear, Double zFar) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixFrustumEXT((OpenTK.Graphics.MatrixMode)mode, (Double)left, (Double)right, (Double)bottom, (Double)top, (Double)zNear, (Double)zFar); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixOrthoEXT")] public static void MatrixOrtho(OpenTK.Graphics.MatrixMode mode, Double left, Double right, Double bottom, Double top, Double zNear, Double zFar) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixOrthoEXT((OpenTK.Graphics.MatrixMode)mode, (Double)left, (Double)right, (Double)bottom, (Double)top, (Double)zNear, (Double)zFar); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixPopEXT")] public static void MatrixPop(OpenTK.Graphics.MatrixMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixPopEXT((OpenTK.Graphics.MatrixMode)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixPushEXT")] public static void MatrixPush(OpenTK.Graphics.MatrixMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixPushEXT((OpenTK.Graphics.MatrixMode)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadTransposefEXT")] public static void MatrixLoadTranspose(OpenTK.Graphics.MatrixMode mode, Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -87115,12 +113791,19 @@ namespace OpenTK.Graphics Delegates.glMatrixLoadTransposefEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadTransposefEXT")] public static void MatrixLoadTranspose(OpenTK.Graphics.MatrixMode mode, ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -87128,6 +113811,9 @@ namespace OpenTK.Graphics Delegates.glMatrixLoadTransposefEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87135,13 +113821,24 @@ namespace OpenTK.Graphics public static unsafe void MatrixLoadTranspose(OpenTK.Graphics.MatrixMode mode, Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixLoadTransposefEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadTransposedEXT")] public static void MatrixLoadTranspose(OpenTK.Graphics.MatrixMode mode, Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -87149,12 +113846,19 @@ namespace OpenTK.Graphics Delegates.glMatrixLoadTransposedEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixLoadTransposedEXT")] public static void MatrixLoadTranspose(OpenTK.Graphics.MatrixMode mode, ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -87162,6 +113866,9 @@ namespace OpenTK.Graphics Delegates.glMatrixLoadTransposedEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87169,13 +113876,24 @@ namespace OpenTK.Graphics public static unsafe void MatrixLoadTranspose(OpenTK.Graphics.MatrixMode mode, Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixLoadTransposedEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultTransposefEXT")] public static void MatrixMultTranspose(OpenTK.Graphics.MatrixMode mode, Single[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = m) @@ -87183,12 +113901,19 @@ namespace OpenTK.Graphics Delegates.glMatrixMultTransposefEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultTransposefEXT")] public static void MatrixMultTranspose(OpenTK.Graphics.MatrixMode mode, ref Single m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* m_ptr = &m) @@ -87196,6 +113921,9 @@ namespace OpenTK.Graphics Delegates.glMatrixMultTransposefEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87203,13 +113931,24 @@ namespace OpenTK.Graphics public static unsafe void MatrixMultTranspose(OpenTK.Graphics.MatrixMode mode, Single* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixMultTransposefEXT((OpenTK.Graphics.MatrixMode)mode, (Single*)m); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultTransposedEXT")] public static void MatrixMultTranspose(OpenTK.Graphics.MatrixMode mode, Double[] m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = m) @@ -87217,12 +113956,19 @@ namespace OpenTK.Graphics Delegates.glMatrixMultTransposedEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMatrixMultTransposedEXT")] public static void MatrixMultTranspose(OpenTK.Graphics.MatrixMode mode, ref Double m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* m_ptr = &m) @@ -87230,6 +113976,9 @@ namespace OpenTK.Graphics Delegates.glMatrixMultTransposedEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87237,7 +113986,14 @@ namespace OpenTK.Graphics public static unsafe void MatrixMultTranspose(OpenTK.Graphics.MatrixMode mode, Double* m) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMatrixMultTransposedEXT((OpenTK.Graphics.MatrixMode)mode, (Double*)m); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87245,7 +114001,14 @@ namespace OpenTK.Graphics public static void TextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterfEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterfEXT")] @@ -87260,6 +114023,10 @@ namespace OpenTK.Graphics public static void TextureParameterv(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -87267,12 +114034,19 @@ namespace OpenTK.Graphics Delegates.glTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterfvEXT")] public static void TextureParameterv(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -87280,6 +114054,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87287,6 +114064,10 @@ namespace OpenTK.Graphics public static void TextureParameterv(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -87294,12 +114075,19 @@ namespace OpenTK.Graphics Delegates.glTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterfvEXT")] public static void TextureParameterv(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -87307,6 +114095,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87314,7 +114105,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterv(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87322,7 +114120,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterv(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87330,7 +114135,14 @@ namespace OpenTK.Graphics public static void TextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameteriEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameteriEXT")] @@ -87345,6 +114157,10 @@ namespace OpenTK.Graphics public static void TextureParameterv(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -87352,12 +114168,19 @@ namespace OpenTK.Graphics Delegates.glTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterivEXT")] public static void TextureParameterv(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -87365,6 +114188,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87372,6 +114198,10 @@ namespace OpenTK.Graphics public static void TextureParameterv(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -87379,12 +114209,19 @@ namespace OpenTK.Graphics Delegates.glTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterivEXT")] public static void TextureParameterv(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -87392,6 +114229,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87399,7 +114239,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterv(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87407,7 +114254,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterv(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87415,20 +114269,28 @@ namespace OpenTK.Graphics public static void TextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage1DEXT")] public static void TextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -87437,18 +114299,22 @@ namespace OpenTK.Graphics void TextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T8 pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage1DEXT")] @@ -87456,18 +114322,22 @@ namespace OpenTK.Graphics void TextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T8 pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87476,18 +114346,22 @@ namespace OpenTK.Graphics void TextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage1DEXT")] @@ -87495,18 +114369,22 @@ namespace OpenTK.Graphics void TextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87515,18 +114393,22 @@ namespace OpenTK.Graphics void TextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage1DEXT")] @@ -87534,18 +114416,22 @@ namespace OpenTK.Graphics void TextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87554,18 +114440,22 @@ namespace OpenTK.Graphics void TextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage1DEXT")] @@ -87573,18 +114463,22 @@ namespace OpenTK.Graphics void TextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87592,20 +114486,28 @@ namespace OpenTK.Graphics public static void TextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage2DEXT")] public static void TextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -87614,18 +114516,22 @@ namespace OpenTK.Graphics void TextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage2DEXT")] @@ -87633,18 +114539,22 @@ namespace OpenTK.Graphics void TextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87653,18 +114563,22 @@ namespace OpenTK.Graphics void TextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage2DEXT")] @@ -87672,18 +114586,22 @@ namespace OpenTK.Graphics void TextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87692,18 +114610,22 @@ namespace OpenTK.Graphics void TextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage2DEXT")] @@ -87711,18 +114633,22 @@ namespace OpenTK.Graphics void TextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87731,18 +114657,22 @@ namespace OpenTK.Graphics void TextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage2DEXT")] @@ -87750,18 +114680,22 @@ namespace OpenTK.Graphics void TextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87769,20 +114703,28 @@ namespace OpenTK.Graphics public static void TextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage1DEXT")] public static void TextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -87791,18 +114733,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T7 pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage1DEXT")] @@ -87810,18 +114756,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T7 pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87830,18 +114780,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage1DEXT")] @@ -87849,18 +114803,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87869,18 +114827,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage1DEXT")] @@ -87888,18 +114850,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87908,18 +114874,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage1DEXT")] @@ -87927,18 +114897,22 @@ namespace OpenTK.Graphics void TextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -87946,20 +114920,28 @@ namespace OpenTK.Graphics public static void TextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage2DEXT")] public static void TextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -87968,18 +114950,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage2DEXT")] @@ -87987,18 +114973,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88007,18 +114997,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage2DEXT")] @@ -88026,18 +115020,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88046,18 +115044,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage2DEXT")] @@ -88065,18 +115067,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88085,18 +115091,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage2DEXT")] @@ -88104,18 +115114,22 @@ namespace OpenTK.Graphics void TextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88123,7 +115137,14 @@ namespace OpenTK.Graphics public static void CopyTextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 x, Int32 y, Int32 width, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)border); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyTextureImage1DEXT")] @@ -88138,7 +115159,14 @@ namespace OpenTK.Graphics public static void CopyTextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyTextureImage2DEXT")] @@ -88153,7 +115181,14 @@ namespace OpenTK.Graphics public static void CopyTextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyTextureSubImage1DEXT")] @@ -88168,7 +115203,14 @@ namespace OpenTK.Graphics public static void CopyTextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyTextureSubImage2DEXT")] @@ -88183,20 +115225,28 @@ namespace OpenTK.Graphics public static void GetTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureImageEXT")] public static void GetTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -88205,18 +115255,22 @@ namespace OpenTK.Graphics void GetTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureImageEXT")] @@ -88224,18 +115278,22 @@ namespace OpenTK.Graphics void GetTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88244,18 +115302,22 @@ namespace OpenTK.Graphics void GetTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureImageEXT")] @@ -88263,18 +115325,22 @@ namespace OpenTK.Graphics void GetTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88283,18 +115349,22 @@ namespace OpenTK.Graphics void GetTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureImageEXT")] @@ -88302,18 +115372,22 @@ namespace OpenTK.Graphics void GetTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88322,18 +115396,22 @@ namespace OpenTK.Graphics void GetTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureImageEXT")] @@ -88341,18 +115419,22 @@ namespace OpenTK.Graphics void GetTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88360,6 +115442,10 @@ namespace OpenTK.Graphics public static void GetTextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -88367,12 +115453,19 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureParameterfvEXT")] public static void GetTextureParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -88380,6 +115473,9 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88387,6 +115483,10 @@ namespace OpenTK.Graphics public static void GetTextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -88395,12 +115495,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureParameterfvEXT")] public static void GetTextureParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -88409,6 +115516,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88416,7 +115526,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88424,7 +115541,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88432,6 +115556,10 @@ namespace OpenTK.Graphics public static void GetTextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -88439,12 +115567,19 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureParameterivEXT")] public static void GetTextureParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -88452,6 +115587,9 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88459,6 +115597,10 @@ namespace OpenTK.Graphics public static void GetTextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -88467,12 +115609,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureParameterivEXT")] public static void GetTextureParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -88481,6 +115630,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88488,7 +115640,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88496,7 +115655,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88504,6 +115670,10 @@ namespace OpenTK.Graphics public static void GetTextureLevelParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -88511,12 +115681,19 @@ namespace OpenTK.Graphics Delegates.glGetTextureLevelParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureLevelParameterfvEXT")] public static void GetTextureLevelParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -88524,6 +115701,9 @@ namespace OpenTK.Graphics Delegates.glGetTextureLevelParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88531,6 +115711,10 @@ namespace OpenTK.Graphics public static void GetTextureLevelParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -88539,12 +115723,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureLevelParameterfvEXT")] public static void GetTextureLevelParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -88553,6 +115744,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88560,7 +115754,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureLevelParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureLevelParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88568,7 +115769,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureLevelParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureLevelParameterfvEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88576,6 +115784,10 @@ namespace OpenTK.Graphics public static void GetTextureLevelParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -88583,12 +115795,19 @@ namespace OpenTK.Graphics Delegates.glGetTextureLevelParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureLevelParameterivEXT")] public static void GetTextureLevelParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -88596,6 +115815,9 @@ namespace OpenTK.Graphics Delegates.glGetTextureLevelParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88603,6 +115825,10 @@ namespace OpenTK.Graphics public static void GetTextureLevelParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -88611,12 +115837,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureLevelParameterivEXT")] public static void GetTextureLevelParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -88625,6 +115858,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88632,7 +115868,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureLevelParameter(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureLevelParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88640,7 +115883,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureLevelParameter(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureLevelParameterivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88648,20 +115898,28 @@ namespace OpenTK.Graphics public static void TextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage3DEXT")] public static void TextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -88670,18 +115928,22 @@ namespace OpenTK.Graphics void TextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T10 pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage3DEXT")] @@ -88689,18 +115951,22 @@ namespace OpenTK.Graphics void TextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T10 pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88709,18 +115975,22 @@ namespace OpenTK.Graphics void TextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage3DEXT")] @@ -88728,18 +115998,22 @@ namespace OpenTK.Graphics void TextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88748,18 +116022,22 @@ namespace OpenTK.Graphics void TextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage3DEXT")] @@ -88767,18 +116045,22 @@ namespace OpenTK.Graphics void TextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88787,18 +116069,22 @@ namespace OpenTK.Graphics void TextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureImage3DEXT")] @@ -88806,18 +116092,22 @@ namespace OpenTK.Graphics void TextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88825,20 +116115,28 @@ namespace OpenTK.Graphics public static void TextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage3DEXT")] public static void TextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -88847,18 +116145,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T11 pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage3DEXT")] @@ -88866,18 +116168,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T11 pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88886,18 +116192,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage3DEXT")] @@ -88905,18 +116215,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88925,18 +116239,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[,] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage3DEXT")] @@ -88944,18 +116262,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[,] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -88964,18 +116286,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[,,] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureSubImage3DEXT")] @@ -88983,18 +116309,22 @@ namespace OpenTK.Graphics void TextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[,,] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89002,7 +116332,14 @@ namespace OpenTK.Graphics public static void CopyTextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyTextureSubImage3DEXT")] @@ -89016,13 +116353,24 @@ namespace OpenTK.Graphics public static void MultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexParameterfEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameterfvEXT")] public static void MultiTexParameterv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -89030,12 +116378,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameterfvEXT")] public static void MultiTexParameterv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -89043,6 +116398,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89050,20 +116408,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexParameterv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameteriEXT")] public static void MultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexParameteriEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameterivEXT")] public static void MultiTexParameterv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -89071,12 +116447,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameterivEXT")] public static void MultiTexParameterv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -89084,6 +116467,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89091,17 +116477,28 @@ namespace OpenTK.Graphics public static unsafe void MultiTexParameterv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage1DEXT")] public static void MultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage1DEXT")] @@ -89109,18 +116506,22 @@ namespace OpenTK.Graphics void MultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T8 pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage1DEXT")] @@ -89128,18 +116529,22 @@ namespace OpenTK.Graphics void MultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage1DEXT")] @@ -89147,18 +116552,22 @@ namespace OpenTK.Graphics void MultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage1DEXT")] @@ -89166,28 +116575,36 @@ namespace OpenTK.Graphics void MultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T8[,,] pixels) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage2DEXT")] public static void MultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage2DEXT")] @@ -89195,18 +116612,22 @@ namespace OpenTK.Graphics void MultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage2DEXT")] @@ -89214,18 +116635,22 @@ namespace OpenTK.Graphics void MultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage2DEXT")] @@ -89233,18 +116658,22 @@ namespace OpenTK.Graphics void MultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage2DEXT")] @@ -89252,28 +116681,36 @@ namespace OpenTK.Graphics void MultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage1DEXT")] public static void MultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage1DEXT")] @@ -89281,18 +116718,22 @@ namespace OpenTK.Graphics void MultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T7 pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage1DEXT")] @@ -89300,18 +116741,22 @@ namespace OpenTK.Graphics void MultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage1DEXT")] @@ -89319,18 +116764,22 @@ namespace OpenTK.Graphics void MultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage1DEXT")] @@ -89338,28 +116787,36 @@ namespace OpenTK.Graphics void MultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T7[,,] pixels) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage2DEXT")] public static void MultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage2DEXT")] @@ -89367,18 +116824,22 @@ namespace OpenTK.Graphics void MultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T9 pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage2DEXT")] @@ -89386,18 +116847,22 @@ namespace OpenTK.Graphics void MultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage2DEXT")] @@ -89405,18 +116870,22 @@ namespace OpenTK.Graphics void MultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage2DEXT")] @@ -89424,56 +116893,92 @@ namespace OpenTK.Graphics void MultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T9[,,] pixels) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyMultiTexImage1DEXT")] public static void CopyMultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 x, Int32 y, Int32 width, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)border); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyMultiTexImage2DEXT")] public static void CopyMultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyMultiTexSubImage1DEXT")] public static void CopyMultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyMultiTexSubImage2DEXT")] public static void CopyMultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexImageEXT")] public static void GetMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexImageEXT")] @@ -89481,18 +116986,22 @@ namespace OpenTK.Graphics void GetMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexImageEXT")] @@ -89500,18 +117009,22 @@ namespace OpenTK.Graphics void GetMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexImageEXT")] @@ -89519,18 +117032,22 @@ namespace OpenTK.Graphics void GetMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexImageEXT")] @@ -89538,24 +117055,32 @@ namespace OpenTK.Graphics void GetMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] pixels) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glGetMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexParameterfvEXT")] public static void GetMultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -89563,12 +117088,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexParameterfvEXT")] public static void GetMultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -89577,6 +117109,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89584,13 +117119,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexParameterivEXT")] public static void GetMultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -89598,12 +117144,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexParameterivEXT")] public static void GetMultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -89612,6 +117165,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89619,13 +117175,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexLevelParameterfvEXT")] public static void GetMultiTexLevelParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -89633,12 +117200,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexLevelParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexLevelParameterfvEXT")] public static void GetMultiTexLevelParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -89647,6 +117221,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89654,13 +117231,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexLevelParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexLevelParameterfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexLevelParameterivEXT")] public static void GetMultiTexLevelParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -89668,12 +117256,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexLevelParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexLevelParameterivEXT")] public static void GetMultiTexLevelParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -89682,6 +117277,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89689,17 +117287,28 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexLevelParameter(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexLevelParameterivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage3DEXT")] public static void MultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage3DEXT")] @@ -89707,18 +117316,22 @@ namespace OpenTK.Graphics void MultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T10 pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage3DEXT")] @@ -89726,18 +117339,22 @@ namespace OpenTK.Graphics void MultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage3DEXT")] @@ -89745,18 +117362,22 @@ namespace OpenTK.Graphics void MultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexImage3DEXT")] @@ -89764,28 +117385,36 @@ namespace OpenTK.Graphics void MultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage3DEXT")] public static void MultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage3DEXT")] @@ -89793,18 +117422,22 @@ namespace OpenTK.Graphics void MultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T11 pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage3DEXT")] @@ -89812,18 +117445,22 @@ namespace OpenTK.Graphics void MultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage3DEXT")] @@ -89831,18 +117468,22 @@ namespace OpenTK.Graphics void MultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[,] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexSubImage3DEXT")] @@ -89850,25 +117491,36 @@ namespace OpenTK.Graphics void MultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T11[,,] pixels) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCopyMultiTexSubImage3DEXT")] public static void CopyMultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -89876,7 +117528,14 @@ namespace OpenTK.Graphics public static void BindMultiTexture(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, UInt32 texture) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindMultiTextureEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (UInt32)texture); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glBindMultiTextureEXT")] @@ -89891,7 +117550,14 @@ namespace OpenTK.Graphics public static void EnableClientStateIndexe(OpenTK.Graphics.EnableCap array, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEnableClientStateIndexedEXT((OpenTK.Graphics.EnableCap)array, (UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glEnableClientStateIndexedEXT")] @@ -89906,7 +117572,14 @@ namespace OpenTK.Graphics public static void DisableClientStateIndexe(OpenTK.Graphics.EnableCap array, UInt32 index) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDisableClientStateIndexedEXT((OpenTK.Graphics.EnableCap)array, (UInt32)index); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glDisableClientStateIndexedEXT")] @@ -89920,10 +117593,14 @@ namespace OpenTK.Graphics public static void MultiTexCoordPointer(OpenTK.Graphics.TextureUnit texunit, Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexCoordPointerEXT")] @@ -89931,18 +117608,22 @@ namespace OpenTK.Graphics void MultiTexCoordPointer(OpenTK.Graphics.TextureUnit texunit, Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] ref T4 pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexCoordPointerEXT")] @@ -89950,18 +117631,22 @@ namespace OpenTK.Graphics void MultiTexCoordPointer(OpenTK.Graphics.TextureUnit texunit, Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T4[] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexCoordPointerEXT")] @@ -89969,18 +117654,22 @@ namespace OpenTK.Graphics void MultiTexCoordPointer(OpenTK.Graphics.TextureUnit texunit, Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T4[,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexCoordPointerEXT")] @@ -89988,31 +117677,46 @@ namespace OpenTK.Graphics void MultiTexCoordPointer(OpenTK.Graphics.TextureUnit texunit, Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T4[,,] pointer) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMultiTexCoordPointerEXT((OpenTK.Graphics.TextureUnit)texunit, (Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexEnvfEXT")] public static void MultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexEnvfEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexEnvfvEXT")] public static void MultiTexEnvv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -90020,12 +117724,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexEnvfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexEnvfvEXT")] public static void MultiTexEnvv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -90033,6 +117744,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexEnvfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90040,20 +117754,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexEnvv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexEnvfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexEnviEXT")] public static void MultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexEnviEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexEnvivEXT")] public static void MultiTexEnvv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -90061,12 +117793,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexEnvivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexEnvivEXT")] public static void MultiTexEnvv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -90074,6 +117813,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexEnvivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90081,20 +117823,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexEnvv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexEnvivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGendEXT")] public static void MultiTexGend(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Double param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexGendEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGendvEXT")] public static void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -90102,12 +117862,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexGendvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGendvEXT")] public static void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -90115,6 +117882,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexGendvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90122,20 +117892,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexGendvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGenfEXT")] public static void MultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexGenfEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGenfvEXT")] public static void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -90143,12 +117931,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexGenfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGenfvEXT")] public static void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -90156,6 +117951,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexGenfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90163,20 +117961,38 @@ namespace OpenTK.Graphics public static unsafe void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexGenfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGeniEXT")] public static void MultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexGeniEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGenivEXT")] public static void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -90184,12 +118000,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexGenivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexGenivEXT")] public static void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -90197,6 +118020,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexGenivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90204,13 +118030,24 @@ namespace OpenTK.Graphics public static unsafe void MultiTexGenv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexGenivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexEnvfvEXT")] public static void GetMultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -90218,12 +118055,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexEnvfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexEnvfvEXT")] public static void GetMultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -90232,6 +118076,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90239,13 +118086,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexEnvfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexEnvivEXT")] public static void GetMultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -90253,12 +118111,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexEnvivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexEnvivEXT")] public static void GetMultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -90267,6 +118132,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90274,13 +118142,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexEnv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureEnvTarget target, OpenTK.Graphics.TextureEnvParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexEnvivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureEnvTarget)target, (OpenTK.Graphics.TextureEnvParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexGendvEXT")] public static void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -90288,12 +118167,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexGendvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexGendvEXT")] public static void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -90302,6 +118188,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90309,13 +118198,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexGendvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Double*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexGenfvEXT")] public static void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -90323,12 +118223,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexGenfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexGenfvEXT")] public static void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -90337,6 +118244,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90344,13 +118254,24 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexGenfvEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexGenivEXT")] public static void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -90358,12 +118279,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexGenivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexGenivEXT")] public static void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -90372,6 +118300,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90379,7 +118310,14 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexGen(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureCoordName coord, OpenTK.Graphics.TextureGenParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexGenivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureCoordName)coord, (OpenTK.Graphics.TextureGenParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90387,6 +118325,10 @@ namespace OpenTK.Graphics public static void GetFloatIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -90394,12 +118336,19 @@ namespace OpenTK.Graphics Delegates.glGetFloatIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetFloatIndexedvEXT")] public static void GetFloatIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Single[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = data) @@ -90407,6 +118356,9 @@ namespace OpenTK.Graphics Delegates.glGetFloatIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90414,6 +118366,10 @@ namespace OpenTK.Graphics public static void GetFloatIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -90422,12 +118378,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetFloatIndexedvEXT")] public static void GetFloatIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] out Single data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* data_ptr = &data) @@ -90436,6 +118399,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90443,7 +118409,14 @@ namespace OpenTK.Graphics public static unsafe void GetFloatIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFloatIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90451,7 +118424,14 @@ namespace OpenTK.Graphics public static unsafe void GetFloatIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Single* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFloatIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90459,6 +118439,10 @@ namespace OpenTK.Graphics public static void GetDoubleIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Double[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* data_ptr = data) @@ -90466,12 +118450,19 @@ namespace OpenTK.Graphics Delegates.glGetDoubleIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)data_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetDoubleIndexedvEXT")] public static void GetDoubleIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Double[] data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* data_ptr = data) @@ -90479,6 +118470,9 @@ namespace OpenTK.Graphics Delegates.glGetDoubleIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)data_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90486,6 +118480,10 @@ namespace OpenTK.Graphics public static void GetDoubleIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] out Double data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* data_ptr = &data) @@ -90494,12 +118492,19 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetDoubleIndexedvEXT")] public static void GetDoubleIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] out Double data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* data_ptr = &data) @@ -90508,6 +118513,9 @@ namespace OpenTK.Graphics data = *data_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90515,7 +118523,14 @@ namespace OpenTK.Graphics public static unsafe void GetDoubleIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Double* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetDoubleIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90523,7 +118538,14 @@ namespace OpenTK.Graphics public static unsafe void GetDoubleIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Double* data) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetDoubleIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)data); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90531,20 +118553,28 @@ namespace OpenTK.Graphics public static void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data); + #endif + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetPointerIndexedvEXT")] public static void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data); + #endif + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -90553,18 +118583,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [In, Out] ref T2 data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetPointerIndexedvEXT")] @@ -90572,18 +118606,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [In, Out] ref T2 data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90592,18 +118630,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [In, Out] T2[] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetPointerIndexedvEXT")] @@ -90611,18 +118653,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [In, Out] T2[] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90631,18 +118677,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [In, Out] T2[,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetPointerIndexedvEXT")] @@ -90650,18 +118700,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [In, Out] T2[,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90670,18 +118724,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [In, Out] T2[,,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetPointerIndexedvEXT")] @@ -90689,18 +118747,22 @@ namespace OpenTK.Graphics void GetPointerIndexed(OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [In, Out] T2[,,] data) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPointerIndexedvEXT((OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90708,20 +118770,28 @@ namespace OpenTK.Graphics public static void CompressedTextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage3DEXT")] public static void CompressedTextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -90730,18 +118800,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] ref T9 bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage3DEXT")] @@ -90749,18 +118823,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] ref T9 bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90769,18 +118847,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage3DEXT")] @@ -90788,18 +118870,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90808,18 +118894,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage3DEXT")] @@ -90827,18 +118917,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90847,18 +118941,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[,,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage3DEXT")] @@ -90866,18 +118964,22 @@ namespace OpenTK.Graphics void CompressedTextureImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[,,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90885,20 +118987,28 @@ namespace OpenTK.Graphics public static void CompressedTextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage2DEXT")] public static void CompressedTextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -90907,18 +119017,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] ref T8 bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage2DEXT")] @@ -90926,18 +119040,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] ref T8 bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90946,18 +119064,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage2DEXT")] @@ -90965,18 +119087,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -90985,18 +119111,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[,] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage2DEXT")] @@ -91004,18 +119134,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[,] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91024,18 +119158,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[,,] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage2DEXT")] @@ -91043,18 +119181,22 @@ namespace OpenTK.Graphics void CompressedTextureImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[,,] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91062,20 +119204,28 @@ namespace OpenTK.Graphics public static void CompressedTextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage1DEXT")] public static void CompressedTextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -91084,18 +119234,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] ref T7 bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage1DEXT")] @@ -91103,18 +119257,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] ref T7 bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91123,18 +119281,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage1DEXT")] @@ -91142,18 +119304,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91162,18 +119328,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage1DEXT")] @@ -91181,18 +119351,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91201,18 +119375,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[,,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureImage1DEXT")] @@ -91220,18 +119398,22 @@ namespace OpenTK.Graphics void CompressedTextureImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[,,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91239,20 +119421,28 @@ namespace OpenTK.Graphics public static void CompressedTextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage3DEXT")] public static void CompressedTextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -91261,18 +119451,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T11 bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage3DEXT")] @@ -91280,18 +119474,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T11 bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91300,18 +119498,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage3DEXT")] @@ -91319,18 +119521,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91339,18 +119545,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[,] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage3DEXT")] @@ -91358,18 +119568,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[,] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91378,18 +119592,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[,,] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage3DEXT")] @@ -91397,18 +119615,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage3D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[,,] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage3DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91416,20 +119638,28 @@ namespace OpenTK.Graphics public static void CompressedTextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage2DEXT")] public static void CompressedTextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -91438,18 +119668,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T9 bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage2DEXT")] @@ -91457,18 +119691,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T9 bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91477,18 +119715,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage2DEXT")] @@ -91496,18 +119738,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91516,18 +119762,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage2DEXT")] @@ -91535,18 +119785,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91555,18 +119809,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[,,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage2DEXT")] @@ -91574,18 +119832,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage2D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[,,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage2DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91593,20 +119855,28 @@ namespace OpenTK.Graphics public static void CompressedTextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage1DEXT")] public static void CompressedTextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -91615,18 +119885,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T7 bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage1DEXT")] @@ -91634,18 +119908,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T7 bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91654,18 +119932,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage1DEXT")] @@ -91673,18 +119955,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91693,18 +119979,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage1DEXT")] @@ -91712,18 +120002,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91732,18 +120026,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[,,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedTextureSubImage1DEXT")] @@ -91751,18 +120049,22 @@ namespace OpenTK.Graphics void CompressedTextureSubImage1D(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[,,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedTextureSubImage1DEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91770,20 +120072,28 @@ namespace OpenTK.Graphics public static void GetCompressedTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [Out] IntPtr img) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img); + #endif + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedTextureImageEXT")] public static void GetCompressedTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [Out] IntPtr img) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img); + #endif + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -91792,18 +120102,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] ref T3 img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedTextureImageEXT")] @@ -91811,18 +120125,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] ref T3 img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91831,18 +120149,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedTextureImageEXT")] @@ -91850,18 +120172,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91870,18 +120196,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[,] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedTextureImageEXT")] @@ -91889,18 +120219,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[,] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -91909,18 +120243,22 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(UInt32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[,,] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedTextureImageEXT")] @@ -91928,28 +120266,36 @@ namespace OpenTK.Graphics void GetCompressedTextureImage(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[,,] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedTextureImageEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage3DEXT")] public static void CompressedMultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage3DEXT")] @@ -91957,18 +120303,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] ref T9 bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage3DEXT")] @@ -91976,18 +120326,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage3DEXT")] @@ -91995,18 +120349,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage3DEXT")] @@ -92014,28 +120372,36 @@ namespace OpenTK.Graphics void CompressedMultiTexImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [In, Out] T9[,,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage2DEXT")] public static void CompressedMultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage2DEXT")] @@ -92043,18 +120409,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] ref T8 bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage2DEXT")] @@ -92062,18 +120432,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage2DEXT")] @@ -92081,18 +120455,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[,] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage2DEXT")] @@ -92100,28 +120478,36 @@ namespace OpenTK.Graphics void CompressedMultiTexImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [In, Out] T8[,,] bits) where T8 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage1DEXT")] public static void CompressedMultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage1DEXT")] @@ -92129,18 +120515,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] ref T7 bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage1DEXT")] @@ -92148,18 +120538,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage1DEXT")] @@ -92167,18 +120561,22 @@ namespace OpenTK.Graphics void CompressedMultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexImage1DEXT")] @@ -92186,28 +120584,36 @@ namespace OpenTK.Graphics void CompressedMultiTexImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 width, Int32 border, Int32 imageSize, [In, Out] T7[,,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (Int32)width, (Int32)border, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage3DEXT")] public static void CompressedMultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage3DEXT")] @@ -92215,18 +120621,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T11 bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage3DEXT")] @@ -92234,18 +120644,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage3DEXT")] @@ -92253,18 +120667,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[,] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage3DEXT")] @@ -92272,28 +120690,36 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage3D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T11[,,] bits) where T11 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage3DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage2DEXT")] public static void CompressedMultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage2DEXT")] @@ -92301,18 +120727,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T9 bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage2DEXT")] @@ -92320,18 +120750,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage2DEXT")] @@ -92339,18 +120773,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage2DEXT")] @@ -92358,28 +120796,36 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage2D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T9[,,] bits) where T9 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage2DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage1DEXT")] public static void CompressedMultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, IntPtr bits) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #endif + Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage1DEXT")] @@ -92387,18 +120833,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] ref T7 bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage1DEXT")] @@ -92406,18 +120856,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage1DEXT")] @@ -92425,18 +120879,22 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCompressedMultiTexSubImage1DEXT")] @@ -92444,28 +120902,36 @@ namespace OpenTK.Graphics void CompressedMultiTexSubImage1D(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 width, OpenTK.Graphics.PixelFormat format, Int32 imageSize, [In, Out] T7[,,] bits) where T7 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); - try - { - Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); - } - finally - { - bits_ptr.Free(); - } + #endif + GCHandle bits_ptr = GCHandle.Alloc(bits, GCHandleType.Pinned); + try + { + Delegates.glCompressedMultiTexSubImage1DEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (Int32)imageSize, (IntPtr)bits_ptr.AddrOfPinnedObject()); } + finally + { + bits_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedMultiTexImageEXT")] public static void GetCompressedMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 lod, [Out] IntPtr img) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img); + #endif + Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedMultiTexImageEXT")] @@ -92473,18 +120939,22 @@ namespace OpenTK.Graphics void GetCompressedMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] ref T3 img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedMultiTexImageEXT")] @@ -92492,18 +120962,22 @@ namespace OpenTK.Graphics void GetCompressedMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedMultiTexImageEXT")] @@ -92511,18 +120985,22 @@ namespace OpenTK.Graphics void GetCompressedMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[,] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetCompressedMultiTexImageEXT")] @@ -92530,18 +121008,22 @@ namespace OpenTK.Graphics void GetCompressedMultiTexImage(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 lod, [In, Out] T3[,,] img) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); - try - { - Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); - } - finally - { - img_ptr.Free(); - } + #endif + GCHandle img_ptr = GCHandle.Alloc(img, GCHandleType.Pinned); + try + { + Delegates.glGetCompressedMultiTexImageEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (Int32)lod, (IntPtr)img_ptr.AddrOfPinnedObject()); } + finally + { + img_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92549,20 +121031,28 @@ namespace OpenTK.Graphics public static void NamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string); + #endif + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramStringEXT")] public static void NamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string); + #endif + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -92571,18 +121061,22 @@ namespace OpenTK.Graphics void NamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] ref T4 @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramStringEXT")] @@ -92590,18 +121084,22 @@ namespace OpenTK.Graphics void NamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] ref T4 @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92610,18 +121108,22 @@ namespace OpenTK.Graphics void NamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] T4[] @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramStringEXT")] @@ -92629,18 +121131,22 @@ namespace OpenTK.Graphics void NamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] T4[] @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92649,18 +121155,22 @@ namespace OpenTK.Graphics void NamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] T4[,] @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramStringEXT")] @@ -92668,18 +121178,22 @@ namespace OpenTK.Graphics void NamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] T4[,] @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92688,18 +121202,22 @@ namespace OpenTK.Graphics void NamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] T4[,,] @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramStringEXT")] @@ -92707,18 +121225,22 @@ namespace OpenTK.Graphics void NamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess format, Int32 len, [In, Out] T4[,,] @string) where T4 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)format, (Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92726,7 +121248,14 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameter4dEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameter4dEXT")] @@ -92741,6 +121270,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -92748,12 +121281,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4dvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameter4dvEXT")] public static void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -92761,6 +121301,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4dvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92768,6 +121311,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -92775,12 +121322,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4dvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameter4dvEXT")] public static void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, ref Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -92788,6 +121342,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4dvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92795,7 +121352,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameter4dvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92803,7 +121367,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameter4dvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92811,7 +121382,14 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameter4fEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameter4fEXT")] @@ -92826,6 +121404,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -92833,12 +121415,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameter4fvEXT")] public static void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -92846,6 +121435,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92853,6 +121445,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -92860,12 +121456,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameter4fvEXT")] public static void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -92873,6 +121476,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameter4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92880,7 +121486,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameter4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameter4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92888,7 +121501,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameter4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92896,6 +121516,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameter(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -92903,12 +121527,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterdvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramLocalParameterdvEXT")] public static void GetNamedProgramLocalParameter(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Double[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = @params) @@ -92916,6 +121547,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterdvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92923,6 +121557,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameter(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -92931,12 +121569,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramLocalParameterdvEXT")] public static void GetNamedProgramLocalParameter(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] out Double @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* @params_ptr = &@params) @@ -92945,6 +121590,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92952,7 +121600,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameter(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterdvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92960,7 +121615,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameter(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Double* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterdvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Double*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92968,6 +121630,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameter(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -92975,12 +121641,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterfvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramLocalParameterfvEXT")] public static void GetNamedProgramLocalParameter(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -92988,6 +121661,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterfvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -92995,6 +121671,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameter(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -93003,12 +121683,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramLocalParameterfvEXT")] public static void GetNamedProgramLocalParameter(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -93017,6 +121704,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93024,7 +121714,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameter(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterfvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93032,7 +121729,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameter(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterfvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93040,6 +121744,10 @@ namespace OpenTK.Graphics public static void GetNamedProgram(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93047,12 +121755,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramivEXT")] public static void GetNamedProgram(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93060,6 +121775,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93067,6 +121785,10 @@ namespace OpenTK.Graphics public static void GetNamedProgram(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93075,12 +121797,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramivEXT")] public static void GetNamedProgram(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93089,6 +121818,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93096,7 +121828,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgram(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93104,7 +121843,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgram(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93112,20 +121858,28 @@ namespace OpenTK.Graphics public static void GetNamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string); + #endif + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramStringEXT")] public static void GetNamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string); + #endif + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -93134,18 +121888,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] ref T3 @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramStringEXT")] @@ -93153,18 +121911,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] ref T3 @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93173,18 +121935,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T3[] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramStringEXT")] @@ -93192,18 +121958,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T3[] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93212,18 +121982,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T3[,] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramStringEXT")] @@ -93231,18 +122005,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T3[,] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93251,18 +122029,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T3[,,] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramStringEXT")] @@ -93270,18 +122052,22 @@ namespace OpenTK.Graphics void GetNamedProgramString(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T3[,,] @string) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glGetNamedProgramStringEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93289,6 +122075,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameters4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -93296,12 +122086,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameters4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameters4fvEXT")] public static void NamedProgramLocalParameters4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32 count, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -93309,6 +122106,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameters4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93316,6 +122116,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameters4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -93323,12 +122127,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameters4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameters4fvEXT")] public static void NamedProgramLocalParameters4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32 count, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -93336,6 +122147,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameters4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93343,7 +122157,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameters4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameters4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93351,7 +122172,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameters4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32 count, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameters4fvEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93359,7 +122187,14 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameterI4iEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameterI4iEXT")] @@ -93374,6 +122209,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93381,12 +122220,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameterI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameterI4ivEXT")] public static void NamedProgramLocalParameterI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93394,6 +122240,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameterI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93401,6 +122250,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93408,12 +122261,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameterI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParameterI4ivEXT")] public static void NamedProgramLocalParameterI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93421,6 +122281,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameterI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93428,7 +122291,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameterI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93436,7 +122306,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameterI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameterI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93444,6 +122321,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParametersI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93451,12 +122332,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParametersI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParametersI4ivEXT")] public static void NamedProgramLocalParametersI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32 count, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93464,6 +122352,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParametersI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93471,6 +122362,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParametersI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93478,12 +122373,19 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParametersI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedProgramLocalParametersI4ivEXT")] public static void NamedProgramLocalParametersI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32 count, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93491,6 +122393,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParametersI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93498,7 +122403,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParametersI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParametersI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93506,7 +122418,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParametersI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, Int32 count, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParametersI4ivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93514,7 +122433,14 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, UInt32 x, UInt32 y, UInt32 z, UInt32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameterI4uiEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (UInt32)x, (UInt32)y, (UInt32)z, (UInt32)w); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93522,6 +122448,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -93529,6 +122459,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameterI4uivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93536,6 +122469,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -93543,6 +122480,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParameterI4uivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93550,7 +122490,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParameterI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParameterI4uivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93558,6 +122505,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParametersI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -93565,6 +122516,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParametersI4uivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93572,6 +122526,10 @@ namespace OpenTK.Graphics public static void NamedProgramLocalParametersI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -93579,6 +122537,9 @@ namespace OpenTK.Graphics Delegates.glNamedProgramLocalParametersI4uivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93586,7 +122547,14 @@ namespace OpenTK.Graphics public static unsafe void NamedProgramLocalParametersI4(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, Int32 count, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedProgramLocalParametersI4uivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32)count, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93594,6 +122562,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameterI(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93601,12 +122573,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterIivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramLocalParameterIivEXT")] public static void GetNamedProgramLocalParameterI(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93614,6 +122593,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterIivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93621,6 +122603,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameterI(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93629,12 +122615,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedProgramLocalParameterIivEXT")] public static void GetNamedProgramLocalParameterI(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93643,6 +122636,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93650,7 +122646,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameterI(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterIivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93658,7 +122661,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameterI(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 index, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterIivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93666,6 +122676,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameterI(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -93673,6 +122687,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedProgramLocalParameterIuivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93680,6 +122697,10 @@ namespace OpenTK.Graphics public static void GetNamedProgramLocalParameterI(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -93688,6 +122709,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93695,7 +122719,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedProgramLocalParameterI(UInt32 program, OpenTK.Graphics.ExtDirectStateAccess target, UInt32 index, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedProgramLocalParameterIuivEXT((UInt32)program, (OpenTK.Graphics.ExtDirectStateAccess)target, (UInt32)index, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93703,6 +122734,10 @@ namespace OpenTK.Graphics public static void TextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93710,12 +122745,19 @@ namespace OpenTK.Graphics Delegates.glTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterIivEXT")] public static void TextureParameterI(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93723,6 +122765,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93730,6 +122775,10 @@ namespace OpenTK.Graphics public static void TextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93737,12 +122786,19 @@ namespace OpenTK.Graphics Delegates.glTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureParameterIivEXT")] public static void TextureParameterI(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93750,6 +122806,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93757,7 +122816,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93765,7 +122831,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterI(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93773,6 +122846,10 @@ namespace OpenTK.Graphics public static void TextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -93780,6 +122857,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterIuivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93787,6 +122867,10 @@ namespace OpenTK.Graphics public static void TextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -93794,6 +122878,9 @@ namespace OpenTK.Graphics Delegates.glTextureParameterIuivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93801,7 +122888,14 @@ namespace OpenTK.Graphics public static unsafe void TextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureParameterIuivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93809,6 +122903,10 @@ namespace OpenTK.Graphics public static void GetTextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93816,12 +122914,19 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureParameterIivEXT")] public static void GetTextureParameterI(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93829,6 +122934,9 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93836,6 +122944,10 @@ namespace OpenTK.Graphics public static void GetTextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93844,12 +122956,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetTextureParameterIivEXT")] public static void GetTextureParameterI(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93858,6 +122977,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93865,7 +122987,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93873,7 +123002,14 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameterI(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterIivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93881,6 +123017,10 @@ namespace OpenTK.Graphics public static void GetTextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -93888,6 +123028,9 @@ namespace OpenTK.Graphics Delegates.glGetTextureParameterIuivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93895,6 +123038,10 @@ namespace OpenTK.Graphics public static void GetTextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -93903,6 +123050,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93910,13 +123060,24 @@ namespace OpenTK.Graphics public static unsafe void GetTextureParameterI(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTextureParameterIuivEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameterIivEXT")] public static void MultiTexParameterIv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93924,12 +123085,19 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterIivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexParameterIivEXT")] public static void MultiTexParameterIv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -93937,6 +123105,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterIivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93944,7 +123115,14 @@ namespace OpenTK.Graphics public static unsafe void MultiTexParameterIv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexParameterIivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93952,6 +123130,10 @@ namespace OpenTK.Graphics public static void MultiTexParameterIv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -93959,6 +123141,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterIuivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93966,6 +123151,10 @@ namespace OpenTK.Graphics public static void MultiTexParameterIv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, ref UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -93973,6 +123162,9 @@ namespace OpenTK.Graphics Delegates.glMultiTexParameterIuivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -93980,13 +123172,24 @@ namespace OpenTK.Graphics public static unsafe void MultiTexParameterIv(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.TextureParameterName pname, UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexParameterIuivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.TextureParameterName)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexParameterIivEXT")] public static void GetMultiTexParameterI(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -93994,12 +123197,19 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexParameterIivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetMultiTexParameterIivEXT")] public static void GetMultiTexParameterI(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -94008,6 +123218,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94015,7 +123228,14 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexParameterI(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexParameterIivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94023,6 +123243,10 @@ namespace OpenTK.Graphics public static void GetMultiTexParameterI(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = @params) @@ -94030,6 +123254,9 @@ namespace OpenTK.Graphics Delegates.glGetMultiTexParameterIuivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94037,6 +123264,10 @@ namespace OpenTK.Graphics public static void GetMultiTexParameterI(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] out UInt32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* @params_ptr = &@params) @@ -94045,6 +123276,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94052,7 +123286,14 @@ namespace OpenTK.Graphics public static unsafe void GetMultiTexParameterI(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.GetTextureParameter pname, [Out] UInt32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetMultiTexParameterIuivEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.GetTextureParameter)pname, (UInt32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94060,7 +123301,14 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Single v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1fEXT((UInt32)program, (Int32)location, (Single)v0); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform1fEXT")] @@ -94075,7 +123323,14 @@ namespace OpenTK.Graphics public static void ProgramUniform2(UInt32 program, Int32 location, Single v0, Single v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2fEXT((UInt32)program, (Int32)location, (Single)v0, (Single)v1); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform2fEXT")] @@ -94090,7 +123345,14 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Single v0, Single v1, Single v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3fEXT((UInt32)program, (Int32)location, (Single)v0, (Single)v1, (Single)v2); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform3fEXT")] @@ -94105,7 +123367,14 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Single v0, Single v1, Single v2, Single v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4fEXT((UInt32)program, (Int32)location, (Single)v0, (Single)v1, (Single)v2, (Single)v3); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform4fEXT")] @@ -94120,7 +123389,14 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1iEXT((UInt32)program, (Int32)location, (Int32)v0); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform1iEXT")] @@ -94135,7 +123411,14 @@ namespace OpenTK.Graphics public static void ProgramUniform2(UInt32 program, Int32 location, Int32 v0, Int32 v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2iEXT((UInt32)program, (Int32)location, (Int32)v0, (Int32)v1); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform2iEXT")] @@ -94150,7 +123433,14 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 v0, Int32 v1, Int32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3iEXT((UInt32)program, (Int32)location, (Int32)v0, (Int32)v1, (Int32)v2); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform3iEXT")] @@ -94165,7 +123455,14 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 v0, Int32 v1, Int32 v2, Int32 v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4iEXT((UInt32)program, (Int32)location, (Int32)v0, (Int32)v1, (Int32)v2, (Int32)v3); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform4iEXT")] @@ -94180,6 +123477,10 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94187,12 +123488,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform1fvEXT")] public static void ProgramUniform1(Int32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94200,6 +123508,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94207,6 +123518,10 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94214,12 +123529,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform1fvEXT")] public static void ProgramUniform1(Int32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94227,6 +123549,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94234,7 +123559,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform1(UInt32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94242,7 +123574,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform1(Int32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94250,6 +123589,10 @@ namespace OpenTK.Graphics public static void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94257,12 +123600,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform2fvEXT")] public static void ProgramUniform2v(Int32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94270,6 +123620,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94277,6 +123630,10 @@ namespace OpenTK.Graphics public static void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94284,12 +123641,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform2fvEXT")] public static void ProgramUniform2v(Int32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94297,6 +123661,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94304,7 +123671,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94312,7 +123686,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform2v(Int32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94320,6 +123701,10 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94327,12 +123712,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform3fvEXT")] public static void ProgramUniform3(Int32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94340,6 +123732,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94347,6 +123742,10 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94354,12 +123753,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform3fvEXT")] public static void ProgramUniform3(Int32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94367,6 +123773,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94374,7 +123783,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform3(UInt32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94382,7 +123798,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform3(Int32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94390,6 +123813,10 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94397,12 +123824,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform4fvEXT")] public static void ProgramUniform4(Int32 program, Int32 location, Int32 count, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94410,6 +123844,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94417,6 +123854,10 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94424,12 +123865,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform4fvEXT")] public static void ProgramUniform4(Int32 program, Int32 location, Int32 count, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94437,6 +123885,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94444,7 +123895,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform4(UInt32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94452,7 +123910,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform4(Int32 program, Int32 location, Int32 count, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4fvEXT((UInt32)program, (Int32)location, (Int32)count, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94460,6 +123925,10 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94467,12 +123936,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform1ivEXT")] public static void ProgramUniform1(Int32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94480,6 +123956,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94487,6 +123966,10 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94494,12 +123977,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform1ivEXT")] public static void ProgramUniform1(Int32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94507,6 +123997,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94514,7 +124007,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform1(UInt32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94522,7 +124022,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform1(Int32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94530,6 +124037,10 @@ namespace OpenTK.Graphics public static void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94537,12 +124048,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform2ivEXT")] public static void ProgramUniform2v(Int32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94550,6 +124068,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94557,6 +124078,10 @@ namespace OpenTK.Graphics public static void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94564,12 +124089,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform2ivEXT")] public static void ProgramUniform2v(Int32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94577,6 +124109,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94584,7 +124119,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94592,7 +124134,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform2v(Int32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94600,6 +124149,10 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94607,12 +124160,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform3ivEXT")] public static void ProgramUniform3(Int32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94620,6 +124180,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94627,6 +124190,10 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94634,12 +124201,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform3ivEXT")] public static void ProgramUniform3(Int32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94647,6 +124221,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94654,7 +124231,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform3(UInt32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94662,7 +124246,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform3(Int32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94670,6 +124261,10 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94677,12 +124272,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform4ivEXT")] public static void ProgramUniform4(Int32 program, Int32 location, Int32 count, Int32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = value) @@ -94690,6 +124292,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94697,6 +124302,10 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94704,12 +124313,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniform4ivEXT")] public static void ProgramUniform4(Int32 program, Int32 location, Int32 count, ref Int32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* value_ptr = &value) @@ -94717,6 +124333,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94724,7 +124343,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform4(UInt32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94732,7 +124358,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform4(Int32 program, Int32 location, Int32 count, Int32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4ivEXT((UInt32)program, (Int32)location, (Int32)count, (Int32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94740,6 +124373,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix2(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94747,12 +124384,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix2fvEXT")] public static void ProgramUniformMatrix2(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94760,6 +124404,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94767,6 +124414,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix2(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94774,12 +124425,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix2fvEXT")] public static void ProgramUniformMatrix2(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94787,6 +124445,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94794,7 +124455,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix2(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94802,7 +124470,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix2(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94810,6 +124485,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix3(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94817,12 +124496,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix3fvEXT")] public static void ProgramUniformMatrix3(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94830,6 +124516,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94837,6 +124526,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix3(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94844,12 +124537,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix3fvEXT")] public static void ProgramUniformMatrix3(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94857,6 +124557,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94864,7 +124567,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix3(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94872,7 +124582,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix3(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94880,6 +124597,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix4(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94887,12 +124608,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix4fvEXT")] public static void ProgramUniformMatrix4(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94900,6 +124628,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94907,6 +124638,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix4(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94914,12 +124649,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix4fvEXT")] public static void ProgramUniformMatrix4(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94927,6 +124669,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94934,7 +124679,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix4(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94942,7 +124694,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix4(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94950,6 +124709,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix2x3(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94957,12 +124720,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix2x3fvEXT")] public static void ProgramUniformMatrix2x3(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -94970,6 +124740,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -94977,6 +124750,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix2x3(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94984,12 +124761,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix2x3fvEXT")] public static void ProgramUniformMatrix2x3(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -94997,6 +124781,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95004,7 +124791,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix2x3(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix2x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95012,7 +124806,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix2x3(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix2x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95020,6 +124821,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix3x2(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95027,12 +124832,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix3x2fvEXT")] public static void ProgramUniformMatrix3x2(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95040,6 +124852,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95047,6 +124862,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix3x2(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95054,12 +124873,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix3x2fvEXT")] public static void ProgramUniformMatrix3x2(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95067,6 +124893,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95074,7 +124903,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix3x2(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix3x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95082,7 +124918,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix3x2(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix3x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95090,6 +124933,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix2x4(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95097,12 +124944,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix2x4fvEXT")] public static void ProgramUniformMatrix2x4(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95110,6 +124964,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95117,6 +124974,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix2x4(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95124,12 +124985,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix2x4fvEXT")] public static void ProgramUniformMatrix2x4(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95137,6 +125005,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix2x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95144,7 +125015,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix2x4(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix2x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95152,7 +125030,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix2x4(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix2x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95160,6 +125045,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix4x2(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95167,12 +125056,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix4x2fvEXT")] public static void ProgramUniformMatrix4x2(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95180,6 +125076,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95187,6 +125086,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix4x2(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95194,12 +125097,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix4x2fvEXT")] public static void ProgramUniformMatrix4x2(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95207,6 +125117,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95214,7 +125127,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix4x2(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix4x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95222,7 +125142,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix4x2(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix4x2fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95230,6 +125157,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix3x4(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95237,12 +125168,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix3x4fvEXT")] public static void ProgramUniformMatrix3x4(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95250,6 +125188,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95257,6 +125198,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix3x4(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95264,12 +125209,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix3x4fvEXT")] public static void ProgramUniformMatrix3x4(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95277,6 +125229,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix3x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95284,7 +125239,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix3x4(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix3x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95292,7 +125254,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix3x4(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix3x4fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95300,6 +125269,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix4x3(UInt32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95307,12 +125280,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix4x3fvEXT")] public static void ProgramUniformMatrix4x3(Int32 program, Int32 location, Int32 count, bool transpose, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -95320,6 +125300,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95327,6 +125310,10 @@ namespace OpenTK.Graphics public static void ProgramUniformMatrix4x3(UInt32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95334,12 +125321,19 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glProgramUniformMatrix4x3fvEXT")] public static void ProgramUniformMatrix4x3(Int32 program, Int32 location, Int32 count, bool transpose, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -95347,6 +125341,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniformMatrix4x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95354,7 +125351,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix4x3(UInt32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix4x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95362,7 +125366,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniformMatrix4x3(Int32 program, Int32 location, Int32 count, bool transpose, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniformMatrix4x3fvEXT((UInt32)program, (Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95370,7 +125381,14 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, UInt32 v0) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1uiEXT((UInt32)program, (Int32)location, (UInt32)v0); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95378,7 +125396,14 @@ namespace OpenTK.Graphics public static void ProgramUniform2(UInt32 program, Int32 location, UInt32 v0, UInt32 v1) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2uiEXT((UInt32)program, (Int32)location, (UInt32)v0, (UInt32)v1); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95386,7 +125411,14 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, UInt32 v0, UInt32 v1, UInt32 v2) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3uiEXT((UInt32)program, (Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95394,7 +125426,14 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, UInt32 v0, UInt32 v1, UInt32 v2, UInt32 v3) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4uiEXT((UInt32)program, (Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2, (UInt32)v3); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95402,6 +125441,10 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -95409,6 +125452,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95416,6 +125462,10 @@ namespace OpenTK.Graphics public static void ProgramUniform1(UInt32 program, Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -95423,6 +125473,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform1uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95430,7 +125483,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform1(UInt32 program, Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform1uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95438,6 +125498,10 @@ namespace OpenTK.Graphics public static void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -95445,6 +125509,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95452,6 +125519,10 @@ namespace OpenTK.Graphics public static void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -95459,6 +125530,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform2uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95466,7 +125540,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform2v(UInt32 program, Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform2uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95474,6 +125555,10 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -95481,6 +125566,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95488,6 +125576,10 @@ namespace OpenTK.Graphics public static void ProgramUniform3(UInt32 program, Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -95495,6 +125587,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform3uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95502,7 +125597,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform3(UInt32 program, Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform3uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95510,6 +125612,10 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 count, UInt32[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = value) @@ -95517,6 +125623,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95524,6 +125633,10 @@ namespace OpenTK.Graphics public static void ProgramUniform4(UInt32 program, Int32 location, Int32 count, ref UInt32 value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* value_ptr = &value) @@ -95531,6 +125644,9 @@ namespace OpenTK.Graphics Delegates.glProgramUniform4uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95538,7 +125654,14 @@ namespace OpenTK.Graphics public static unsafe void ProgramUniform4(UInt32 program, Int32 location, Int32 count, UInt32* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glProgramUniform4uivEXT((UInt32)program, (Int32)location, (Int32)count, (UInt32*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95546,20 +125669,28 @@ namespace OpenTK.Graphics public static void NamedBufferData(UInt32 buffer, IntPtr size, IntPtr data, OpenTK.Graphics.ExtDirectStateAccess usage) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ExtDirectStateAccess)usage); + #endif + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ExtDirectStateAccess)usage); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferDataEXT")] public static void NamedBufferData(Int32 buffer, IntPtr size, IntPtr data, OpenTK.Graphics.ExtDirectStateAccess usage) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ExtDirectStateAccess)usage); + #endif + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ExtDirectStateAccess)usage); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -95568,18 +125699,22 @@ namespace OpenTK.Graphics void NamedBufferData(UInt32 buffer, IntPtr size, [In, Out] ref T2 data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferDataEXT")] @@ -95587,18 +125722,22 @@ namespace OpenTK.Graphics void NamedBufferData(Int32 buffer, IntPtr size, [In, Out] ref T2 data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95607,18 +125746,22 @@ namespace OpenTK.Graphics void NamedBufferData(UInt32 buffer, IntPtr size, [In, Out] T2[] data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferDataEXT")] @@ -95626,18 +125769,22 @@ namespace OpenTK.Graphics void NamedBufferData(Int32 buffer, IntPtr size, [In, Out] T2[] data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95646,18 +125793,22 @@ namespace OpenTK.Graphics void NamedBufferData(UInt32 buffer, IntPtr size, [In, Out] T2[,] data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferDataEXT")] @@ -95665,18 +125816,22 @@ namespace OpenTK.Graphics void NamedBufferData(Int32 buffer, IntPtr size, [In, Out] T2[,] data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95685,18 +125840,22 @@ namespace OpenTK.Graphics void NamedBufferData(UInt32 buffer, IntPtr size, [In, Out] T2[,,] data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferDataEXT")] @@ -95704,18 +125863,22 @@ namespace OpenTK.Graphics void NamedBufferData(Int32 buffer, IntPtr size, [In, Out] T2[,,] data, OpenTK.Graphics.ExtDirectStateAccess usage) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferDataEXT((UInt32)buffer, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ExtDirectStateAccess)usage); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95723,20 +125886,28 @@ namespace OpenTK.Graphics public static void NamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferSubDataEXT")] public static void NamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -95745,18 +125916,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferSubDataEXT")] @@ -95764,18 +125939,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95784,18 +125963,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferSubDataEXT")] @@ -95803,18 +125986,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95823,18 +126010,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferSubDataEXT")] @@ -95842,18 +126033,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95862,18 +126057,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedBufferSubDataEXT")] @@ -95881,18 +126080,22 @@ namespace OpenTK.Graphics void NamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95900,7 +126103,14 @@ namespace OpenTK.Graphics public static unsafe IntPtr MapNamedBuffer(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess access) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glMapNamedBufferEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)access); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95908,7 +126118,14 @@ namespace OpenTK.Graphics public static unsafe IntPtr MapNamedBuffer(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess access) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glMapNamedBufferEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)access); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95916,7 +126133,14 @@ namespace OpenTK.Graphics public static bool UnmapNamedBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glUnmapNamedBufferEXT((UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glUnmapNamedBufferEXT")] @@ -95931,6 +126155,10 @@ namespace OpenTK.Graphics public static void GetNamedBufferParameter(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -95938,12 +126166,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedBufferParameterivEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferParameterivEXT")] public static void GetNamedBufferParameter(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -95951,6 +126186,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedBufferParameterivEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95958,6 +126196,10 @@ namespace OpenTK.Graphics public static void GetNamedBufferParameter(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -95966,12 +126208,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferParameterivEXT")] public static void GetNamedBufferParameter(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -95980,6 +126229,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95987,7 +126239,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedBufferParameter(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedBufferParameterivEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -95995,7 +126254,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedBufferParameter(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedBufferParameterivEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96003,20 +126269,28 @@ namespace OpenTK.Graphics public static void GetNamedBufferPointer(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params); + #endif + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferPointervEXT")] public static void GetNamedBufferPointer(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params); + #endif + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -96025,18 +126299,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] ref T2 @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferPointervEXT")] @@ -96044,18 +126322,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] ref T2 @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96064,18 +126346,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T2[] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferPointervEXT")] @@ -96083,18 +126369,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T2[] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96103,18 +126393,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T2[,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferPointervEXT")] @@ -96122,18 +126416,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T2[,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96142,18 +126440,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(UInt32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T2[,,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferPointervEXT")] @@ -96161,18 +126463,22 @@ namespace OpenTK.Graphics void GetNamedBufferPointer(Int32 buffer, OpenTK.Graphics.ExtDirectStateAccess pname, [In, Out] T2[,,] @params) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferPointervEXT((UInt32)buffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96180,20 +126486,28 @@ namespace OpenTK.Graphics public static void GetNamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferSubDataEXT")] public static void GetNamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [Out] IntPtr data) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #endif + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -96202,18 +126516,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferSubDataEXT")] @@ -96221,18 +126539,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] ref T3 data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96241,18 +126563,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferSubDataEXT")] @@ -96260,18 +126586,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96280,18 +126610,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferSubDataEXT")] @@ -96299,18 +126633,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96319,18 +126657,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(UInt32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedBufferSubDataEXT")] @@ -96338,18 +126680,22 @@ namespace OpenTK.Graphics void GetNamedBufferSubData(Int32 buffer, IntPtr offset, IntPtr size, [In, Out] T3[,,] data) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetNamedBufferSubDataEXT((UInt32)buffer, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96357,7 +126703,14 @@ namespace OpenTK.Graphics public static void TextureBuffer(UInt32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ExtDirectStateAccess internalformat, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureBufferEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureBufferEXT")] @@ -96372,7 +126725,14 @@ namespace OpenTK.Graphics public static void MultiTexBuffer(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ExtDirectStateAccess internalformat, UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexBufferEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.ExtDirectStateAccess)internalformat, (UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexBufferEXT")] @@ -96387,7 +126747,14 @@ namespace OpenTK.Graphics public static void NamedRenderbufferStorage(UInt32 renderbuffer, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedRenderbufferStorageEXT((UInt32)renderbuffer, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedRenderbufferStorageEXT")] @@ -96402,6 +126769,10 @@ namespace OpenTK.Graphics public static void GetNamedRenderbufferParameter(UInt32 renderbuffer, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -96409,12 +126780,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedRenderbufferParameterivEXT((UInt32)renderbuffer, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedRenderbufferParameterivEXT")] public static void GetNamedRenderbufferParameter(Int32 renderbuffer, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -96422,6 +126800,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedRenderbufferParameterivEXT((UInt32)renderbuffer, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96429,6 +126810,10 @@ namespace OpenTK.Graphics public static void GetNamedRenderbufferParameter(UInt32 renderbuffer, OpenTK.Graphics.RenderbufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -96437,12 +126822,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedRenderbufferParameterivEXT")] public static void GetNamedRenderbufferParameter(Int32 renderbuffer, OpenTK.Graphics.RenderbufferParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -96451,6 +126843,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96458,7 +126853,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedRenderbufferParameter(UInt32 renderbuffer, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedRenderbufferParameterivEXT((UInt32)renderbuffer, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96466,7 +126868,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedRenderbufferParameter(Int32 renderbuffer, OpenTK.Graphics.RenderbufferParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedRenderbufferParameterivEXT((UInt32)renderbuffer, (OpenTK.Graphics.RenderbufferParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96474,7 +126883,14 @@ namespace OpenTK.Graphics public static OpenTK.Graphics.ExtDirectStateAccess CheckNamedFramebufferStatus(UInt32 framebuffer, OpenTK.Graphics.FramebufferTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glCheckNamedFramebufferStatusEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferTarget)target); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glCheckNamedFramebufferStatusEXT")] @@ -96489,7 +126905,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferTexture1D(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferTexture1DEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferTexture1DEXT")] @@ -96504,7 +126927,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferTexture2D(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferTexture2DEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferTexture2DEXT")] @@ -96519,7 +126949,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferTexture3D(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, UInt32 texture, Int32 level, Int32 zoffset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferTexture3DEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.TextureTarget)textarget, (UInt32)texture, (Int32)level, (Int32)zoffset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferTexture3DEXT")] @@ -96534,7 +126971,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferRenderbuffer(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferRenderbufferEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferRenderbufferEXT")] @@ -96549,6 +126993,10 @@ namespace OpenTK.Graphics public static void GetNamedFramebufferAttachmentParameter(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -96556,12 +127004,19 @@ namespace OpenTK.Graphics Delegates.glGetNamedFramebufferAttachmentParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedFramebufferAttachmentParameterivEXT")] public static void GetNamedFramebufferAttachmentParameter(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -96569,6 +127024,9 @@ namespace OpenTK.Graphics Delegates.glGetNamedFramebufferAttachmentParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96576,6 +127034,10 @@ namespace OpenTK.Graphics public static void GetNamedFramebufferAttachmentParameter(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -96584,12 +127046,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetNamedFramebufferAttachmentParameterivEXT")] public static void GetNamedFramebufferAttachmentParameter(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -96598,6 +127067,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96605,7 +127077,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedFramebufferAttachmentParameter(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedFramebufferAttachmentParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96613,7 +127092,14 @@ namespace OpenTK.Graphics public static unsafe void GetNamedFramebufferAttachmentParameter(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetNamedFramebufferAttachmentParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96621,7 +127107,14 @@ namespace OpenTK.Graphics public static void GenerateTextureMipmap(UInt32 texture, OpenTK.Graphics.TextureTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenerateTextureMipmapEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGenerateTextureMipmapEXT")] @@ -96635,7 +127128,14 @@ namespace OpenTK.Graphics public static void GenerateMultiTexMipmap(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenerateMultiTexMipmapEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96643,7 +127143,14 @@ namespace OpenTK.Graphics public static void FramebufferDrawBuffer(UInt32 framebuffer, OpenTK.Graphics.DrawBufferMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferDrawBufferEXT((UInt32)framebuffer, (OpenTK.Graphics.DrawBufferMode)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glFramebufferDrawBufferEXT")] @@ -96658,6 +127165,10 @@ namespace OpenTK.Graphics public static void FramebufferDrawBuffers(UInt32 framebuffer, Int32 n, OpenTK.Graphics.DrawBufferMode[] bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.DrawBufferMode* bufs_ptr = bufs) @@ -96665,12 +127176,19 @@ namespace OpenTK.Graphics Delegates.glFramebufferDrawBuffersEXT((UInt32)framebuffer, (Int32)n, (OpenTK.Graphics.DrawBufferMode*)bufs_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glFramebufferDrawBuffersEXT")] public static void FramebufferDrawBuffers(Int32 framebuffer, Int32 n, OpenTK.Graphics.DrawBufferMode[] bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.DrawBufferMode* bufs_ptr = bufs) @@ -96678,6 +127196,9 @@ namespace OpenTK.Graphics Delegates.glFramebufferDrawBuffersEXT((UInt32)framebuffer, (Int32)n, (OpenTK.Graphics.DrawBufferMode*)bufs_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96685,6 +127206,10 @@ namespace OpenTK.Graphics public static void FramebufferDrawBuffers(UInt32 framebuffer, Int32 n, ref OpenTK.Graphics.DrawBufferMode bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.DrawBufferMode* bufs_ptr = &bufs) @@ -96692,12 +127217,19 @@ namespace OpenTK.Graphics Delegates.glFramebufferDrawBuffersEXT((UInt32)framebuffer, (Int32)n, (OpenTK.Graphics.DrawBufferMode*)bufs_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glFramebufferDrawBuffersEXT")] public static void FramebufferDrawBuffers(Int32 framebuffer, Int32 n, ref OpenTK.Graphics.DrawBufferMode bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.DrawBufferMode* bufs_ptr = &bufs) @@ -96705,6 +127237,9 @@ namespace OpenTK.Graphics Delegates.glFramebufferDrawBuffersEXT((UInt32)framebuffer, (Int32)n, (OpenTK.Graphics.DrawBufferMode*)bufs_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96712,7 +127247,14 @@ namespace OpenTK.Graphics public static unsafe void FramebufferDrawBuffers(UInt32 framebuffer, Int32 n, OpenTK.Graphics.DrawBufferMode* bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferDrawBuffersEXT((UInt32)framebuffer, (Int32)n, (OpenTK.Graphics.DrawBufferMode*)bufs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96720,7 +127262,14 @@ namespace OpenTK.Graphics public static unsafe void FramebufferDrawBuffers(Int32 framebuffer, Int32 n, OpenTK.Graphics.DrawBufferMode* bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferDrawBuffersEXT((UInt32)framebuffer, (Int32)n, (OpenTK.Graphics.DrawBufferMode*)bufs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96728,7 +127277,14 @@ namespace OpenTK.Graphics public static void FramebufferReadBuffer(UInt32 framebuffer, OpenTK.Graphics.ReadBufferMode mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFramebufferReadBufferEXT((UInt32)framebuffer, (OpenTK.Graphics.ReadBufferMode)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glFramebufferReadBufferEXT")] @@ -96743,6 +127299,10 @@ namespace OpenTK.Graphics public static void GetFramebufferParameter(UInt32 framebuffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -96750,12 +127310,19 @@ namespace OpenTK.Graphics Delegates.glGetFramebufferParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetFramebufferParameterivEXT")] public static void GetFramebufferParameter(Int32 framebuffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -96763,6 +127330,9 @@ namespace OpenTK.Graphics Delegates.glGetFramebufferParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96770,6 +127340,10 @@ namespace OpenTK.Graphics public static void GetFramebufferParameter(UInt32 framebuffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -96778,12 +127352,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glGetFramebufferParameterivEXT")] public static void GetFramebufferParameter(Int32 framebuffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -96792,6 +127373,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96799,7 +127383,14 @@ namespace OpenTK.Graphics public static unsafe void GetFramebufferParameter(UInt32 framebuffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFramebufferParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96807,7 +127398,14 @@ namespace OpenTK.Graphics public static unsafe void GetFramebufferParameter(Int32 framebuffer, OpenTK.Graphics.ExtDirectStateAccess pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFramebufferParameterivEXT((UInt32)framebuffer, (OpenTK.Graphics.ExtDirectStateAccess)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96815,7 +127413,14 @@ namespace OpenTK.Graphics public static void NamedRenderbufferStorageMultisample(UInt32 renderbuffer, Int32 samples, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedRenderbufferStorageMultisampleEXT((UInt32)renderbuffer, (Int32)samples, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedRenderbufferStorageMultisampleEXT")] @@ -96830,7 +127435,14 @@ namespace OpenTK.Graphics public static void NamedRenderbufferStorageMultisampleCoverage(UInt32 renderbuffer, Int32 coverageSamples, Int32 colorSamples, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedRenderbufferStorageMultisampleCoverageEXT((UInt32)renderbuffer, (Int32)coverageSamples, (Int32)colorSamples, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedRenderbufferStorageMultisampleCoverageEXT")] @@ -96845,7 +127457,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferTexture(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferTextureEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferTextureEXT")] @@ -96860,7 +127479,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferTextureLayer(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferTextureLayerEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferTextureLayerEXT")] @@ -96875,7 +127501,14 @@ namespace OpenTK.Graphics public static void NamedFramebufferTextureFace(UInt32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, UInt32 texture, Int32 level, OpenTK.Graphics.TextureTarget face) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNamedFramebufferTextureFaceEXT((UInt32)framebuffer, (OpenTK.Graphics.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (OpenTK.Graphics.TextureTarget)face); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glNamedFramebufferTextureFaceEXT")] @@ -96890,7 +127523,14 @@ namespace OpenTK.Graphics public static void TextureRenderbuffer(UInt32 texture, OpenTK.Graphics.TextureTarget target, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureRenderbufferEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glTextureRenderbufferEXT")] @@ -96905,7 +127545,14 @@ namespace OpenTK.Graphics public static void MultiTexRenderbuffer(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, UInt32 renderbuffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiTexRenderbufferEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMultiTexRenderbufferEXT")] @@ -96915,6 +127562,20 @@ namespace OpenTK.Graphics Delegates.glMultiTexRenderbufferEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (UInt32)renderbuffer); } + [AutoGenerated(Category = "ExtProvokingVertex", Version = "2.1", EntryPoint = "glProvokingVertexEXT")] + public static + void ProvokingVertex(OpenTK.Graphics.ExtProvokingVertex mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glProvokingVertexEXT((OpenTK.Graphics.ExtProvokingVertex)mode); + #if DEBUG + } + #endif + } + } public static partial class Sgis @@ -96923,6 +127584,10 @@ namespace OpenTK.Graphics public static void GetTexFilterFunc(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SgisTextureFilter4 filter, [Out] Single[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weights_ptr = weights) @@ -96930,12 +127595,19 @@ namespace OpenTK.Graphics Delegates.glGetTexFilterFuncSGIS((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SgisTextureFilter4)filter, (Single*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTextureFilter4", Version = "1.0", EntryPoint = "glGetTexFilterFuncSGIS")] public static void GetTexFilterFunc(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SgisTextureFilter4 filter, [Out] out Single weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weights_ptr = &weights) @@ -96944,6 +127616,9 @@ namespace OpenTK.Graphics weights = *weights_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96951,13 +127626,24 @@ namespace OpenTK.Graphics public static unsafe void GetTexFilterFunc(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SgisTextureFilter4 filter, [Out] Single* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexFilterFuncSGIS((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SgisTextureFilter4)filter, (Single*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTextureFilter4", Version = "1.0", EntryPoint = "glTexFilterFuncSGIS")] public static void TexFilterFunc(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SgisTextureFilter4 filter, Int32 n, Single[] weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weights_ptr = weights) @@ -96965,12 +127651,19 @@ namespace OpenTK.Graphics Delegates.glTexFilterFuncSGIS((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SgisTextureFilter4)filter, (Int32)n, (Single*)weights_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTextureFilter4", Version = "1.0", EntryPoint = "glTexFilterFuncSGIS")] public static void TexFilterFunc(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SgisTextureFilter4 filter, Int32 n, ref Single weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* weights_ptr = &weights) @@ -96978,6 +127671,9 @@ namespace OpenTK.Graphics Delegates.glTexFilterFuncSGIS((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SgisTextureFilter4)filter, (Int32)n, (Single*)weights_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -96985,20 +127681,38 @@ namespace OpenTK.Graphics public static unsafe void TexFilterFunc(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SgisTextureFilter4 filter, Int32 n, Single* weights) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexFilterFuncSGIS((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SgisTextureFilter4)filter, (Int32)n, (Single*)weights); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glPixelTexGenParameteriSGIS")] public static void PixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTexGenParameteriSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glPixelTexGenParameterivSGIS")] public static void PixelTexGenParameterv(OpenTK.Graphics.SgisPixelTexture pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -97006,12 +127720,19 @@ namespace OpenTK.Graphics Delegates.glPixelTexGenParameterivSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glPixelTexGenParameterivSGIS")] public static void PixelTexGenParameterv(OpenTK.Graphics.SgisPixelTexture pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -97019,6 +127740,9 @@ namespace OpenTK.Graphics Delegates.glPixelTexGenParameterivSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97026,20 +127750,38 @@ namespace OpenTK.Graphics public static unsafe void PixelTexGenParameterv(OpenTK.Graphics.SgisPixelTexture pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTexGenParameterivSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glPixelTexGenParameterfSGIS")] public static void PixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTexGenParameterfSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glPixelTexGenParameterfvSGIS")] public static void PixelTexGenParameterv(OpenTK.Graphics.SgisPixelTexture pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -97047,12 +127789,19 @@ namespace OpenTK.Graphics Delegates.glPixelTexGenParameterfvSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glPixelTexGenParameterfvSGIS")] public static void PixelTexGenParameterv(OpenTK.Graphics.SgisPixelTexture pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -97060,6 +127809,9 @@ namespace OpenTK.Graphics Delegates.glPixelTexGenParameterfvSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97067,13 +127819,24 @@ namespace OpenTK.Graphics public static unsafe void PixelTexGenParameterv(OpenTK.Graphics.SgisPixelTexture pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTexGenParameterfvSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glGetPixelTexGenParameterivSGIS")] public static void GetPixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -97081,12 +127844,19 @@ namespace OpenTK.Graphics Delegates.glGetPixelTexGenParameterivSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glGetPixelTexGenParameterivSGIS")] public static void GetPixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -97095,6 +127865,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97102,13 +127875,24 @@ namespace OpenTK.Graphics public static unsafe void GetPixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelTexGenParameterivSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glGetPixelTexGenParameterfvSGIS")] public static void GetPixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -97116,12 +127900,19 @@ namespace OpenTK.Graphics Delegates.glGetPixelTexGenParameterfvSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPixelTexture", Version = "1.0", EntryPoint = "glGetPixelTexGenParameterfvSGIS")] public static void GetPixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -97130,6 +127921,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97137,17 +127931,28 @@ namespace OpenTK.Graphics public static unsafe void GetPixelTexGenParameter(OpenTK.Graphics.SgisPixelTexture pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetPixelTexGenParameterfvSGIS((OpenTK.Graphics.SgisPixelTexture)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexImage4DSGIS")] public static void TexImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 size4d, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexImage4DSGIS")] @@ -97155,18 +127960,22 @@ namespace OpenTK.Graphics void TexImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 size4d, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T10 pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexImage4DSGIS")] @@ -97174,18 +127983,22 @@ namespace OpenTK.Graphics void TexImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 size4d, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexImage4DSGIS")] @@ -97193,18 +128006,22 @@ namespace OpenTK.Graphics void TexImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 size4d, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexImage4DSGIS")] @@ -97212,28 +128029,36 @@ namespace OpenTK.Graphics void TexImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 depth, Int32 size4d, Int32 border, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T10[,,] pixels) where T10 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (Int32)border, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexSubImage4DSGIS")] public static void TexSubImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 woffset, Int32 width, Int32 height, Int32 depth, Int32 size4d, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr pixels) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #endif + Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels); + #if DEBUG } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexSubImage4DSGIS")] @@ -97241,18 +128066,22 @@ namespace OpenTK.Graphics void TexSubImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 woffset, Int32 width, Int32 height, Int32 depth, Int32 size4d, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T12 pixels) where T12 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexSubImage4DSGIS")] @@ -97260,18 +128089,22 @@ namespace OpenTK.Graphics void TexSubImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 woffset, Int32 width, Int32 height, Int32 depth, Int32 size4d, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T12[] pixels) where T12 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexSubImage4DSGIS")] @@ -97279,18 +128112,22 @@ namespace OpenTK.Graphics void TexSubImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 woffset, Int32 width, Int32 height, Int32 depth, Int32 size4d, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T12[,] pixels) where T12 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTexture4D", Version = "1.0", EntryPoint = "glTexSubImage4DSGIS")] @@ -97298,24 +128135,32 @@ namespace OpenTK.Graphics void TexSubImage4D(OpenTK.Graphics.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 woffset, Int32 width, Int32 height, Int32 depth, Int32 size4d, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T12[,,] pixels) where T12 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage4DSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)woffset, (Int32)width, (Int32)height, (Int32)depth, (Int32)size4d, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisDetailTexture", Version = "1.0", EntryPoint = "glDetailTexFuncSGIS")] public static void DetailTexFunc(OpenTK.Graphics.TextureTarget target, Int32 n, Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -97323,12 +128168,19 @@ namespace OpenTK.Graphics Delegates.glDetailTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)n, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisDetailTexture", Version = "1.0", EntryPoint = "glDetailTexFuncSGIS")] public static void DetailTexFunc(OpenTK.Graphics.TextureTarget target, Int32 n, ref Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -97336,6 +128188,9 @@ namespace OpenTK.Graphics Delegates.glDetailTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)n, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97343,13 +128198,24 @@ namespace OpenTK.Graphics public static unsafe void DetailTexFunc(OpenTK.Graphics.TextureTarget target, Int32 n, Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDetailTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)n, (Single*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisDetailTexture", Version = "1.0", EntryPoint = "glGetDetailTexFuncSGIS")] public static void GetDetailTexFunc(OpenTK.Graphics.TextureTarget target, [Out] Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -97357,12 +128223,19 @@ namespace OpenTK.Graphics Delegates.glGetDetailTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisDetailTexture", Version = "1.0", EntryPoint = "glGetDetailTexFuncSGIS")] public static void GetDetailTexFunc(OpenTK.Graphics.TextureTarget target, [Out] out Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -97371,6 +128244,9 @@ namespace OpenTK.Graphics points = *points_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97378,13 +128254,24 @@ namespace OpenTK.Graphics public static unsafe void GetDetailTexFunc(OpenTK.Graphics.TextureTarget target, [Out] Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetDetailTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Single*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisSharpenTexture", Version = "1.0", EntryPoint = "glSharpenTexFuncSGIS")] public static void SharpenTexFunc(OpenTK.Graphics.TextureTarget target, Int32 n, Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -97392,12 +128279,19 @@ namespace OpenTK.Graphics Delegates.glSharpenTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)n, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisSharpenTexture", Version = "1.0", EntryPoint = "glSharpenTexFuncSGIS")] public static void SharpenTexFunc(OpenTK.Graphics.TextureTarget target, Int32 n, ref Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -97405,6 +128299,9 @@ namespace OpenTK.Graphics Delegates.glSharpenTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)n, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97412,13 +128309,24 @@ namespace OpenTK.Graphics public static unsafe void SharpenTexFunc(OpenTK.Graphics.TextureTarget target, Int32 n, Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSharpenTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Int32)n, (Single*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisSharpenTexture", Version = "1.0", EntryPoint = "glGetSharpenTexFuncSGIS")] public static void GetSharpenTexFunc(OpenTK.Graphics.TextureTarget target, [Out] Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -97426,12 +128334,19 @@ namespace OpenTK.Graphics Delegates.glGetSharpenTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisSharpenTexture", Version = "1.0", EntryPoint = "glGetSharpenTexFuncSGIS")] public static void GetSharpenTexFunc(OpenTK.Graphics.TextureTarget target, [Out] out Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -97440,6 +128355,9 @@ namespace OpenTK.Graphics points = *points_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97447,21 +128365,42 @@ namespace OpenTK.Graphics public static unsafe void GetSharpenTexFunc(OpenTK.Graphics.TextureTarget target, [Out] Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetSharpenTexFuncSGIS((OpenTK.Graphics.TextureTarget)target, (Single*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisMultisample", Version = "1.1", EntryPoint = "glSampleMaskSGIS")] public static void SampleMask(Single value, bool invert) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSampleMaskSGIS((Single)value, (bool)invert); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisMultisample", Version = "1.0", EntryPoint = "glSamplePatternSGIS")] public static void SamplePattern(OpenTK.Graphics.SgisMultisample pattern) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSamplePatternSGIS((OpenTK.Graphics.SgisMultisample)pattern); + #if DEBUG + } + #endif } @@ -97482,13 +128421,24 @@ namespace OpenTK.Graphics public static void PointParameter(OpenTK.Graphics.SgisPointParameters pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfSGIS((OpenTK.Graphics.SgisPointParameters)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPointParameters", Version = "1.0", EntryPoint = "glPointParameterfvSGIS")] public static void PointParameterv(OpenTK.Graphics.SgisPointParameters pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -97496,12 +128446,19 @@ namespace OpenTK.Graphics Delegates.glPointParameterfvSGIS((OpenTK.Graphics.SgisPointParameters)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisPointParameters", Version = "1.0", EntryPoint = "glPointParameterfvSGIS")] public static void PointParameterv(OpenTK.Graphics.SgisPointParameters pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -97509,6 +128466,9 @@ namespace OpenTK.Graphics Delegates.glPointParameterfvSGIS((OpenTK.Graphics.SgisPointParameters)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97516,13 +128476,24 @@ namespace OpenTK.Graphics public static unsafe void PointParameterv(OpenTK.Graphics.SgisPointParameters pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPointParameterfvSGIS((OpenTK.Graphics.SgisPointParameters)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisFogFunction", Version = "1.1", EntryPoint = "glFogFuncSGIS")] public static void FogFunc(Int32 n, Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -97530,12 +128501,19 @@ namespace OpenTK.Graphics Delegates.glFogFuncSGIS((Int32)n, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisFogFunction", Version = "1.1", EntryPoint = "glFogFuncSGIS")] public static void FogFunc(Int32 n, ref Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -97543,6 +128521,9 @@ namespace OpenTK.Graphics Delegates.glFogFuncSGIS((Int32)n, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97550,13 +128531,24 @@ namespace OpenTK.Graphics public static unsafe void FogFunc(Int32 n, Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFogFuncSGIS((Int32)n, (Single*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisFogFunction", Version = "1.1", EntryPoint = "glGetFogFuncSGIS")] public static void GetFogFunc([Out] Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -97564,12 +128556,19 @@ namespace OpenTK.Graphics Delegates.glGetFogFuncSGIS((Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisFogFunction", Version = "1.1", EntryPoint = "glGetFogFuncSGIS")] public static void GetFogFunc([Out] out Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -97578,6 +128577,9 @@ namespace OpenTK.Graphics points = *points_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -97585,14 +128587,28 @@ namespace OpenTK.Graphics public static unsafe void GetFogFunc([Out] Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFogFuncSGIS((Single*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgisTextureColorMask", Version = "1.1", EntryPoint = "glTextureColorMaskSGIS")] public static void TextureColorMask(bool red, bool green, bool blue, bool alpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTextureColorMaskSGIS((bool)red, (bool)green, (bool)blue, (bool)alpha); + #if DEBUG + } + #endif } } @@ -97637,10 +128653,14 @@ namespace OpenTK.Graphics public static void ColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, IntPtr table) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #endif + Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #if DEBUG } + #endif } @@ -97682,18 +128702,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T5 table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -97735,18 +128759,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -97788,18 +128816,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -97841,18 +128873,22 @@ namespace OpenTK.Graphics void ColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 width, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T5[,,] table) where T5 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)width, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -97878,6 +128914,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -97885,6 +128925,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameterfvSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -97910,6 +128953,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -97917,6 +128964,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameterfvSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -97943,7 +128993,14 @@ namespace OpenTK.Graphics public static unsafe void ColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorTableParameterfvSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -97969,6 +129026,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -97976,6 +129037,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameterivSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -98001,6 +129065,10 @@ namespace OpenTK.Graphics public static void ColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -98008,6 +129076,9 @@ namespace OpenTK.Graphics Delegates.glColorTableParameterivSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -98034,7 +129105,14 @@ namespace OpenTK.Graphics public static unsafe void ColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorTableParameterivSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Int32*)@params); + #if DEBUG + } + #endif } @@ -98070,7 +129148,14 @@ namespace OpenTK.Graphics public static void CopyColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glCopyColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width); + #if DEBUG + } + #endif } @@ -98101,10 +129186,14 @@ namespace OpenTK.Graphics public static void GetColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [Out] IntPtr table) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #endif + Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table); + #if DEBUG } + #endif } @@ -98136,18 +129225,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] ref T3 table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -98179,18 +129272,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[] table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -98222,18 +129319,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,] table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -98265,18 +129366,22 @@ namespace OpenTK.Graphics void GetColorTable(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.PixelFormat format, OpenTK.Graphics.PixelType type, [In, Out] T3[,,] table) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); - try - { - Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); - } - finally - { - table_ptr.Free(); - } + #endif + GCHandle table_ptr = GCHandle.Alloc(table, GCHandleType.Pinned); + try + { + Delegates.glGetColorTableSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.PixelFormat)format, (OpenTK.Graphics.PixelType)type, (IntPtr)table_ptr.AddrOfPinnedObject()); } + finally + { + table_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -98302,6 +129407,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -98309,6 +129418,9 @@ namespace OpenTK.Graphics Delegates.glGetColorTableParameterfvSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -98334,6 +129446,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -98342,6 +129458,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -98368,7 +129487,14 @@ namespace OpenTK.Graphics public static unsafe void GetColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetColorTableParameterfvSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Single*)@params); + #if DEBUG + } + #endif } @@ -98394,6 +129520,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -98401,6 +129531,9 @@ namespace OpenTK.Graphics Delegates.glGetColorTableParameterivSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } @@ -98426,6 +129559,10 @@ namespace OpenTK.Graphics public static void GetColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -98434,6 +129571,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } @@ -98460,7 +129600,14 @@ namespace OpenTK.Graphics public static unsafe void GetColorTableParameter(OpenTK.Graphics.SgiColorTable target, OpenTK.Graphics.SgiColorTable pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetColorTableParameterivSGI((OpenTK.Graphics.SgiColorTable)target, (OpenTK.Graphics.SgiColorTable)pname, (Int32*)@params); + #if DEBUG + } + #endif } } @@ -98471,20 +129618,38 @@ namespace OpenTK.Graphics public static void PixelTexGen(OpenTK.Graphics.SgixPixelTexture mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPixelTexGenSGIX((OpenTK.Graphics.SgixPixelTexture)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixSprite", Version = "1.0", EntryPoint = "glSpriteParameterfSGIX")] public static void SpriteParameter(OpenTK.Graphics.SgixSprite pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSpriteParameterfSGIX((OpenTK.Graphics.SgixSprite)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixSprite", Version = "1.0", EntryPoint = "glSpriteParameterfvSGIX")] public static void SpriteParameterv(OpenTK.Graphics.SgixSprite pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -98492,12 +129657,19 @@ namespace OpenTK.Graphics Delegates.glSpriteParameterfvSGIX((OpenTK.Graphics.SgixSprite)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixSprite", Version = "1.0", EntryPoint = "glSpriteParameterfvSGIX")] public static void SpriteParameterv(OpenTK.Graphics.SgixSprite pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -98505,6 +129677,9 @@ namespace OpenTK.Graphics Delegates.glSpriteParameterfvSGIX((OpenTK.Graphics.SgixSprite)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98512,20 +129687,38 @@ namespace OpenTK.Graphics public static unsafe void SpriteParameterv(OpenTK.Graphics.SgixSprite pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSpriteParameterfvSGIX((OpenTK.Graphics.SgixSprite)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixSprite", Version = "1.0", EntryPoint = "glSpriteParameteriSGIX")] public static void SpriteParameter(OpenTK.Graphics.SgixSprite pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSpriteParameteriSGIX((OpenTK.Graphics.SgixSprite)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixSprite", Version = "1.0", EntryPoint = "glSpriteParameterivSGIX")] public static void SpriteParameterv(OpenTK.Graphics.SgixSprite pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -98533,12 +129726,19 @@ namespace OpenTK.Graphics Delegates.glSpriteParameterivSGIX((OpenTK.Graphics.SgixSprite)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixSprite", Version = "1.0", EntryPoint = "glSpriteParameterivSGIX")] public static void SpriteParameterv(OpenTK.Graphics.SgixSprite pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -98546,6 +129746,9 @@ namespace OpenTK.Graphics Delegates.glSpriteParameterivSGIX((OpenTK.Graphics.SgixSprite)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98553,20 +129756,38 @@ namespace OpenTK.Graphics public static unsafe void SpriteParameterv(OpenTK.Graphics.SgixSprite pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSpriteParameterivSGIX((OpenTK.Graphics.SgixSprite)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glGetInstrumentsSGIX")] public static Int32 GetInstruments() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGetInstrumentsSGIX(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glInstrumentsBufferSGIX")] public static void InstrumentsBuffer(Int32 size, [Out] Int32[] buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffer_ptr = buffer) @@ -98574,12 +129795,19 @@ namespace OpenTK.Graphics Delegates.glInstrumentsBufferSGIX((Int32)size, (Int32*)buffer_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glInstrumentsBufferSGIX")] public static void InstrumentsBuffer(Int32 size, [Out] out Int32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* buffer_ptr = &buffer) @@ -98588,6 +129816,9 @@ namespace OpenTK.Graphics buffer = *buffer_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98595,13 +129826,24 @@ namespace OpenTK.Graphics public static unsafe void InstrumentsBuffer(Int32 size, [Out] Int32* buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glInstrumentsBufferSGIX((Int32)size, (Int32*)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glPollInstrumentsSGIX")] public static Int32 PollInstruments([Out] Int32[] marker_p) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* marker_p_ptr = marker_p) @@ -98609,12 +129851,19 @@ namespace OpenTK.Graphics return Delegates.glPollInstrumentsSGIX((Int32*)marker_p_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glPollInstrumentsSGIX")] public static Int32 PollInstruments([Out] out Int32 marker_p) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* marker_p_ptr = &marker_p) @@ -98624,6 +129873,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98631,48 +129883,94 @@ namespace OpenTK.Graphics public static unsafe Int32 PollInstruments([Out] Int32* marker_p) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glPollInstrumentsSGIX((Int32*)marker_p); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glReadInstrumentsSGIX")] public static void ReadInstruments(Int32 marker) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReadInstrumentsSGIX((Int32)marker); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glStartInstrumentsSGIX")] public static void StartInstruments() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStartInstrumentsSGIX(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixInstruments", Version = "1.0", EntryPoint = "glStopInstrumentsSGIX")] public static void StopInstruments(Int32 marker) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStopInstrumentsSGIX((Int32)marker); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFramezoom", Version = "1.0", EntryPoint = "glFrameZoomSGIX")] public static void FrameZoom(Int32 factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFrameZoomSGIX((Int32)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixTagSampleBuffer", Version = "1.0", EntryPoint = "glTagSampleBufferSGIX")] public static void TagSampleBuffer() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTagSampleBufferSGIX(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixPolynomialFfd", Version = "1.0", EntryPoint = "glDeformationMap3dSGIX")] public static void DeformationMap3(OpenTK.Graphics.SgixPolynomialFfd target, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double w1, Double w2, Int32 wstride, Int32 worder, Double[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* points_ptr = points) @@ -98680,12 +129978,19 @@ namespace OpenTK.Graphics Delegates.glDeformationMap3dSGIX((OpenTK.Graphics.SgixPolynomialFfd)target, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double)w1, (Double)w2, (Int32)wstride, (Int32)worder, (Double*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixPolynomialFfd", Version = "1.0", EntryPoint = "glDeformationMap3dSGIX")] public static void DeformationMap3(OpenTK.Graphics.SgixPolynomialFfd target, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double w1, Double w2, Int32 wstride, Int32 worder, ref Double points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* points_ptr = &points) @@ -98693,6 +129998,9 @@ namespace OpenTK.Graphics Delegates.glDeformationMap3dSGIX((OpenTK.Graphics.SgixPolynomialFfd)target, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double)w1, (Double)w2, (Int32)wstride, (Int32)worder, (Double*)points_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98700,13 +130008,24 @@ namespace OpenTK.Graphics public static unsafe void DeformationMap3(OpenTK.Graphics.SgixPolynomialFfd target, Double u1, Double u2, Int32 ustride, Int32 uorder, Double v1, Double v2, Int32 vstride, Int32 vorder, Double w1, Double w2, Int32 wstride, Int32 worder, Double* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeformationMap3dSGIX((OpenTK.Graphics.SgixPolynomialFfd)target, (Double)u1, (Double)u2, (Int32)ustride, (Int32)uorder, (Double)v1, (Double)v2, (Int32)vstride, (Int32)vorder, (Double)w1, (Double)w2, (Int32)wstride, (Int32)worder, (Double*)points); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixPolynomialFfd", Version = "1.0", EntryPoint = "glDeformationMap3fSGIX")] public static void DeformationMap3(OpenTK.Graphics.SgixPolynomialFfd target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single w1, Single w2, Int32 wstride, Int32 worder, Single[] points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = points) @@ -98714,12 +130033,19 @@ namespace OpenTK.Graphics Delegates.glDeformationMap3fSGIX((OpenTK.Graphics.SgixPolynomialFfd)target, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single)w1, (Single)w2, (Int32)wstride, (Int32)worder, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixPolynomialFfd", Version = "1.0", EntryPoint = "glDeformationMap3fSGIX")] public static void DeformationMap3(OpenTK.Graphics.SgixPolynomialFfd target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single w1, Single w2, Int32 wstride, Int32 worder, ref Single points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* points_ptr = &points) @@ -98727,6 +130053,9 @@ namespace OpenTK.Graphics Delegates.glDeformationMap3fSGIX((OpenTK.Graphics.SgixPolynomialFfd)target, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single)w1, (Single)w2, (Int32)wstride, (Int32)worder, (Single*)points_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98734,7 +130063,14 @@ namespace OpenTK.Graphics public static unsafe void DeformationMap3(OpenTK.Graphics.SgixPolynomialFfd target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single w1, Single w2, Int32 wstride, Int32 worder, Single* points) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeformationMap3fSGIX((OpenTK.Graphics.SgixPolynomialFfd)target, (Single)u1, (Single)u2, (Int32)ustride, (Int32)uorder, (Single)v1, (Single)v2, (Int32)vstride, (Int32)vorder, (Single)w1, (Single)w2, (Int32)wstride, (Int32)worder, (Single*)points); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98742,7 +130078,14 @@ namespace OpenTK.Graphics public static void Deform(UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeformSGIX((UInt32)mask); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixPolynomialFfd", Version = "1.0", EntryPoint = "glDeformSGIX")] @@ -98757,7 +130100,14 @@ namespace OpenTK.Graphics public static void LoadIdentityDeformationMap(UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLoadIdentityDeformationMapSGIX((UInt32)mask); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixPolynomialFfd", Version = "1.0", EntryPoint = "glLoadIdentityDeformationMapSGIX")] @@ -98771,6 +130121,10 @@ namespace OpenTK.Graphics public static void ReferencePlane(Double[] equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* equation_ptr = equation) @@ -98778,12 +130132,19 @@ namespace OpenTK.Graphics Delegates.glReferencePlaneSGIX((Double*)equation_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixReferencePlane", Version = "1.0", EntryPoint = "glReferencePlaneSGIX")] public static void ReferencePlane(ref Double equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* equation_ptr = &equation) @@ -98791,6 +130152,9 @@ namespace OpenTK.Graphics Delegates.glReferencePlaneSGIX((Double*)equation_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98798,14 +130162,28 @@ namespace OpenTK.Graphics public static unsafe void ReferencePlane(Double* equation) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReferencePlaneSGIX((Double*)equation); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFlushRaster", Version = "1.0", EntryPoint = "glFlushRasterSGIX")] public static void FlushRaster() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFlushRasterSGIX(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98813,6 +130191,10 @@ namespace OpenTK.Graphics public static void GetListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -98820,12 +130202,19 @@ namespace OpenTK.Graphics Delegates.glGetListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glGetListParameterfvSGIX")] public static void GetListParameter(Int32 list, OpenTK.Graphics.ListParameterName pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -98833,6 +130222,9 @@ namespace OpenTK.Graphics Delegates.glGetListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98840,6 +130232,10 @@ namespace OpenTK.Graphics public static void GetListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -98848,12 +130244,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glGetListParameterfvSGIX")] public static void GetListParameter(Int32 list, OpenTK.Graphics.ListParameterName pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -98862,6 +130265,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98869,7 +130275,14 @@ namespace OpenTK.Graphics public static unsafe void GetListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98877,7 +130290,14 @@ namespace OpenTK.Graphics public static unsafe void GetListParameter(Int32 list, OpenTK.Graphics.ListParameterName pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98885,6 +130305,10 @@ namespace OpenTK.Graphics public static void GetListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -98892,12 +130316,19 @@ namespace OpenTK.Graphics Delegates.glGetListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glGetListParameterivSGIX")] public static void GetListParameter(Int32 list, OpenTK.Graphics.ListParameterName pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -98905,6 +130336,9 @@ namespace OpenTK.Graphics Delegates.glGetListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98912,6 +130346,10 @@ namespace OpenTK.Graphics public static void GetListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -98920,12 +130358,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glGetListParameterivSGIX")] public static void GetListParameter(Int32 list, OpenTK.Graphics.ListParameterName pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -98934,6 +130379,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98941,7 +130389,14 @@ namespace OpenTK.Graphics public static unsafe void GetListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98949,7 +130404,14 @@ namespace OpenTK.Graphics public static unsafe void GetListParameter(Int32 list, OpenTK.Graphics.ListParameterName pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98957,7 +130419,14 @@ namespace OpenTK.Graphics public static void ListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListParameterfSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glListParameterfSGIX")] @@ -98972,6 +130441,10 @@ namespace OpenTK.Graphics public static void ListParameterv(UInt32 list, OpenTK.Graphics.ListParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -98979,12 +130452,19 @@ namespace OpenTK.Graphics Delegates.glListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glListParameterfvSGIX")] public static void ListParameterv(Int32 list, OpenTK.Graphics.ListParameterName pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -98992,6 +130472,9 @@ namespace OpenTK.Graphics Delegates.glListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -98999,6 +130482,10 @@ namespace OpenTK.Graphics public static void ListParameterv(UInt32 list, OpenTK.Graphics.ListParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99006,12 +130493,19 @@ namespace OpenTK.Graphics Delegates.glListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glListParameterfvSGIX")] public static void ListParameterv(Int32 list, OpenTK.Graphics.ListParameterName pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99019,6 +130513,9 @@ namespace OpenTK.Graphics Delegates.glListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99026,7 +130523,14 @@ namespace OpenTK.Graphics public static unsafe void ListParameterv(UInt32 list, OpenTK.Graphics.ListParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99034,7 +130538,14 @@ namespace OpenTK.Graphics public static unsafe void ListParameterv(Int32 list, OpenTK.Graphics.ListParameterName pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListParameterfvSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99042,7 +130553,14 @@ namespace OpenTK.Graphics public static void ListParameter(UInt32 list, OpenTK.Graphics.ListParameterName pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListParameteriSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glListParameteriSGIX")] @@ -99057,6 +130575,10 @@ namespace OpenTK.Graphics public static void ListParameterv(UInt32 list, OpenTK.Graphics.ListParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99064,12 +130586,19 @@ namespace OpenTK.Graphics Delegates.glListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glListParameterivSGIX")] public static void ListParameterv(Int32 list, OpenTK.Graphics.ListParameterName pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99077,6 +130606,9 @@ namespace OpenTK.Graphics Delegates.glListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99084,6 +130616,10 @@ namespace OpenTK.Graphics public static void ListParameterv(UInt32 list, OpenTK.Graphics.ListParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99091,12 +130627,19 @@ namespace OpenTK.Graphics Delegates.glListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixListPriority", Version = "1.0", EntryPoint = "glListParameterivSGIX")] public static void ListParameterv(Int32 list, OpenTK.Graphics.ListParameterName pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99104,6 +130647,9 @@ namespace OpenTK.Graphics Delegates.glListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99111,7 +130657,14 @@ namespace OpenTK.Graphics public static unsafe void ListParameterv(UInt32 list, OpenTK.Graphics.ListParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99119,27 +130672,52 @@ namespace OpenTK.Graphics public static unsafe void ListParameterv(Int32 list, OpenTK.Graphics.ListParameterName pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glListParameterivSGIX((UInt32)list, (OpenTK.Graphics.ListParameterName)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentColorMaterialSGIX")] public static void FragmentColorMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentColorMaterialSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)mode); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightfSGIX")] public static void FragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightfSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightfvSGIX")] public static void FragmentLightv(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99147,12 +130725,19 @@ namespace OpenTK.Graphics Delegates.glFragmentLightfvSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightfvSGIX")] public static void FragmentLightv(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99160,6 +130745,9 @@ namespace OpenTK.Graphics Delegates.glFragmentLightfvSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99167,20 +130755,38 @@ namespace OpenTK.Graphics public static unsafe void FragmentLightv(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightfvSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightiSGIX")] public static void FragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightiSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightivSGIX")] public static void FragmentLightv(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99188,12 +130794,19 @@ namespace OpenTK.Graphics Delegates.glFragmentLightivSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightivSGIX")] public static void FragmentLightv(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99201,6 +130814,9 @@ namespace OpenTK.Graphics Delegates.glFragmentLightivSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99208,20 +130824,38 @@ namespace OpenTK.Graphics public static unsafe void FragmentLightv(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightivSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightModelfSGIX")] public static void FragmentLightModel(OpenTK.Graphics.SgixFragmentLighting pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightModelfSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightModelfvSGIX")] public static void FragmentLightModelv(OpenTK.Graphics.SgixFragmentLighting pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99229,12 +130863,19 @@ namespace OpenTK.Graphics Delegates.glFragmentLightModelfvSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightModelfvSGIX")] public static void FragmentLightModelv(OpenTK.Graphics.SgixFragmentLighting pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99242,6 +130883,9 @@ namespace OpenTK.Graphics Delegates.glFragmentLightModelfvSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99249,20 +130893,38 @@ namespace OpenTK.Graphics public static unsafe void FragmentLightModelv(OpenTK.Graphics.SgixFragmentLighting pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightModelfvSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightModeliSGIX")] public static void FragmentLightModel(OpenTK.Graphics.SgixFragmentLighting pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightModeliSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightModelivSGIX")] public static void FragmentLightModelv(OpenTK.Graphics.SgixFragmentLighting pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99270,12 +130932,19 @@ namespace OpenTK.Graphics Delegates.glFragmentLightModelivSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentLightModelivSGIX")] public static void FragmentLightModelv(OpenTK.Graphics.SgixFragmentLighting pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99283,6 +130952,9 @@ namespace OpenTK.Graphics Delegates.glFragmentLightModelivSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99290,20 +130962,38 @@ namespace OpenTK.Graphics public static unsafe void FragmentLightModelv(OpenTK.Graphics.SgixFragmentLighting pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentLightModelivSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentMaterialfSGIX")] public static void FragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentMaterialfSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentMaterialfvSGIX")] public static void FragmentMaterialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99311,12 +131001,19 @@ namespace OpenTK.Graphics Delegates.glFragmentMaterialfvSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentMaterialfvSGIX")] public static void FragmentMaterialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99324,6 +131021,9 @@ namespace OpenTK.Graphics Delegates.glFragmentMaterialfvSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99331,20 +131031,38 @@ namespace OpenTK.Graphics public static unsafe void FragmentMaterialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentMaterialfvSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentMaterialiSGIX")] public static void FragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentMaterialiSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentMaterialivSGIX")] public static void FragmentMaterialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99352,12 +131070,19 @@ namespace OpenTK.Graphics Delegates.glFragmentMaterialivSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glFragmentMaterialivSGIX")] public static void FragmentMaterialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99365,6 +131090,9 @@ namespace OpenTK.Graphics Delegates.glFragmentMaterialivSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99372,13 +131100,24 @@ namespace OpenTK.Graphics public static unsafe void FragmentMaterialv(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFragmentMaterialivSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentLightfvSGIX")] public static void GetFragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99386,12 +131125,19 @@ namespace OpenTK.Graphics Delegates.glGetFragmentLightfvSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentLightfvSGIX")] public static void GetFragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99400,6 +131146,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99407,13 +131156,24 @@ namespace OpenTK.Graphics public static unsafe void GetFragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFragmentLightfvSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentLightivSGIX")] public static void GetFragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99421,12 +131181,19 @@ namespace OpenTK.Graphics Delegates.glGetFragmentLightivSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentLightivSGIX")] public static void GetFragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99435,6 +131202,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99442,13 +131212,24 @@ namespace OpenTK.Graphics public static unsafe void GetFragmentLight(OpenTK.Graphics.SgixFragmentLighting light, OpenTK.Graphics.SgixFragmentLighting pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFragmentLightivSGIX((OpenTK.Graphics.SgixFragmentLighting)light, (OpenTK.Graphics.SgixFragmentLighting)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentMaterialfvSGIX")] public static void GetFragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99456,12 +131237,19 @@ namespace OpenTK.Graphics Delegates.glGetFragmentMaterialfvSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentMaterialfvSGIX")] public static void GetFragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99470,6 +131258,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99477,13 +131268,24 @@ namespace OpenTK.Graphics public static unsafe void GetFragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFragmentMaterialfvSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentMaterialivSGIX")] public static void GetFragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99491,12 +131293,19 @@ namespace OpenTK.Graphics Delegates.glGetFragmentMaterialivSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glGetFragmentMaterialivSGIX")] public static void GetFragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99505,6 +131314,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99512,14 +131324,28 @@ namespace OpenTK.Graphics public static unsafe void GetFragmentMaterial(OpenTK.Graphics.MaterialFace face, OpenTK.Graphics.MaterialParameter pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetFragmentMaterialivSGIX((OpenTK.Graphics.MaterialFace)face, (OpenTK.Graphics.MaterialParameter)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixFragmentLighting", Version = "1.0", EntryPoint = "glLightEnviSGIX")] public static void LightEnv(OpenTK.Graphics.SgixFragmentLighting pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glLightEnviSGIX((OpenTK.Graphics.SgixFragmentLighting)pname, (Int32)param); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99527,7 +131353,14 @@ namespace OpenTK.Graphics public static void AsyncMarker(UInt32 marker) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAsyncMarkerSGIX((UInt32)marker); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glAsyncMarkerSGIX")] @@ -99542,6 +131375,10 @@ namespace OpenTK.Graphics public static Int32 FinishAsync([Out] UInt32[] markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* markerp_ptr = markerp) @@ -99549,12 +131386,19 @@ namespace OpenTK.Graphics return Delegates.glFinishAsyncSGIX((UInt32*)markerp_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glFinishAsyncSGIX")] public static Int32 FinishAsync([Out] Int32[] markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* markerp_ptr = markerp) @@ -99562,6 +131406,9 @@ namespace OpenTK.Graphics return Delegates.glFinishAsyncSGIX((UInt32*)markerp_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99569,6 +131416,10 @@ namespace OpenTK.Graphics public static Int32 FinishAsync([Out] out UInt32 markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* markerp_ptr = &markerp) @@ -99578,12 +131429,19 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glFinishAsyncSGIX")] public static Int32 FinishAsync([Out] out Int32 markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* markerp_ptr = &markerp) @@ -99593,6 +131451,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99600,7 +131461,14 @@ namespace OpenTK.Graphics public static unsafe Int32 FinishAsync([Out] UInt32* markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glFinishAsyncSGIX((UInt32*)markerp); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99608,7 +131476,14 @@ namespace OpenTK.Graphics public static unsafe Int32 FinishAsync([Out] Int32* markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glFinishAsyncSGIX((UInt32*)markerp); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99616,6 +131491,10 @@ namespace OpenTK.Graphics public static Int32 PollAsync([Out] UInt32[] markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* markerp_ptr = markerp) @@ -99623,12 +131502,19 @@ namespace OpenTK.Graphics return Delegates.glPollAsyncSGIX((UInt32*)markerp_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glPollAsyncSGIX")] public static Int32 PollAsync([Out] Int32[] markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* markerp_ptr = markerp) @@ -99636,6 +131522,9 @@ namespace OpenTK.Graphics return Delegates.glPollAsyncSGIX((UInt32*)markerp_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99643,6 +131532,10 @@ namespace OpenTK.Graphics public static Int32 PollAsync([Out] out UInt32 markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* markerp_ptr = &markerp) @@ -99652,12 +131545,19 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glPollAsyncSGIX")] public static Int32 PollAsync([Out] out Int32 markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* markerp_ptr = &markerp) @@ -99667,6 +131567,9 @@ namespace OpenTK.Graphics return retval; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99674,7 +131577,14 @@ namespace OpenTK.Graphics public static unsafe Int32 PollAsync([Out] UInt32* markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glPollAsyncSGIX((UInt32*)markerp); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99682,14 +131592,28 @@ namespace OpenTK.Graphics public static unsafe Int32 PollAsync([Out] Int32* markerp) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glPollAsyncSGIX((UInt32*)markerp); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glGenAsyncMarkersSGIX")] public static Int32 GenAsyncMarkers(Int32 range) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGenAsyncMarkersSGIX((Int32)range); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99697,7 +131621,14 @@ namespace OpenTK.Graphics public static void DeleteAsyncMarkers(UInt32 marker, Int32 range) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteAsyncMarkersSGIX((UInt32)marker, (Int32)range); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glDeleteAsyncMarkersSGIX")] @@ -99712,7 +131643,14 @@ namespace OpenTK.Graphics public static bool IsAsyncMarker(UInt32 marker) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsAsyncMarkerSGIX((UInt32)marker); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixAsync", Version = "1.0", EntryPoint = "glIsAsyncMarkerSGIX")] @@ -99726,10 +131664,14 @@ namespace OpenTK.Graphics public static void IglooInterface(OpenTK.Graphics.All pname, IntPtr @params) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params); + #endif + Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params); + #if DEBUG } + #endif } [AutoGenerated(Category = "SgixIglooInterface", Version = "1.0", EntryPoint = "glIglooInterfaceSGIX")] @@ -99737,18 +131679,22 @@ namespace OpenTK.Graphics void IglooInterface(OpenTK.Graphics.All pname, [In, Out] ref T1 @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixIglooInterface", Version = "1.0", EntryPoint = "glIglooInterfaceSGIX")] @@ -99756,18 +131702,22 @@ namespace OpenTK.Graphics void IglooInterface(OpenTK.Graphics.All pname, [In, Out] T1[] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixIglooInterface", Version = "1.0", EntryPoint = "glIglooInterfaceSGIX")] @@ -99775,18 +131725,22 @@ namespace OpenTK.Graphics void IglooInterface(OpenTK.Graphics.All pname, [In, Out] T1[,] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SgixIglooInterface", Version = "1.0", EntryPoint = "glIglooInterfaceSGIX")] @@ -99794,18 +131748,22 @@ namespace OpenTK.Graphics void IglooInterface(OpenTK.Graphics.All pname, [In, Out] T1[,,] @params) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glIglooInterfaceSGIX((OpenTK.Graphics.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif } } @@ -99816,20 +131774,38 @@ namespace OpenTK.Graphics public static void ImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glImageTransformParameteriHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glImageTransformParameterfHP")] public static void ImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glImageTransformParameterfHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glImageTransformParameterivHP")] public static void ImageTransformParameterv(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99837,12 +131813,19 @@ namespace OpenTK.Graphics Delegates.glImageTransformParameterivHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glImageTransformParameterivHP")] public static void ImageTransformParameterv(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, ref Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99850,6 +131833,9 @@ namespace OpenTK.Graphics Delegates.glImageTransformParameterivHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99857,13 +131843,24 @@ namespace OpenTK.Graphics public static unsafe void ImageTransformParameterv(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glImageTransformParameterivHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glImageTransformParameterfvHP")] public static void ImageTransformParameterv(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99871,12 +131868,19 @@ namespace OpenTK.Graphics Delegates.glImageTransformParameterfvHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glImageTransformParameterfvHP")] public static void ImageTransformParameterv(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, ref Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99884,6 +131888,9 @@ namespace OpenTK.Graphics Delegates.glImageTransformParameterfvHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99891,13 +131898,24 @@ namespace OpenTK.Graphics public static unsafe void ImageTransformParameterv(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glImageTransformParameterfvHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glGetImageTransformParameterivHP")] public static void GetImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -99905,12 +131923,19 @@ namespace OpenTK.Graphics Delegates.glGetImageTransformParameterivHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glGetImageTransformParameterivHP")] public static void GetImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -99919,6 +131944,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99926,13 +131954,24 @@ namespace OpenTK.Graphics public static unsafe void GetImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetImageTransformParameterivHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glGetImageTransformParameterfvHP")] public static void GetImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -99940,12 +131979,19 @@ namespace OpenTK.Graphics Delegates.glGetImageTransformParameterfvHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "HpImageTransform", Version = "1.1", EntryPoint = "glGetImageTransformParameterfvHP")] public static void GetImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -99954,6 +132000,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -99961,7 +132010,14 @@ namespace OpenTK.Graphics public static unsafe void GetImageTransformParameter(OpenTK.Graphics.HpImageTransform target, OpenTK.Graphics.HpImageTransform pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetImageTransformParameterfvHP((OpenTK.Graphics.HpImageTransform)target, (OpenTK.Graphics.HpImageTransform)pname, (Single*)@params); + #if DEBUG + } + #endif } } @@ -99986,7 +132042,14 @@ namespace OpenTK.Graphics public static void Hint(OpenTK.Graphics.PgiMiscHints target, Int32 mode) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glHintPGI((OpenTK.Graphics.PgiMiscHints)target, (Int32)mode); + #if DEBUG + } + #endif } } @@ -100021,10 +132084,14 @@ namespace OpenTK.Graphics public static void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer); + #endif + Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -100056,18 +132123,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100099,18 +132170,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100142,18 +132217,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100185,18 +132264,22 @@ namespace OpenTK.Graphics void VertexPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100222,10 +132305,14 @@ namespace OpenTK.Graphics public static void NormalPointer(OpenTK.Graphics.NormalPointerType type, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer); + #endif + Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -100252,18 +132339,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100290,18 +132381,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100328,18 +132423,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100366,18 +132465,22 @@ namespace OpenTK.Graphics void NormalPointer(OpenTK.Graphics.NormalPointerType type, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointervINTEL((OpenTK.Graphics.NormalPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100408,10 +132511,14 @@ namespace OpenTK.Graphics public static void ColorPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer); + #endif + Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -100443,18 +132550,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100486,18 +132597,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100529,18 +132644,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100572,18 +132691,22 @@ namespace OpenTK.Graphics void ColorPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100614,10 +132737,14 @@ namespace OpenTK.Graphics public static void TexCoordPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer); + #endif + Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer); + #if DEBUG } + #endif } @@ -100649,18 +132776,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100692,18 +132823,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100735,18 +132870,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } @@ -100778,18 +132917,22 @@ namespace OpenTK.Graphics void TexCoordPointer(Int32 size, OpenTK.Graphics.VertexPointerType type, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointervINTEL((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } } @@ -100800,7 +132943,14 @@ namespace OpenTK.Graphics public static void FinishTexture() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFinishTextureSUNX(); + #if DEBUG + } + #endif } } @@ -100812,42 +132962,84 @@ namespace OpenTK.Graphics public static void GlobalAlphaFactor(SByte factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactorbSUN((SByte)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunGlobalAlpha", Version = "1.1", EntryPoint = "glGlobalAlphaFactorsSUN")] public static void GlobalAlphaFactors(Int16 factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactorsSUN((Int16)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunGlobalAlpha", Version = "1.1", EntryPoint = "glGlobalAlphaFactoriSUN")] public static void GlobalAlphaFactor(Int32 factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactoriSUN((Int32)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunGlobalAlpha", Version = "1.1", EntryPoint = "glGlobalAlphaFactorfSUN")] public static void GlobalAlphaFactor(Single factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactorfSUN((Single)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunGlobalAlpha", Version = "1.1", EntryPoint = "glGlobalAlphaFactordSUN")] public static void GlobalAlphaFactor(Double factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactordSUN((Double)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunGlobalAlpha", Version = "1.1", EntryPoint = "glGlobalAlphaFactorubSUN")] public static void GlobalAlphaFactor(Byte factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactorubSUN((Byte)factor); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100855,7 +133047,14 @@ namespace OpenTK.Graphics public static void GlobalAlphaFactor(UInt16 factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactorusSUN((UInt16)factor); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunGlobalAlpha", Version = "1.1", EntryPoint = "glGlobalAlphaFactorusSUN")] @@ -100870,7 +133069,14 @@ namespace OpenTK.Graphics public static void GlobalAlphaFactor(UInt32 factor) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGlobalAlphaFactoruiSUN((UInt32)factor); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100878,7 +133084,14 @@ namespace OpenTK.Graphics public static void ReplacementCode(UInt32 code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiSUN((UInt32)code); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeuiSUN")] @@ -100893,7 +133106,14 @@ namespace OpenTK.Graphics public static void ReplacementCode(UInt16 code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeusSUN((UInt16)code); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeusSUN")] @@ -100907,7 +133127,14 @@ namespace OpenTK.Graphics public static void ReplacementCode(Byte code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeubSUN((Byte)code); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100915,6 +133142,10 @@ namespace OpenTK.Graphics public static void ReplacementCodev(UInt32[] code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* code_ptr = code) @@ -100922,12 +133153,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuivSUN((UInt32*)code_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeuivSUN")] public static void ReplacementCodev(Int32[] code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* code_ptr = code) @@ -100935,6 +133173,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuivSUN((UInt32*)code_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100942,6 +133183,10 @@ namespace OpenTK.Graphics public static void ReplacementCodev(ref UInt32 code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* code_ptr = &code) @@ -100949,12 +133194,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuivSUN((UInt32*)code_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeuivSUN")] public static void ReplacementCodev(ref Int32 code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* code_ptr = &code) @@ -100962,6 +133214,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuivSUN((UInt32*)code_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100969,7 +133224,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodev(UInt32* code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuivSUN((UInt32*)code); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100977,7 +133239,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodev(Int32* code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuivSUN((UInt32*)code); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -100985,6 +133254,10 @@ namespace OpenTK.Graphics public static void ReplacementCodev(UInt16[] code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* code_ptr = code) @@ -100992,12 +133265,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeusvSUN((UInt16*)code_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeusvSUN")] public static void ReplacementCodev(Int16[] code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* code_ptr = code) @@ -101005,6 +133285,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeusvSUN((UInt16*)code_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101012,6 +133295,10 @@ namespace OpenTK.Graphics public static void ReplacementCodev(ref UInt16 code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt16* code_ptr = &code) @@ -101019,12 +133306,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeusvSUN((UInt16*)code_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeusvSUN")] public static void ReplacementCodev(ref Int16 code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* code_ptr = &code) @@ -101032,6 +133326,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeusvSUN((UInt16*)code_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101039,7 +133336,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodev(UInt16* code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeusvSUN((UInt16*)code); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101047,13 +133351,24 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodev(Int16* code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeusvSUN((UInt16*)code); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeubvSUN")] public static void ReplacementCodev(Byte[] code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* code_ptr = code) @@ -101061,12 +133376,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeubvSUN((Byte*)code_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeubvSUN")] public static void ReplacementCodev(ref Byte code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* code_ptr = &code) @@ -101074,6 +133396,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeubvSUN((Byte*)code_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101081,17 +133406,28 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodev(Byte* code) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeubvSUN((Byte*)code); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodePointerSUN")] public static void ReplacementCodePointer(OpenTK.Graphics.SunTriangleList type, Int32 stride, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer); + #endif + Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodePointerSUN")] @@ -101099,18 +133435,22 @@ namespace OpenTK.Graphics void ReplacementCodePointer(OpenTK.Graphics.SunTriangleList type, Int32 stride, [In, Out] ref T2 pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodePointerSUN")] @@ -101118,18 +133458,22 @@ namespace OpenTK.Graphics void ReplacementCodePointer(OpenTK.Graphics.SunTriangleList type, Int32 stride, [In, Out] T2[] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodePointerSUN")] @@ -101137,18 +133481,22 @@ namespace OpenTK.Graphics void ReplacementCodePointer(OpenTK.Graphics.SunTriangleList type, Int32 stride, [In, Out] T2[,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodePointerSUN")] @@ -101156,31 +133504,46 @@ namespace OpenTK.Graphics void ReplacementCodePointer(OpenTK.Graphics.SunTriangleList type, Int32 stride, [In, Out] T2[,,] pointer) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glReplacementCodePointerSUN((OpenTK.Graphics.SunTriangleList)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4ubVertex2fSUN")] public static void Color4ubVertex2(Byte r, Byte g, Byte b, Byte a, Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ubVertex2fSUN((Byte)r, (Byte)g, (Byte)b, (Byte)a, (Single)x, (Single)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4ubVertex2fvSUN")] public static void Color4ubVertex2(Byte[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* c_ptr = c) @@ -101189,12 +133552,19 @@ namespace OpenTK.Graphics Delegates.glColor4ubVertex2fvSUN((Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4ubVertex2fvSUN")] public static void Color4ubVertex2(ref Byte c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* c_ptr = &c) @@ -101203,6 +133573,9 @@ namespace OpenTK.Graphics Delegates.glColor4ubVertex2fvSUN((Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101210,20 +133583,38 @@ namespace OpenTK.Graphics public static unsafe void Color4ubVertex2(Byte* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ubVertex2fvSUN((Byte*)c, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4ubVertex3fSUN")] public static void Color4ubVertex3(Byte r, Byte g, Byte b, Byte a, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ubVertex3fSUN((Byte)r, (Byte)g, (Byte)b, (Byte)a, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4ubVertex3fvSUN")] public static void Color4ubVertex3(Byte[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* c_ptr = c) @@ -101232,12 +133623,19 @@ namespace OpenTK.Graphics Delegates.glColor4ubVertex3fvSUN((Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4ubVertex3fvSUN")] public static void Color4ubVertex3(ref Byte c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* c_ptr = &c) @@ -101246,6 +133644,9 @@ namespace OpenTK.Graphics Delegates.glColor4ubVertex3fvSUN((Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101253,20 +133654,38 @@ namespace OpenTK.Graphics public static unsafe void Color4ubVertex3(Byte* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4ubVertex3fvSUN((Byte*)c, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor3fVertex3fSUN")] public static void Color3fVertex3(Single r, Single g, Single b, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3fVertex3fSUN((Single)r, (Single)g, (Single)b, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor3fVertex3fvSUN")] public static void Color3fVertex3(Single[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* c_ptr = c) @@ -101275,12 +133694,19 @@ namespace OpenTK.Graphics Delegates.glColor3fVertex3fvSUN((Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor3fVertex3fvSUN")] public static void Color3fVertex3(ref Single c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* c_ptr = &c) @@ -101289,6 +133715,9 @@ namespace OpenTK.Graphics Delegates.glColor3fVertex3fvSUN((Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101296,20 +133725,38 @@ namespace OpenTK.Graphics public static unsafe void Color3fVertex3(Single* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor3fVertex3fvSUN((Single*)c, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glNormal3fVertex3fSUN")] public static void Normal3fVertex3(Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3fVertex3fSUN((Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glNormal3fVertex3fvSUN")] public static void Normal3fVertex3(Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* n_ptr = n) @@ -101318,12 +133765,19 @@ namespace OpenTK.Graphics Delegates.glNormal3fVertex3fvSUN((Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glNormal3fVertex3fvSUN")] public static void Normal3fVertex3(ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* n_ptr = &n) @@ -101332,6 +133786,9 @@ namespace OpenTK.Graphics Delegates.glNormal3fVertex3fvSUN((Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101339,20 +133796,38 @@ namespace OpenTK.Graphics public static unsafe void Normal3fVertex3(Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormal3fVertex3fvSUN((Single*)n, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4fNormal3fVertex3fSUN")] public static void Color4fNormal3fVertex3(Single r, Single g, Single b, Single a, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4fNormal3fVertex3fSUN((Single)r, (Single)g, (Single)b, (Single)a, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4fNormal3fVertex3fvSUN")] public static void Color4fNormal3fVertex3(Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* c_ptr = c) @@ -101362,12 +133837,19 @@ namespace OpenTK.Graphics Delegates.glColor4fNormal3fVertex3fvSUN((Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glColor4fNormal3fVertex3fvSUN")] public static void Color4fNormal3fVertex3(ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* c_ptr = &c) @@ -101377,6 +133859,9 @@ namespace OpenTK.Graphics Delegates.glColor4fNormal3fVertex3fvSUN((Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101384,20 +133869,38 @@ namespace OpenTK.Graphics public static unsafe void Color4fNormal3fVertex3(Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColor4fNormal3fVertex3fvSUN((Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fVertex3fSUN")] public static void TexCoord2fVertex3(Single s, Single t, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fVertex3fSUN((Single)s, (Single)t, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fVertex3fvSUN")] public static void TexCoord2fVertex3(Single[] tc, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101406,12 +133909,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fVertex3fvSUN((Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fVertex3fvSUN")] public static void TexCoord2fVertex3(ref Single tc, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101420,6 +133930,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fVertex3fvSUN((Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101427,20 +133940,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2fVertex3(Single* tc, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fVertex3fvSUN((Single*)tc, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord4fVertex4fSUN")] public static void TexCoord4fVertex4(Single s, Single t, Single p, Single q, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4fVertex4fSUN((Single)s, (Single)t, (Single)p, (Single)q, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord4fVertex4fvSUN")] public static void TexCoord4fVertex4(Single[] tc, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101449,12 +133980,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord4fVertex4fvSUN((Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord4fVertex4fvSUN")] public static void TexCoord4fVertex4(ref Single tc, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101463,6 +134001,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4fVertex4fvSUN((Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101470,20 +134011,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4fVertex4(Single* tc, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4fVertex4fvSUN((Single*)tc, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor4ubVertex3fSUN")] public static void TexCoord2fColor4ubVertex3(Single s, Single t, Byte r, Byte g, Byte b, Byte a, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fColor4ubVertex3fSUN((Single)s, (Single)t, (Byte)r, (Byte)g, (Byte)b, (Byte)a, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor4ubVertex3fvSUN")] public static void TexCoord2fColor4ubVertex3(Single[] tc, Byte[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101493,12 +134052,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fColor4ubVertex3fvSUN((Single*)tc_ptr, (Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor4ubVertex3fvSUN")] public static void TexCoord2fColor4ubVertex3(ref Single tc, ref Byte c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101508,6 +134074,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fColor4ubVertex3fvSUN((Single*)tc_ptr, (Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101515,20 +134084,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2fColor4ubVertex3(Single* tc, Byte* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fColor4ubVertex3fvSUN((Single*)tc, (Byte*)c, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor3fVertex3fSUN")] public static void TexCoord2fColor3fVertex3(Single s, Single t, Single r, Single g, Single b, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fColor3fVertex3fSUN((Single)s, (Single)t, (Single)r, (Single)g, (Single)b, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor3fVertex3fvSUN")] public static void TexCoord2fColor3fVertex3(Single[] tc, Single[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101538,12 +134125,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fColor3fVertex3fvSUN((Single*)tc_ptr, (Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor3fVertex3fvSUN")] public static void TexCoord2fColor3fVertex3(ref Single tc, ref Single c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101553,6 +134147,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fColor3fVertex3fvSUN((Single*)tc_ptr, (Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101560,20 +134157,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2fColor3fVertex3(Single* tc, Single* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fColor3fVertex3fvSUN((Single*)tc, (Single*)c, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fNormal3fVertex3fSUN")] public static void TexCoord2fNormal3fVertex3(Single s, Single t, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fNormal3fVertex3fSUN((Single)s, (Single)t, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fNormal3fVertex3fvSUN")] public static void TexCoord2fNormal3fVertex3(Single[] tc, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101583,12 +134198,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fNormal3fVertex3fvSUN((Single*)tc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fNormal3fVertex3fvSUN")] public static void TexCoord2fNormal3fVertex3(ref Single tc, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101598,6 +134220,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fNormal3fVertex3fvSUN((Single*)tc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101605,20 +134230,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2fNormal3fVertex3(Single* tc, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fNormal3fVertex3fvSUN((Single*)tc, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor4fNormal3fVertex3fSUN")] public static void TexCoord2fColor4fNormal3fVertex3(Single s, Single t, Single r, Single g, Single b, Single a, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fColor4fNormal3fVertex3fSUN((Single)s, (Single)t, (Single)r, (Single)g, (Single)b, (Single)a, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor4fNormal3fVertex3fvSUN")] public static void TexCoord2fColor4fNormal3fVertex3(Single[] tc, Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101629,12 +134272,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fColor4fNormal3fVertex3fvSUN((Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord2fColor4fNormal3fVertex3fvSUN")] public static void TexCoord2fColor4fNormal3fVertex3(ref Single tc, ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101645,6 +134295,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord2fColor4fNormal3fVertex3fvSUN((Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101652,20 +134305,38 @@ namespace OpenTK.Graphics public static unsafe void TexCoord2fColor4fNormal3fVertex3(Single* tc, Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord2fColor4fNormal3fVertex3fvSUN((Single*)tc, (Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord4fColor4fNormal3fVertex4fSUN")] public static void TexCoord4fColor4fNormal3fVertex4(Single s, Single t, Single p, Single q, Single r, Single g, Single b, Single a, Single nx, Single ny, Single nz, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4fColor4fNormal3fVertex4fSUN((Single)s, (Single)t, (Single)p, (Single)q, (Single)r, (Single)g, (Single)b, (Single)a, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord4fColor4fNormal3fVertex4fvSUN")] public static void TexCoord4fColor4fNormal3fVertex4(Single[] tc, Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = tc) @@ -101676,12 +134347,19 @@ namespace OpenTK.Graphics Delegates.glTexCoord4fColor4fNormal3fVertex4fvSUN((Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glTexCoord4fColor4fNormal3fVertex4fvSUN")] public static void TexCoord4fColor4fNormal3fVertex4(ref Single tc, ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* tc_ptr = &tc) @@ -101692,6 +134370,9 @@ namespace OpenTK.Graphics Delegates.glTexCoord4fColor4fNormal3fVertex4fvSUN((Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101699,7 +134380,14 @@ namespace OpenTK.Graphics public static unsafe void TexCoord4fColor4fNormal3fVertex4(Single* tc, Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexCoord4fColor4fNormal3fVertex4fvSUN((Single*)tc, (Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101707,7 +134395,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiVertex3(UInt32 rc, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiVertex3fSUN((UInt32)rc, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiVertex3fSUN")] @@ -101722,6 +134417,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiVertex3v(UInt32[] rc, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -101730,12 +134429,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiVertex3fvSUN((UInt32*)rc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiVertex3fvSUN")] public static void ReplacementCodeuiVertex3v(Int32[] rc, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -101744,6 +134450,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiVertex3fvSUN((UInt32*)rc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101751,6 +134460,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiVertex3v(ref UInt32 rc, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -101759,12 +134472,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiVertex3fvSUN((UInt32*)rc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiVertex3fvSUN")] public static void ReplacementCodeuiVertex3v(ref Int32 rc, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -101773,6 +134493,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiVertex3fvSUN((UInt32*)rc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101780,7 +134503,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiVertex3v(UInt32* rc, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiVertex3fvSUN((UInt32*)rc, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101788,7 +134518,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiVertex3v(Int32* rc, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiVertex3fvSUN((UInt32*)rc, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101796,7 +134533,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor4ubVertex3(UInt32 rc, Byte r, Byte g, Byte b, Byte a, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor4ubVertex3fSUN((UInt32)rc, (Byte)r, (Byte)g, (Byte)b, (Byte)a, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor4ubVertex3fSUN")] @@ -101811,6 +134555,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor4ubVertex3v(UInt32[] rc, Byte[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -101820,12 +134568,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4ubVertex3fvSUN((UInt32*)rc_ptr, (Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor4ubVertex3fvSUN")] public static void ReplacementCodeuiColor4ubVertex3v(Int32[] rc, Byte[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -101835,6 +134590,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4ubVertex3fvSUN((UInt32*)rc_ptr, (Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101842,6 +134600,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor4ubVertex3v(ref UInt32 rc, ref Byte c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -101851,12 +134613,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4ubVertex3fvSUN((UInt32*)rc_ptr, (Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor4ubVertex3fvSUN")] public static void ReplacementCodeuiColor4ubVertex3v(ref Int32 rc, ref Byte c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -101866,6 +134635,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4ubVertex3fvSUN((UInt32*)rc_ptr, (Byte*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101873,7 +134645,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiColor4ubVertex3v(UInt32* rc, Byte* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor4ubVertex3fvSUN((UInt32*)rc, (Byte*)c, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101881,7 +134660,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiColor4ubVertex3v(Int32* rc, Byte* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor4ubVertex3fvSUN((UInt32*)rc, (Byte*)c, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101889,7 +134675,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor3fVertex3(UInt32 rc, Single r, Single g, Single b, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor3fVertex3fSUN((UInt32)rc, (Single)r, (Single)g, (Single)b, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor3fVertex3fSUN")] @@ -101904,6 +134697,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor3fVertex3v(UInt32[] rc, Single[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -101913,12 +134710,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor3fVertex3fvSUN")] public static void ReplacementCodeuiColor3fVertex3v(Int32[] rc, Single[] c, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -101928,6 +134732,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101935,6 +134742,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor3fVertex3v(ref UInt32 rc, ref Single c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -101944,12 +134755,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor3fVertex3fvSUN")] public static void ReplacementCodeuiColor3fVertex3v(ref Int32 rc, ref Single c, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -101959,6 +134777,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101966,7 +134787,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiColor3fVertex3v(UInt32* rc, Single* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor3fVertex3fvSUN((UInt32*)rc, (Single*)c, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101974,7 +134802,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiColor3fVertex3v(Int32* rc, Single* c, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor3fVertex3fvSUN((UInt32*)rc, (Single*)c, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -101982,7 +134817,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiNormal3fVertex3(UInt32 rc, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiNormal3fVertex3fSUN((UInt32)rc, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiNormal3fVertex3fSUN")] @@ -101997,6 +134839,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiNormal3fVertex3v(UInt32[] rc, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -102006,12 +134852,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiNormal3fVertex3fvSUN")] public static void ReplacementCodeuiNormal3fVertex3v(Int32[] rc, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -102021,6 +134874,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102028,6 +134884,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiNormal3fVertex3v(ref UInt32 rc, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -102037,12 +134897,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiNormal3fVertex3fvSUN")] public static void ReplacementCodeuiNormal3fVertex3v(ref Int32 rc, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -102052,6 +134919,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102059,7 +134929,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiNormal3fVertex3v(UInt32* rc, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiNormal3fVertex3fvSUN((UInt32*)rc, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102067,7 +134944,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiNormal3fVertex3v(Int32* rc, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiNormal3fVertex3fvSUN((UInt32*)rc, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102075,7 +134959,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor4fNormal3fVertex3(UInt32 rc, Single r, Single g, Single b, Single a, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor4fNormal3fVertex3fSUN((UInt32)rc, (Single)r, (Single)g, (Single)b, (Single)a, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor4fNormal3fVertex3fSUN")] @@ -102090,6 +134981,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor4fNormal3fVertex3v(UInt32[] rc, Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -102100,12 +134995,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor4fNormal3fVertex3fvSUN")] public static void ReplacementCodeuiColor4fNormal3fVertex3v(Int32[] rc, Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -102116,6 +135018,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102123,6 +135028,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiColor4fNormal3fVertex3v(ref UInt32 rc, ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -102133,12 +135042,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiColor4fNormal3fVertex3fvSUN")] public static void ReplacementCodeuiColor4fNormal3fVertex3v(ref Int32 rc, ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -102149,6 +135065,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102156,7 +135075,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiColor4fNormal3fVertex3v(UInt32* rc, Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor4fNormal3fVertex3fvSUN((UInt32*)rc, (Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102164,7 +135090,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiColor4fNormal3fVertex3v(Int32* rc, Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiColor4fNormal3fVertex3fvSUN((UInt32*)rc, (Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102172,7 +135105,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fVertex3(UInt32 rc, Single s, Single t, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fVertex3fSUN((UInt32)rc, (Single)s, (Single)t, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fVertex3fSUN")] @@ -102187,6 +135127,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fVertex3v(UInt32[] rc, Single[] tc, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -102196,12 +135140,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fVertex3fvSUN")] public static void ReplacementCodeuiTexCoord2fVertex3v(Int32[] rc, Single[] tc, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -102211,6 +135162,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102218,6 +135172,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fVertex3v(ref UInt32 rc, ref Single tc, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -102227,12 +135185,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fVertex3fvSUN")] public static void ReplacementCodeuiTexCoord2fVertex3v(ref Int32 rc, ref Single tc, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -102242,6 +135207,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102249,7 +135217,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiTexCoord2fVertex3v(UInt32* rc, Single* tc, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fVertex3fvSUN((UInt32*)rc, (Single*)tc, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102257,7 +135232,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiTexCoord2fVertex3v(Int32* rc, Single* tc, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fVertex3fvSUN((UInt32*)rc, (Single*)tc, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102265,7 +135247,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fNormal3fVertex3(UInt32 rc, Single s, Single t, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN((UInt32)rc, (Single)s, (Single)t, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN")] @@ -102280,6 +135269,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fNormal3fVertex3v(UInt32[] rc, Single[] tc, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -102290,12 +135283,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN")] public static void ReplacementCodeuiTexCoord2fNormal3fVertex3v(Int32[] rc, Single[] tc, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -102306,6 +135306,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102313,6 +135316,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fNormal3fVertex3v(ref UInt32 rc, ref Single tc, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -102323,12 +135330,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN")] public static void ReplacementCodeuiTexCoord2fNormal3fVertex3v(ref Int32 rc, ref Single tc, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -102339,6 +135353,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102346,7 +135363,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiTexCoord2fNormal3fVertex3v(UInt32* rc, Single* tc, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN((UInt32*)rc, (Single*)tc, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102354,7 +135378,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiTexCoord2fNormal3fVertex3v(Int32* rc, Single* tc, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN((UInt32*)rc, (Single*)tc, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102362,7 +135393,14 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3(UInt32 rc, Single s, Single t, Single r, Single g, Single b, Single a, Single nx, Single ny, Single nz, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN((UInt32)rc, (Single)s, (Single)t, (Single)r, (Single)g, (Single)b, (Single)a, (Single)nx, (Single)ny, (Single)nz, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN")] @@ -102377,6 +135415,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3v(UInt32[] rc, Single[] tc, Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = rc) @@ -102388,12 +135430,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN")] public static void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3v(Int32[] rc, Single[] tc, Single[] c, Single[] n, Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = rc) @@ -102405,6 +135454,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102412,6 +135464,10 @@ namespace OpenTK.Graphics public static void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3v(ref UInt32 rc, ref Single tc, ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* rc_ptr = &rc) @@ -102423,12 +135479,19 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunVertex", Version = "1.1", EntryPoint = "glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN")] public static void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3v(ref Int32 rc, ref Single tc, ref Single c, ref Single n, ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* rc_ptr = &rc) @@ -102440,6 +135503,9 @@ namespace OpenTK.Graphics Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN((UInt32*)rc_ptr, (Single*)tc_ptr, (Single*)c_ptr, (Single*)n_ptr, (Single*)v_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102447,7 +135513,14 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3v(UInt32* rc, Single* tc, Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN((UInt32*)rc, (Single*)tc, (Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -102455,14 +135528,28 @@ namespace OpenTK.Graphics public static unsafe void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3v(Int32* rc, Single* tc, Single* c, Single* n, Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN((UInt32*)rc, (Single*)tc, (Single*)c, (Single*)n, (Single*)v); + #if DEBUG + } + #endif } [AutoGenerated(Category = "SunMeshArray", Version = "1.1", EntryPoint = "glDrawMeshArraysSUN")] public static void DrawMeshArrays(OpenTK.Graphics.BeginMode mode, Int32 first, Int32 count, Int32 width) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawMeshArraysSUN((OpenTK.Graphics.BeginMode)mode, (Int32)first, (Int32)count, (Int32)width); + #if DEBUG + } + #endif } } @@ -102497,7 +135584,14 @@ namespace OpenTK.Graphics public static void BlendFuncSeparate(OpenTK.Graphics.All sfactorRGB, OpenTK.Graphics.All dfactorRGB, OpenTK.Graphics.All sfactorAlpha, OpenTK.Graphics.All dfactorAlpha) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBlendFuncSeparateINGR((OpenTK.Graphics.All)sfactorRGB, (OpenTK.Graphics.All)dfactorRGB, (OpenTK.Graphics.All)sfactorAlpha, (OpenTK.Graphics.All)dfactorAlpha); + #if DEBUG + } + #endif } } @@ -102508,7 +135602,14 @@ namespace OpenTK.Graphics public static void ResizeBuffers() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glResizeBuffersMESA(); + #if DEBUG + } + #endif } @@ -102524,7 +135625,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2dMESA((Double)x, (Double)y); + #if DEBUG + } + #endif } @@ -102540,6 +135648,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -102547,6 +135659,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2dvMESA((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102562,6 +135677,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -102569,6 +135688,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2dvMESA((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102585,7 +135707,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2dvMESA((Double*)v); + #if DEBUG + } + #endif } @@ -102601,7 +135730,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2fMESA((Single)x, (Single)y); + #if DEBUG + } + #endif } @@ -102617,6 +135753,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -102624,6 +135764,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2fvMESA((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102639,6 +135782,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -102646,6 +135793,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2fvMESA((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102662,7 +135812,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2fvMESA((Single*)v); + #if DEBUG + } + #endif } @@ -102678,7 +135835,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2iMESA((Int32)x, (Int32)y); + #if DEBUG + } + #endif } @@ -102694,6 +135858,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -102701,6 +135869,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2ivMESA((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102716,6 +135887,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -102723,6 +135898,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2ivMESA((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102739,7 +135917,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2ivMESA((Int32*)v); + #if DEBUG + } + #endif } @@ -102755,7 +135940,14 @@ namespace OpenTK.Graphics public static void WindowPos2(Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2sMESA((Int16)x, (Int16)y); + #if DEBUG + } + #endif } @@ -102771,6 +135963,10 @@ namespace OpenTK.Graphics public static void WindowPos2(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -102778,6 +135974,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2svMESA((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102793,6 +135992,10 @@ namespace OpenTK.Graphics public static void WindowPos2(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -102800,6 +136003,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos2svMESA((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102816,7 +136022,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos2(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos2svMESA((Int16*)v); + #if DEBUG + } + #endif } @@ -102832,7 +136045,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3dMESA((Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } @@ -102848,6 +136068,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -102855,6 +136079,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3dvMESA((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102870,6 +136097,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -102877,6 +136108,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3dvMESA((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102893,7 +136127,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3dvMESA((Double*)v); + #if DEBUG + } + #endif } @@ -102909,7 +136150,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3fMESA((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } @@ -102925,6 +136173,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -102932,6 +136184,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3fvMESA((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102947,6 +136202,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -102954,6 +136213,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3fvMESA((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -102970,7 +136232,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3fvMESA((Single*)v); + #if DEBUG + } + #endif } @@ -102986,7 +136255,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3iMESA((Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } @@ -103002,6 +136278,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -103009,6 +136289,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3ivMESA((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103024,6 +136307,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -103031,6 +136318,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3ivMESA((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103047,7 +136337,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3ivMESA((Int32*)v); + #if DEBUG + } + #endif } @@ -103063,7 +136360,14 @@ namespace OpenTK.Graphics public static void WindowPos3(Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3sMESA((Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } @@ -103079,6 +136383,10 @@ namespace OpenTK.Graphics public static void WindowPos3(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -103086,6 +136394,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3svMESA((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103101,6 +136412,10 @@ namespace OpenTK.Graphics public static void WindowPos3(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -103108,6 +136423,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos3svMESA((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103124,7 +136442,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos3(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos3svMESA((Int16*)v); + #if DEBUG + } + #endif } @@ -103140,7 +136465,14 @@ namespace OpenTK.Graphics public static void WindowPos4(Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4dMESA((Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } @@ -103156,6 +136488,10 @@ namespace OpenTK.Graphics public static void WindowPos4(Double[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = v) @@ -103163,6 +136499,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4dvMESA((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103178,6 +136517,10 @@ namespace OpenTK.Graphics public static void WindowPos4(ref Double v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* v_ptr = &v) @@ -103185,6 +136528,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4dvMESA((Double*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103201,7 +136547,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos4(Double* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4dvMESA((Double*)v); + #if DEBUG + } + #endif } @@ -103217,7 +136570,14 @@ namespace OpenTK.Graphics public static void WindowPos4(Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4fMESA((Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } @@ -103233,6 +136593,10 @@ namespace OpenTK.Graphics public static void WindowPos4(Single[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = v) @@ -103240,6 +136604,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4fvMESA((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103255,6 +136622,10 @@ namespace OpenTK.Graphics public static void WindowPos4(ref Single v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* v_ptr = &v) @@ -103262,6 +136633,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4fvMESA((Single*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103278,7 +136652,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos4(Single* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4fvMESA((Single*)v); + #if DEBUG + } + #endif } @@ -103294,7 +136675,14 @@ namespace OpenTK.Graphics public static void WindowPos4(Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4iMESA((Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } @@ -103310,6 +136698,10 @@ namespace OpenTK.Graphics public static void WindowPos4(Int32[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = v) @@ -103317,6 +136709,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4ivMESA((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103332,6 +136727,10 @@ namespace OpenTK.Graphics public static void WindowPos4(ref Int32 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* v_ptr = &v) @@ -103339,6 +136738,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4ivMESA((Int32*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103355,7 +136757,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos4(Int32* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4ivMESA((Int32*)v); + #if DEBUG + } + #endif } @@ -103371,7 +136780,14 @@ namespace OpenTK.Graphics public static void WindowPos4(Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4sMESA((Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } @@ -103387,6 +136803,10 @@ namespace OpenTK.Graphics public static void WindowPos4(Int16[] v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = v) @@ -103394,6 +136814,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4svMESA((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103409,6 +136832,10 @@ namespace OpenTK.Graphics public static void WindowPos4(ref Int16 v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* v_ptr = &v) @@ -103416,6 +136843,9 @@ namespace OpenTK.Graphics Delegates.glWindowPos4svMESA((Int16*)v_ptr); } } + #if DEBUG + } + #endif } @@ -103432,7 +136862,14 @@ namespace OpenTK.Graphics public static unsafe void WindowPos4(Int16* v) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glWindowPos4svMESA((Int16*)v); + #if DEBUG + } + #endif } } @@ -103443,6 +136880,10 @@ namespace OpenTK.Graphics public static void MultiModeDrawArrays(OpenTK.Graphics.BeginMode[] mode, Int32[] first, Int32[] count, Int32 primcount, Int32 modestride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = mode) @@ -103452,12 +136893,19 @@ namespace OpenTK.Graphics Delegates.glMultiModeDrawArraysIBM((OpenTK.Graphics.BeginMode*)mode_ptr, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount, (Int32)modestride); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawArraysIBM")] public static void MultiModeDrawArrays(ref OpenTK.Graphics.BeginMode mode, ref Int32 first, ref Int32 count, Int32 primcount, Int32 modestride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = &mode) @@ -103467,6 +136915,9 @@ namespace OpenTK.Graphics Delegates.glMultiModeDrawArraysIBM((OpenTK.Graphics.BeginMode*)mode_ptr, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount, (Int32)modestride); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103474,13 +136925,24 @@ namespace OpenTK.Graphics public static unsafe void MultiModeDrawArrays(OpenTK.Graphics.BeginMode* mode, Int32* first, Int32* count, Int32 primcount, Int32 modestride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiModeDrawArraysIBM((OpenTK.Graphics.BeginMode*)mode, (Int32*)first, (Int32*)count, (Int32)primcount, (Int32)modestride); + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] public static void MultiModeDrawElements(OpenTK.Graphics.BeginMode[] mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount, Int32 modestride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = mode) @@ -103489,6 +136951,9 @@ namespace OpenTK.Graphics Delegates.glMultiModeDrawElementsIBM((OpenTK.Graphics.BeginMode*)mode_ptr, (Int32*)count_ptr, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount, (Int32)modestride); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103496,6 +136961,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(OpenTK.Graphics.BeginMode[] mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = mode) @@ -103512,6 +136981,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103519,6 +136991,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(OpenTK.Graphics.BeginMode[] mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = mode) @@ -103535,6 +137011,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103542,6 +137021,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(OpenTK.Graphics.BeginMode[] mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = mode) @@ -103558,6 +137041,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103565,6 +137051,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(OpenTK.Graphics.BeginMode[] mode, Int32[] count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = mode) @@ -103581,12 +137071,19 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] public static void MultiModeDrawElements(ref OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount, Int32 modestride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = &mode) @@ -103595,6 +137092,9 @@ namespace OpenTK.Graphics Delegates.glMultiModeDrawElementsIBM((OpenTK.Graphics.BeginMode*)mode_ptr, (Int32*)count_ptr, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount, (Int32)modestride); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103602,6 +137102,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(ref OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = &mode) @@ -103618,6 +137122,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103625,6 +137132,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(ref OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = &mode) @@ -103641,6 +137152,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103648,6 +137162,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(ref OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = &mode) @@ -103664,6 +137182,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmMultimodeDrawArrays", Version = "1.1", EntryPoint = "glMultiModeDrawElementsIBM")] @@ -103671,6 +137192,10 @@ namespace OpenTK.Graphics void MultiModeDrawElements(ref OpenTK.Graphics.BeginMode mode, ref Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.BeginMode* mode_ptr = &mode) @@ -103687,6 +137212,9 @@ namespace OpenTK.Graphics } } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103694,7 +137222,14 @@ namespace OpenTK.Graphics public static unsafe void MultiModeDrawElements(OpenTK.Graphics.BeginMode* mode, Int32* count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount, Int32 modestride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiModeDrawElementsIBM((OpenTK.Graphics.BeginMode*)mode, (Int32*)count, (OpenTK.Graphics.DrawElementsType)type, (IntPtr)indices, (Int32)primcount, (Int32)modestride); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103703,6 +137238,10 @@ namespace OpenTK.Graphics unsafe void MultiModeDrawElements(OpenTK.Graphics.BeginMode* mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] ref T3 indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -103712,6 +137251,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103720,6 +137262,10 @@ namespace OpenTK.Graphics unsafe void MultiModeDrawElements(OpenTK.Graphics.BeginMode* mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -103729,6 +137275,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103737,6 +137286,10 @@ namespace OpenTK.Graphics unsafe void MultiModeDrawElements(OpenTK.Graphics.BeginMode* mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -103746,6 +137299,9 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103754,6 +137310,10 @@ namespace OpenTK.Graphics unsafe void MultiModeDrawElements(OpenTK.Graphics.BeginMode* mode, Int32* count, OpenTK.Graphics.DrawElementsType type, [In, Out] T3[,,] indices, Int32 primcount, Int32 modestride) where T3 : struct { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { @@ -103763,16 +137323,23 @@ namespace OpenTK.Graphics { indices_ptr.Free(); } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glColorPointerListIBM")] public static void ColorPointerList(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glColorPointerListIBM")] @@ -103780,18 +137347,22 @@ namespace OpenTK.Graphics void ColorPointerList(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] ref T3 pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glColorPointerListIBM")] @@ -103799,18 +137370,22 @@ namespace OpenTK.Graphics void ColorPointerList(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glColorPointerListIBM")] @@ -103818,18 +137393,22 @@ namespace OpenTK.Graphics void ColorPointerList(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glColorPointerListIBM")] @@ -103837,28 +137416,36 @@ namespace OpenTK.Graphics void ColorPointerList(Int32 size, OpenTK.Graphics.ColorPointerType type, Int32 stride, [In, Out] T3[,,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointerListIBM((Int32)size, (OpenTK.Graphics.ColorPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glSecondaryColorPointerListIBM")] public static void SecondaryColorPointerList(Int32 size, OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glSecondaryColorPointerListIBM")] @@ -103866,18 +137453,22 @@ namespace OpenTK.Graphics void SecondaryColorPointerList(Int32 size, OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] ref T3 pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glSecondaryColorPointerListIBM")] @@ -103885,18 +137476,22 @@ namespace OpenTK.Graphics void SecondaryColorPointerList(Int32 size, OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] T3[] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glSecondaryColorPointerListIBM")] @@ -103904,18 +137499,22 @@ namespace OpenTK.Graphics void SecondaryColorPointerList(Int32 size, OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] T3[,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glSecondaryColorPointerListIBM")] @@ -103923,24 +137522,32 @@ namespace OpenTK.Graphics void SecondaryColorPointerList(Int32 size, OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] T3[,,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glSecondaryColorPointerListIBM((Int32)size, (OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glEdgeFlagPointerListIBM")] public static void EdgeFlagPointerList(Int32 stride, bool[] pointer, Int32 ptrstride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* pointer_ptr = pointer) @@ -103948,12 +137555,19 @@ namespace OpenTK.Graphics Delegates.glEdgeFlagPointerListIBM((Int32)stride, (bool*)pointer_ptr, (Int32)ptrstride); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glEdgeFlagPointerListIBM")] public static void EdgeFlagPointerList(Int32 stride, ref bool pointer, Int32 ptrstride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (bool* pointer_ptr = &pointer) @@ -103961,6 +137575,9 @@ namespace OpenTK.Graphics Delegates.glEdgeFlagPointerListIBM((Int32)stride, (bool*)pointer_ptr, (Int32)ptrstride); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -103968,17 +137585,28 @@ namespace OpenTK.Graphics public static unsafe void EdgeFlagPointerList(Int32 stride, bool* pointer, Int32 ptrstride) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEdgeFlagPointerListIBM((Int32)stride, (bool*)pointer, (Int32)ptrstride); + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glFogCoordPointerListIBM")] public static void FogCoordPointerList(OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glFogCoordPointerListIBM")] @@ -103986,18 +137614,22 @@ namespace OpenTK.Graphics void FogCoordPointerList(OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] ref T2 pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glFogCoordPointerListIBM")] @@ -104005,18 +137637,22 @@ namespace OpenTK.Graphics void FogCoordPointerList(OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] T2[] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glFogCoordPointerListIBM")] @@ -104024,18 +137660,22 @@ namespace OpenTK.Graphics void FogCoordPointerList(OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] T2[,] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glFogCoordPointerListIBM")] @@ -104043,28 +137683,36 @@ namespace OpenTK.Graphics void FogCoordPointerList(OpenTK.Graphics.IbmVertexArrayLists type, Int32 stride, [In, Out] T2[,,] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFogCoordPointerListIBM((OpenTK.Graphics.IbmVertexArrayLists)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glIndexPointerListIBM")] public static void IndexPointerList(OpenTK.Graphics.IndexPointerType type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glIndexPointerListIBM")] @@ -104072,18 +137720,22 @@ namespace OpenTK.Graphics void IndexPointerList(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] ref T2 pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glIndexPointerListIBM")] @@ -104091,18 +137743,22 @@ namespace OpenTK.Graphics void IndexPointerList(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] T2[] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glIndexPointerListIBM")] @@ -104110,18 +137766,22 @@ namespace OpenTK.Graphics void IndexPointerList(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] T2[,] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glIndexPointerListIBM")] @@ -104129,28 +137789,36 @@ namespace OpenTK.Graphics void IndexPointerList(OpenTK.Graphics.IndexPointerType type, Int32 stride, [In, Out] T2[,,] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glIndexPointerListIBM((OpenTK.Graphics.IndexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glNormalPointerListIBM")] public static void NormalPointerList(OpenTK.Graphics.NormalPointerType type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glNormalPointerListIBM")] @@ -104158,18 +137826,22 @@ namespace OpenTK.Graphics void NormalPointerList(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] ref T2 pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glNormalPointerListIBM")] @@ -104177,18 +137849,22 @@ namespace OpenTK.Graphics void NormalPointerList(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] T2[] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glNormalPointerListIBM")] @@ -104196,18 +137872,22 @@ namespace OpenTK.Graphics void NormalPointerList(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] T2[,] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glNormalPointerListIBM")] @@ -104215,28 +137895,36 @@ namespace OpenTK.Graphics void NormalPointerList(OpenTK.Graphics.NormalPointerType type, Int32 stride, [In, Out] T2[,,] pointer, Int32 ptrstride) where T2 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointerListIBM((OpenTK.Graphics.NormalPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glTexCoordPointerListIBM")] public static void TexCoordPointerList(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glTexCoordPointerListIBM")] @@ -104244,18 +137932,22 @@ namespace OpenTK.Graphics void TexCoordPointerList(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] ref T3 pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glTexCoordPointerListIBM")] @@ -104263,18 +137955,22 @@ namespace OpenTK.Graphics void TexCoordPointerList(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T3[] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glTexCoordPointerListIBM")] @@ -104282,18 +137978,22 @@ namespace OpenTK.Graphics void TexCoordPointerList(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T3[,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glTexCoordPointerListIBM")] @@ -104301,28 +138001,36 @@ namespace OpenTK.Graphics void TexCoordPointerList(Int32 size, OpenTK.Graphics.TexCoordPointerType type, Int32 stride, [In, Out] T3[,,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointerListIBM((Int32)size, (OpenTK.Graphics.TexCoordPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glVertexPointerListIBM")] public static void VertexPointerList(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, IntPtr pointer, Int32 ptrstride) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #endif + Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer, (Int32)ptrstride); + #if DEBUG } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glVertexPointerListIBM")] @@ -104330,18 +138038,22 @@ namespace OpenTK.Graphics void VertexPointerList(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] ref T3 pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glVertexPointerListIBM")] @@ -104349,18 +138061,22 @@ namespace OpenTK.Graphics void VertexPointerList(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] T3[] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glVertexPointerListIBM")] @@ -104368,18 +138084,22 @@ namespace OpenTK.Graphics void VertexPointerList(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] T3[,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "IbmVertexArrayLists", Version = "1.1", EntryPoint = "glVertexPointerListIBM")] @@ -104387,18 +138107,22 @@ namespace OpenTK.Graphics void VertexPointerList(Int32 size, OpenTK.Graphics.VertexPointerType type, Int32 stride, [In, Out] T3[,,] pointer, Int32 ptrstride) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointerListIBM((Int32)size, (OpenTK.Graphics.VertexPointerType)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (Int32)ptrstride); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } } @@ -104410,7 +138134,14 @@ namespace OpenTK.Graphics public static void TbufferMask(UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTbufferMask3DFX((UInt32)mask); + #if DEBUG + } + #endif } [AutoGenerated(Category = "3DfxTbuffer", Version = "1.2", EntryPoint = "glTbufferMask3DFX")] @@ -104428,6 +138159,10 @@ namespace OpenTK.Graphics public static void TexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, Int32[] param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* param_ptr = param) @@ -104435,12 +138170,19 @@ namespace OpenTK.Graphics Delegates.glTexBumpParameterivATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Int32*)param_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glTexBumpParameterivATI")] public static void TexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, ref Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* param_ptr = ¶m) @@ -104448,6 +138190,9 @@ namespace OpenTK.Graphics Delegates.glTexBumpParameterivATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Int32*)param_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104455,13 +138200,24 @@ namespace OpenTK.Graphics public static unsafe void TexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, Int32* param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexBumpParameterivATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Int32*)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glTexBumpParameterfvATI")] public static void TexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, Single[] param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* param_ptr = param) @@ -104469,12 +138225,19 @@ namespace OpenTK.Graphics Delegates.glTexBumpParameterfvATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Single*)param_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glTexBumpParameterfvATI")] public static void TexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, ref Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* param_ptr = ¶m) @@ -104482,6 +138245,9 @@ namespace OpenTK.Graphics Delegates.glTexBumpParameterfvATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Single*)param_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104489,13 +138255,24 @@ namespace OpenTK.Graphics public static unsafe void TexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, Single* param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glTexBumpParameterfvATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Single*)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glGetTexBumpParameterivATI")] public static void GetTexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, [Out] Int32[] param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* param_ptr = param) @@ -104503,12 +138280,19 @@ namespace OpenTK.Graphics Delegates.glGetTexBumpParameterivATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Int32*)param_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glGetTexBumpParameterivATI")] public static void GetTexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, [Out] out Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* param_ptr = ¶m) @@ -104517,6 +138301,9 @@ namespace OpenTK.Graphics param = *param_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104524,13 +138311,24 @@ namespace OpenTK.Graphics public static unsafe void GetTexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, [Out] Int32* param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexBumpParameterivATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Int32*)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glGetTexBumpParameterfvATI")] public static void GetTexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, [Out] Single[] param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* param_ptr = param) @@ -104538,12 +138336,19 @@ namespace OpenTK.Graphics Delegates.glGetTexBumpParameterfvATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Single*)param_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiEnvmapBumpmap", Version = "1.2", EntryPoint = "glGetTexBumpParameterfvATI")] public static void GetTexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, [Out] out Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* param_ptr = ¶m) @@ -104552,6 +138357,9 @@ namespace OpenTK.Graphics param = *param_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104559,7 +138367,14 @@ namespace OpenTK.Graphics public static unsafe void GetTexBumpParameter(OpenTK.Graphics.AtiEnvmapBumpmap pname, [Out] Single* param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetTexBumpParameterfvATI((OpenTK.Graphics.AtiEnvmapBumpmap)pname, (Single*)param); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104567,7 +138382,14 @@ namespace OpenTK.Graphics public static Int32 GenFragmentShaders(UInt32 range) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glGenFragmentShadersATI((UInt32)range); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glGenFragmentShadersATI")] @@ -104582,7 +138404,14 @@ namespace OpenTK.Graphics public static void BindFragmentShader(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindFragmentShaderATI((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glBindFragmentShaderATI")] @@ -104597,7 +138426,14 @@ namespace OpenTK.Graphics public static void DeleteFragmentShader(UInt32 id) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFragmentShaderATI((UInt32)id); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glDeleteFragmentShaderATI")] @@ -104611,14 +138447,28 @@ namespace OpenTK.Graphics public static void BeginFragmentShader() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBeginFragmentShaderATI(); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glEndFragmentShaderATI")] public static void EndFragmentShader() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glEndFragmentShaderATI(); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104626,7 +138476,14 @@ namespace OpenTK.Graphics public static void PassTexCoor(UInt32 dst, UInt32 coord, OpenTK.Graphics.AtiFragmentShader swizzle) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPassTexCoordATI((UInt32)dst, (UInt32)coord, (OpenTK.Graphics.AtiFragmentShader)swizzle); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glPassTexCoordATI")] @@ -104641,7 +138498,14 @@ namespace OpenTK.Graphics public static void SampleMap(UInt32 dst, UInt32 interp, OpenTK.Graphics.AtiFragmentShader swizzle) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSampleMapATI((UInt32)dst, (UInt32)interp, (OpenTK.Graphics.AtiFragmentShader)swizzle); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glSampleMapATI")] @@ -104656,7 +138520,14 @@ namespace OpenTK.Graphics public static void ColorFragmentOp1(OpenTK.Graphics.AtiFragmentShader op, UInt32 dst, UInt32 dstMask, UInt32 dstMod, UInt32 arg1, UInt32 arg1Rep, UInt32 arg1Mod) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorFragmentOp1ATI((OpenTK.Graphics.AtiFragmentShader)op, (UInt32)dst, (UInt32)dstMask, (UInt32)dstMod, (UInt32)arg1, (UInt32)arg1Rep, (UInt32)arg1Mod); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glColorFragmentOp1ATI")] @@ -104671,7 +138542,14 @@ namespace OpenTK.Graphics public static void ColorFragmentOp2(OpenTK.Graphics.AtiFragmentShader op, UInt32 dst, UInt32 dstMask, UInt32 dstMod, UInt32 arg1, UInt32 arg1Rep, UInt32 arg1Mod, UInt32 arg2, UInt32 arg2Rep, UInt32 arg2Mod) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorFragmentOp2ATI((OpenTK.Graphics.AtiFragmentShader)op, (UInt32)dst, (UInt32)dstMask, (UInt32)dstMod, (UInt32)arg1, (UInt32)arg1Rep, (UInt32)arg1Mod, (UInt32)arg2, (UInt32)arg2Rep, (UInt32)arg2Mod); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glColorFragmentOp2ATI")] @@ -104686,7 +138564,14 @@ namespace OpenTK.Graphics public static void ColorFragmentOp3(OpenTK.Graphics.AtiFragmentShader op, UInt32 dst, UInt32 dstMask, UInt32 dstMod, UInt32 arg1, UInt32 arg1Rep, UInt32 arg1Mod, UInt32 arg2, UInt32 arg2Rep, UInt32 arg2Mod, UInt32 arg3, UInt32 arg3Rep, UInt32 arg3Mod) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glColorFragmentOp3ATI((OpenTK.Graphics.AtiFragmentShader)op, (UInt32)dst, (UInt32)dstMask, (UInt32)dstMod, (UInt32)arg1, (UInt32)arg1Rep, (UInt32)arg1Mod, (UInt32)arg2, (UInt32)arg2Rep, (UInt32)arg2Mod, (UInt32)arg3, (UInt32)arg3Rep, (UInt32)arg3Mod); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glColorFragmentOp3ATI")] @@ -104701,7 +138586,14 @@ namespace OpenTK.Graphics public static void AlphaFragmentOp1(OpenTK.Graphics.AtiFragmentShader op, UInt32 dst, UInt32 dstMod, UInt32 arg1, UInt32 arg1Rep, UInt32 arg1Mod) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAlphaFragmentOp1ATI((OpenTK.Graphics.AtiFragmentShader)op, (UInt32)dst, (UInt32)dstMod, (UInt32)arg1, (UInt32)arg1Rep, (UInt32)arg1Mod); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glAlphaFragmentOp1ATI")] @@ -104716,7 +138608,14 @@ namespace OpenTK.Graphics public static void AlphaFragmentOp2(OpenTK.Graphics.AtiFragmentShader op, UInt32 dst, UInt32 dstMod, UInt32 arg1, UInt32 arg1Rep, UInt32 arg1Mod, UInt32 arg2, UInt32 arg2Rep, UInt32 arg2Mod) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAlphaFragmentOp2ATI((OpenTK.Graphics.AtiFragmentShader)op, (UInt32)dst, (UInt32)dstMod, (UInt32)arg1, (UInt32)arg1Rep, (UInt32)arg1Mod, (UInt32)arg2, (UInt32)arg2Rep, (UInt32)arg2Mod); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glAlphaFragmentOp2ATI")] @@ -104731,7 +138630,14 @@ namespace OpenTK.Graphics public static void AlphaFragmentOp3(OpenTK.Graphics.AtiFragmentShader op, UInt32 dst, UInt32 dstMod, UInt32 arg1, UInt32 arg1Rep, UInt32 arg1Mod, UInt32 arg2, UInt32 arg2Rep, UInt32 arg2Mod, UInt32 arg3, UInt32 arg3Rep, UInt32 arg3Mod) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glAlphaFragmentOp3ATI((OpenTK.Graphics.AtiFragmentShader)op, (UInt32)dst, (UInt32)dstMod, (UInt32)arg1, (UInt32)arg1Rep, (UInt32)arg1Mod, (UInt32)arg2, (UInt32)arg2Rep, (UInt32)arg2Mod, (UInt32)arg3, (UInt32)arg3Rep, (UInt32)arg3Mod); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glAlphaFragmentOp3ATI")] @@ -104746,6 +138652,10 @@ namespace OpenTK.Graphics public static void SetFragmentShaderConstant(UInt32 dst, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -104753,12 +138663,19 @@ namespace OpenTK.Graphics Delegates.glSetFragmentShaderConstantATI((UInt32)dst, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glSetFragmentShaderConstantATI")] public static void SetFragmentShaderConstant(Int32 dst, Single[] value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = value) @@ -104766,6 +138683,9 @@ namespace OpenTK.Graphics Delegates.glSetFragmentShaderConstantATI((UInt32)dst, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104773,6 +138693,10 @@ namespace OpenTK.Graphics public static void SetFragmentShaderConstant(UInt32 dst, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -104780,12 +138704,19 @@ namespace OpenTK.Graphics Delegates.glSetFragmentShaderConstantATI((UInt32)dst, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glSetFragmentShaderConstantATI")] public static void SetFragmentShaderConstant(Int32 dst, ref Single value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* value_ptr = &value) @@ -104793,6 +138724,9 @@ namespace OpenTK.Graphics Delegates.glSetFragmentShaderConstantATI((UInt32)dst, (Single*)value_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104800,7 +138734,14 @@ namespace OpenTK.Graphics public static unsafe void SetFragmentShaderConstant(UInt32 dst, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSetFragmentShaderConstantATI((UInt32)dst, (Single*)value); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104808,31 +138749,56 @@ namespace OpenTK.Graphics public static unsafe void SetFragmentShaderConstant(Int32 dst, Single* value) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSetFragmentShaderConstantATI((UInt32)dst, (Single*)value); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiPnTriangles", Version = "1.2", EntryPoint = "glPNTrianglesiATI")] public static void PNTriangles(OpenTK.Graphics.AtiPnTriangles pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPNTrianglesiATI((OpenTK.Graphics.AtiPnTriangles)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiPnTriangles", Version = "1.2", EntryPoint = "glPNTrianglesfATI")] public static void PNTriangles(OpenTK.Graphics.AtiPnTriangles pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glPNTrianglesfATI((OpenTK.Graphics.AtiPnTriangles)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glNewObjectBufferATI")] public static Int32 NewObjectBuffer(Int32 size, IntPtr pointer, OpenTK.Graphics.AtiVertexArrayObject usage) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer, (OpenTK.Graphics.AtiVertexArrayObject)usage); + #endif + return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer, (OpenTK.Graphics.AtiVertexArrayObject)usage); + #if DEBUG } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glNewObjectBufferATI")] @@ -104840,18 +138806,22 @@ namespace OpenTK.Graphics Int32 NewObjectBuffer(Int32 size, [In, Out] ref T1 pointer, OpenTK.Graphics.AtiVertexArrayObject usage) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glNewObjectBufferATI")] @@ -104859,18 +138829,22 @@ namespace OpenTK.Graphics Int32 NewObjectBuffer(Int32 size, [In, Out] T1[] pointer, OpenTK.Graphics.AtiVertexArrayObject usage) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glNewObjectBufferATI")] @@ -104878,18 +138852,22 @@ namespace OpenTK.Graphics Int32 NewObjectBuffer(Int32 size, [In, Out] T1[,] pointer, OpenTK.Graphics.AtiVertexArrayObject usage) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glNewObjectBufferATI")] @@ -104897,18 +138875,22 @@ namespace OpenTK.Graphics Int32 NewObjectBuffer(Int32 size, [In, Out] T1[,,] pointer, OpenTK.Graphics.AtiVertexArrayObject usage) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + return Delegates.glNewObjectBufferATI((Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)usage); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104916,7 +138898,14 @@ namespace OpenTK.Graphics public static bool IsObjectBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsObjectBufferATI((UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glIsObjectBufferATI")] @@ -104931,20 +138920,28 @@ namespace OpenTK.Graphics public static void UpdateObjectBuffer(UInt32 buffer, UInt32 offset, Int32 size, IntPtr pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer, (OpenTK.Graphics.AtiVertexArrayObject)preserve); + #endif + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer, (OpenTK.Graphics.AtiVertexArrayObject)preserve); + #if DEBUG } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glUpdateObjectBufferATI")] public static void UpdateObjectBuffer(Int32 buffer, Int32 offset, Int32 size, IntPtr pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer, (OpenTK.Graphics.AtiVertexArrayObject)preserve); + #endif + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer, (OpenTK.Graphics.AtiVertexArrayObject)preserve); + #if DEBUG } + #endif } [System.CLSCompliant(false)] @@ -104953,18 +138950,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(UInt32 buffer, UInt32 offset, Int32 size, [In, Out] ref T3 pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glUpdateObjectBufferATI")] @@ -104972,18 +138973,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(Int32 buffer, Int32 offset, Int32 size, [In, Out] ref T3 pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -104992,18 +138997,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(UInt32 buffer, UInt32 offset, Int32 size, [In, Out] T3[] pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glUpdateObjectBufferATI")] @@ -105011,18 +139020,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(Int32 buffer, Int32 offset, Int32 size, [In, Out] T3[] pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105031,18 +139044,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(UInt32 buffer, UInt32 offset, Int32 size, [In, Out] T3[,] pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glUpdateObjectBufferATI")] @@ -105050,18 +139067,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(Int32 buffer, Int32 offset, Int32 size, [In, Out] T3[,] pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105070,18 +139091,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(UInt32 buffer, UInt32 offset, Int32 size, [In, Out] T3[,,] pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glUpdateObjectBufferATI")] @@ -105089,18 +139114,22 @@ namespace OpenTK.Graphics void UpdateObjectBuffer(Int32 buffer, Int32 offset, Int32 size, [In, Out] T3[,,] pointer, OpenTK.Graphics.AtiVertexArrayObject preserve) where T3 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glUpdateObjectBufferATI((UInt32)buffer, (UInt32)offset, (Int32)size, (IntPtr)pointer_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.AtiVertexArrayObject)preserve); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105108,6 +139137,10 @@ namespace OpenTK.Graphics public static void GetObjectBuffer(UInt32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -105115,12 +139148,19 @@ namespace OpenTK.Graphics Delegates.glGetObjectBufferfvATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetObjectBufferfvATI")] public static void GetObjectBuffer(Int32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -105128,6 +139168,9 @@ namespace OpenTK.Graphics Delegates.glGetObjectBufferfvATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105135,6 +139178,10 @@ namespace OpenTK.Graphics public static void GetObjectBuffer(UInt32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -105143,12 +139190,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetObjectBufferfvATI")] public static void GetObjectBuffer(Int32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -105157,6 +139211,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105164,7 +139221,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectBuffer(UInt32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectBufferfvATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105172,7 +139236,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectBuffer(Int32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectBufferfvATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105180,6 +139251,10 @@ namespace OpenTK.Graphics public static void GetObjectBuffer(UInt32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -105187,12 +139262,19 @@ namespace OpenTK.Graphics Delegates.glGetObjectBufferivATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetObjectBufferivATI")] public static void GetObjectBuffer(Int32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -105200,6 +139282,9 @@ namespace OpenTK.Graphics Delegates.glGetObjectBufferivATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105207,6 +139292,10 @@ namespace OpenTK.Graphics public static void GetObjectBuffer(UInt32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -105215,12 +139304,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetObjectBufferivATI")] public static void GetObjectBuffer(Int32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -105229,6 +139325,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105236,7 +139335,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectBuffer(UInt32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectBufferivATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105244,7 +139350,14 @@ namespace OpenTK.Graphics public static unsafe void GetObjectBuffer(Int32 buffer, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetObjectBufferivATI((UInt32)buffer, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105252,7 +139365,14 @@ namespace OpenTK.Graphics public static void FreeObjectBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFreeObjectBufferATI((UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glFreeObjectBufferATI")] @@ -105267,7 +139387,14 @@ namespace OpenTK.Graphics public static void ArrayObject(OpenTK.Graphics.EnableCap array, Int32 size, OpenTK.Graphics.AtiVertexArrayObject type, Int32 stride, UInt32 buffer, UInt32 offset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glArrayObjectATI((OpenTK.Graphics.EnableCap)array, (Int32)size, (OpenTK.Graphics.AtiVertexArrayObject)type, (Int32)stride, (UInt32)buffer, (UInt32)offset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glArrayObjectATI")] @@ -105281,6 +139408,10 @@ namespace OpenTK.Graphics public static void GetArrayObject(OpenTK.Graphics.EnableCap array, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -105288,12 +139419,19 @@ namespace OpenTK.Graphics Delegates.glGetArrayObjectfvATI((OpenTK.Graphics.EnableCap)array, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetArrayObjectfvATI")] public static void GetArrayObject(OpenTK.Graphics.EnableCap array, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -105302,6 +139440,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105309,13 +139450,24 @@ namespace OpenTK.Graphics public static unsafe void GetArrayObject(OpenTK.Graphics.EnableCap array, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetArrayObjectfvATI((OpenTK.Graphics.EnableCap)array, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetArrayObjectivATI")] public static void GetArrayObject(OpenTK.Graphics.EnableCap array, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -105323,12 +139475,19 @@ namespace OpenTK.Graphics Delegates.glGetArrayObjectivATI((OpenTK.Graphics.EnableCap)array, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetArrayObjectivATI")] public static void GetArrayObject(OpenTK.Graphics.EnableCap array, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -105337,6 +139496,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105344,7 +139506,14 @@ namespace OpenTK.Graphics public static unsafe void GetArrayObject(OpenTK.Graphics.EnableCap array, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetArrayObjectivATI((OpenTK.Graphics.EnableCap)array, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105352,7 +139521,14 @@ namespace OpenTK.Graphics public static void VariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject type, Int32 stride, UInt32 buffer, UInt32 offset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVariantArrayObjectATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)type, (Int32)stride, (UInt32)buffer, (UInt32)offset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glVariantArrayObjectATI")] @@ -105367,6 +139543,10 @@ namespace OpenTK.Graphics public static void GetVariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -105374,12 +139554,19 @@ namespace OpenTK.Graphics Delegates.glGetVariantArrayObjectfvATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetVariantArrayObjectfvATI")] public static void GetVariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -105387,6 +139574,9 @@ namespace OpenTK.Graphics Delegates.glGetVariantArrayObjectfvATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105394,6 +139584,10 @@ namespace OpenTK.Graphics public static void GetVariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -105402,12 +139596,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetVariantArrayObjectfvATI")] public static void GetVariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -105416,6 +139617,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105423,7 +139627,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantArrayObjectfvATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105431,7 +139642,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantArrayObjectfvATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105439,6 +139657,10 @@ namespace OpenTK.Graphics public static void GetVariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -105446,12 +139668,19 @@ namespace OpenTK.Graphics Delegates.glGetVariantArrayObjectivATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetVariantArrayObjectivATI")] public static void GetVariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -105459,6 +139688,9 @@ namespace OpenTK.Graphics Delegates.glGetVariantArrayObjectivATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105466,6 +139698,10 @@ namespace OpenTK.Graphics public static void GetVariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -105474,12 +139710,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexArrayObject", Version = "1.2", EntryPoint = "glGetVariantArrayObjectivATI")] public static void GetVariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -105488,6 +139731,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105495,7 +139741,14 @@ namespace OpenTK.Graphics public static unsafe void GetVariantArrayObject(UInt32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantArrayObjectivATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105503,20 +139756,38 @@ namespace OpenTK.Graphics public static unsafe void GetVariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVariantArrayObjectivATI((UInt32)id, (OpenTK.Graphics.AtiVertexArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1sATI")] public static void VertexStream1(OpenTK.Graphics.AtiVertexStreams stream, Int16 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1sATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1svATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Int16[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = coords) @@ -105524,12 +139795,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream1svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1svATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, ref Int16 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = &coords) @@ -105537,6 +139815,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream1svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105544,20 +139825,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Int16* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1iATI")] public static void VertexStream1(OpenTK.Graphics.AtiVertexStreams stream, Int32 x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1iATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1ivATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Int32[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = coords) @@ -105565,12 +139864,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream1ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1ivATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, ref Int32 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = &coords) @@ -105578,6 +139884,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream1ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105585,20 +139894,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Int32* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1fATI")] public static void VertexStream1(OpenTK.Graphics.AtiVertexStreams stream, Single x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1fATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1fvATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Single[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = coords) @@ -105606,12 +139933,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream1fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1fvATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, ref Single coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = &coords) @@ -105619,6 +139953,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream1fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105626,20 +139963,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Single* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1dATI")] public static void VertexStream1(OpenTK.Graphics.AtiVertexStreams stream, Double x) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1dATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double)x); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1dvATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Double[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = coords) @@ -105647,12 +140002,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream1dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream1dvATI")] public static void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, ref Double coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = &coords) @@ -105660,6 +140022,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream1dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105667,20 +140032,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream1v(OpenTK.Graphics.AtiVertexStreams stream, Double* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream1dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2sATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Int16 x, Int16 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2sATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16)x, (Int16)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2svATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Int16[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = coords) @@ -105688,12 +140071,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream2svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2svATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, ref Int16 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = &coords) @@ -105701,6 +140091,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream2svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105708,20 +140101,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Int16* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2iATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Int32 x, Int32 y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2iATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32)x, (Int32)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2ivATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Int32[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = coords) @@ -105729,12 +140140,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream2ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2ivATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, ref Int32 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = &coords) @@ -105742,6 +140160,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream2ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105749,20 +140170,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Int32* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2fATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Single x, Single y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2fATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single)x, (Single)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2fvATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Single[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = coords) @@ -105770,12 +140209,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream2fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2fvATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, ref Single coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = &coords) @@ -105783,6 +140229,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream2fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105790,20 +140239,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Single* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2dATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Double x, Double y) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2dATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double)x, (Double)y); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2dvATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Double[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = coords) @@ -105811,12 +140278,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream2dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream2dvATI")] public static void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, ref Double coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = &coords) @@ -105824,6 +140298,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream2dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105831,20 +140308,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream2(OpenTK.Graphics.AtiVertexStreams stream, Double* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream2dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3sATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Int16 x, Int16 y, Int16 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3sATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16)x, (Int16)y, (Int16)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3svATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Int16[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = coords) @@ -105852,12 +140347,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream3svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3svATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Int16 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = &coords) @@ -105865,6 +140367,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream3svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105872,20 +140377,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Int16* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3iATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Int32 x, Int32 y, Int32 z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3iATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3ivATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Int32[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = coords) @@ -105893,12 +140416,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream3ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3ivATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Int32 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = &coords) @@ -105906,6 +140436,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream3ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105913,20 +140446,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Int32* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3fATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Single x, Single y, Single z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3fATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3fvATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Single[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = coords) @@ -105934,12 +140485,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream3fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3fvATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Single coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = &coords) @@ -105947,6 +140505,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream3fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105954,20 +140515,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Single* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3dATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Double x, Double y, Double z) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3dATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double)x, (Double)y, (Double)z); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3dvATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Double[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = coords) @@ -105975,12 +140554,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream3dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream3dvATI")] public static void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Double coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = &coords) @@ -105988,6 +140574,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream3dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -105995,20 +140584,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream3(OpenTK.Graphics.AtiVertexStreams stream, Double* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream3dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4sATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Int16 x, Int16 y, Int16 z, Int16 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4sATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16)x, (Int16)y, (Int16)z, (Int16)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4svATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Int16[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = coords) @@ -106016,12 +140623,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream4svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4svATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, ref Int16 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = &coords) @@ -106029,6 +140643,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream4svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106036,20 +140653,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Int16* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4iATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Int32 x, Int32 y, Int32 z, Int32 w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4iATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4ivATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Int32[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = coords) @@ -106057,12 +140692,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream4ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4ivATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, ref Int32 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = &coords) @@ -106070,6 +140712,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream4ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106077,20 +140722,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Int32* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4fATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Single x, Single y, Single z, Single w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4fATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4fvATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Single[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = coords) @@ -106098,12 +140761,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream4fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4fvATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, ref Single coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = &coords) @@ -106111,6 +140781,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream4fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106118,20 +140791,38 @@ namespace OpenTK.Graphics public static unsafe void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Single* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4dATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Double x, Double y, Double z, Double w) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4dATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double)x, (Double)y, (Double)z, (Double)w); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4dvATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Double[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = coords) @@ -106139,12 +140830,19 @@ namespace OpenTK.Graphics Delegates.glVertexStream4dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexStream4dvATI")] public static void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, ref Double coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = &coords) @@ -106152,6 +140850,9 @@ namespace OpenTK.Graphics Delegates.glVertexStream4dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106159,7 +140860,14 @@ namespace OpenTK.Graphics public static unsafe void VertexStream4(OpenTK.Graphics.AtiVertexStreams stream, Double* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexStream4dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106167,7 +140875,14 @@ namespace OpenTK.Graphics public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, SByte nx, SByte ny, SByte nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3bATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte)nx, (SByte)ny, (SByte)nz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3bATI")] @@ -106182,6 +140897,10 @@ namespace OpenTK.Graphics public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, SByte[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* coords_ptr = coords) @@ -106189,12 +140908,19 @@ namespace OpenTK.Graphics Delegates.glNormalStream3bvATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3bvATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Byte[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* coords_ptr = coords) @@ -106202,6 +140928,9 @@ namespace OpenTK.Graphics Delegates.glNormalStream3bvATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106209,6 +140938,10 @@ namespace OpenTK.Graphics public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, ref SByte coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (SByte* coords_ptr = &coords) @@ -106216,12 +140949,19 @@ namespace OpenTK.Graphics Delegates.glNormalStream3bvATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3bvATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Byte coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Byte* coords_ptr = &coords) @@ -106229,6 +140969,9 @@ namespace OpenTK.Graphics Delegates.glNormalStream3bvATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106236,7 +140979,14 @@ namespace OpenTK.Graphics public static unsafe void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, SByte* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3bvATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte*)coords); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106244,20 +140994,38 @@ namespace OpenTK.Graphics public static unsafe void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Byte* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3bvATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3sATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Int16 nx, Int16 ny, Int16 nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3sATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16)nx, (Int16)ny, (Int16)nz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3svATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Int16[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = coords) @@ -106265,12 +141033,19 @@ namespace OpenTK.Graphics Delegates.glNormalStream3svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3svATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Int16 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int16* coords_ptr = &coords) @@ -106278,6 +141053,9 @@ namespace OpenTK.Graphics Delegates.glNormalStream3svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106285,20 +141063,38 @@ namespace OpenTK.Graphics public static unsafe void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Int16* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3svATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int16*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3iATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Int32 nx, Int32 ny, Int32 nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3iATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32)nx, (Int32)ny, (Int32)nz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3ivATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Int32[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = coords) @@ -106306,12 +141102,19 @@ namespace OpenTK.Graphics Delegates.glNormalStream3ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3ivATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Int32 coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* coords_ptr = &coords) @@ -106319,6 +141122,9 @@ namespace OpenTK.Graphics Delegates.glNormalStream3ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106326,20 +141132,38 @@ namespace OpenTK.Graphics public static unsafe void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Int32* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3ivATI((OpenTK.Graphics.AtiVertexStreams)stream, (Int32*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3fATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Single nx, Single ny, Single nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3fATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single)nx, (Single)ny, (Single)nz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3fvATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Single[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = coords) @@ -106347,12 +141171,19 @@ namespace OpenTK.Graphics Delegates.glNormalStream3fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3fvATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Single coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* coords_ptr = &coords) @@ -106360,6 +141191,9 @@ namespace OpenTK.Graphics Delegates.glNormalStream3fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106367,20 +141201,38 @@ namespace OpenTK.Graphics public static unsafe void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Single* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3fvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Single*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3dATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Double nx, Double ny, Double nz) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3dATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double)nx, (Double)ny, (Double)nz); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3dvATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Double[] coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = coords) @@ -106388,12 +141240,19 @@ namespace OpenTK.Graphics Delegates.glNormalStream3dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glNormalStream3dvATI")] public static void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, ref Double coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Double* coords_ptr = &coords) @@ -106401,6 +141260,9 @@ namespace OpenTK.Graphics Delegates.glNormalStream3dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106408,38 +141270,70 @@ namespace OpenTK.Graphics public static unsafe void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Double* coords) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glNormalStream3dvATI((OpenTK.Graphics.AtiVertexStreams)stream, (Double*)coords); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glClientActiveVertexStreamATI")] public static void ClientActiveVertexStream(OpenTK.Graphics.AtiVertexStreams stream) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glClientActiveVertexStreamATI((OpenTK.Graphics.AtiVertexStreams)stream); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexBlendEnviATI")] public static void VertexBlendEnv(OpenTK.Graphics.AtiVertexStreams pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexBlendEnviATI((OpenTK.Graphics.AtiVertexStreams)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexStreams", Version = "1.2", EntryPoint = "glVertexBlendEnvfATI")] public static void VertexBlendEnv(OpenTK.Graphics.AtiVertexStreams pname, Single param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexBlendEnvfATI((OpenTK.Graphics.AtiVertexStreams)pname, (Single)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glElementPointerATI")] public static void ElementPointer(OpenTK.Graphics.AtiElementArray type, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer); + #endif + Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glElementPointerATI")] @@ -106447,18 +141341,22 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AtiElementArray type, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glElementPointerATI")] @@ -106466,18 +141364,22 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AtiElementArray type, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glElementPointerATI")] @@ -106485,18 +141387,22 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AtiElementArray type, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glElementPointerATI")] @@ -106504,25 +141410,36 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AtiElementArray type, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerATI((OpenTK.Graphics.AtiElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glDrawElementArrayATI")] public static void DrawElementArray(OpenTK.Graphics.BeginMode mode, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawElementArrayATI((OpenTK.Graphics.BeginMode)mode, (Int32)count); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106530,7 +141447,14 @@ namespace OpenTK.Graphics public static void DrawRangeElementArray(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawRangeElementArrayATI((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)count); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiElementArray", Version = "1.2", EntryPoint = "glDrawRangeElementArrayATI")] @@ -106558,6 +141482,10 @@ namespace OpenTK.Graphics public static void DrawBuffers(Int32 n, OpenTK.Graphics.AtiDrawBuffers[] bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.AtiDrawBuffers* bufs_ptr = bufs) @@ -106565,6 +141493,9 @@ namespace OpenTK.Graphics Delegates.glDrawBuffersATI((Int32)n, (OpenTK.Graphics.AtiDrawBuffers*)bufs_ptr); } } + #if DEBUG + } + #endif } @@ -106585,6 +141516,10 @@ namespace OpenTK.Graphics public static void DrawBuffers(Int32 n, ref OpenTK.Graphics.AtiDrawBuffers bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (OpenTK.Graphics.AtiDrawBuffers* bufs_ptr = &bufs) @@ -106592,6 +141527,9 @@ namespace OpenTK.Graphics Delegates.glDrawBuffersATI((Int32)n, (OpenTK.Graphics.AtiDrawBuffers*)bufs_ptr); } } + #if DEBUG + } + #endif } @@ -106613,7 +141551,14 @@ namespace OpenTK.Graphics public static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.AtiDrawBuffers* bufs) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawBuffersATI((Int32)n, (OpenTK.Graphics.AtiDrawBuffers*)bufs); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106621,7 +141566,14 @@ namespace OpenTK.Graphics public static unsafe IntPtr MapObjectBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glMapObjectBufferATI((UInt32)buffer); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106629,7 +141581,14 @@ namespace OpenTK.Graphics public static unsafe IntPtr MapObjectBuffer(Int32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glMapObjectBufferATI((UInt32)buffer); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106637,7 +141596,14 @@ namespace OpenTK.Graphics public static void UnmapObjectBuffer(UInt32 buffer) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glUnmapObjectBufferATI((UInt32)buffer); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiMapObjectBuffer", Version = "1.2", EntryPoint = "glUnmapObjectBufferATI")] @@ -106675,7 +141641,14 @@ namespace OpenTK.Graphics public static void StencilOpSeparate(OpenTK.Graphics.AtiSeparateStencil face, OpenTK.Graphics.StencilOp sfail, OpenTK.Graphics.StencilOp dpfail, OpenTK.Graphics.StencilOp dppass) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilOpSeparateATI((OpenTK.Graphics.AtiSeparateStencil)face, (OpenTK.Graphics.StencilOp)sfail, (OpenTK.Graphics.StencilOp)dpfail, (OpenTK.Graphics.StencilOp)dppass); + #if DEBUG + } + #endif } @@ -106707,7 +141680,14 @@ namespace OpenTK.Graphics public static void StencilFuncSeparate(OpenTK.Graphics.StencilFunction frontfunc, OpenTK.Graphics.StencilFunction backfunc, Int32 @ref, UInt32 mask) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glStencilFuncSeparateATI((OpenTK.Graphics.StencilFunction)frontfunc, (OpenTK.Graphics.StencilFunction)backfunc, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif } @@ -106746,7 +141726,14 @@ namespace OpenTK.Graphics public static void VertexAttribArrayObject(UInt32 index, Int32 size, OpenTK.Graphics.AtiVertexAttribArrayObject type, bool normalized, Int32 stride, UInt32 buffer, UInt32 offset) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexAttribArrayObjectATI((UInt32)index, (Int32)size, (OpenTK.Graphics.AtiVertexAttribArrayObject)type, (bool)normalized, (Int32)stride, (UInt32)buffer, (UInt32)offset); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexAttribArrayObject", Version = "1.2", EntryPoint = "glVertexAttribArrayObjectATI")] @@ -106761,6 +141748,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribArrayObject(UInt32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -106768,12 +141759,19 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribArrayObjectfvATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexAttribArrayObject", Version = "1.2", EntryPoint = "glGetVertexAttribArrayObjectfvATI")] public static void GetVertexAttribArrayObject(Int32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Single[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = @params) @@ -106781,6 +141779,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribArrayObjectfvATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Single*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106788,6 +141789,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribArrayObject(UInt32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -106796,12 +141801,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexAttribArrayObject", Version = "1.2", EntryPoint = "glGetVertexAttribArrayObjectfvATI")] public static void GetVertexAttribArrayObject(Int32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] out Single @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Single* @params_ptr = &@params) @@ -106810,6 +141822,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106817,7 +141832,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribArrayObject(UInt32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribArrayObjectfvATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106825,7 +141847,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribArrayObject(Int32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Single* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribArrayObjectfvATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Single*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106833,6 +141862,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribArrayObject(UInt32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -106840,12 +141873,19 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribArrayObjectivATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexAttribArrayObject", Version = "1.2", EntryPoint = "glGetVertexAttribArrayObjectivATI")] public static void GetVertexAttribArrayObject(Int32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Int32[] @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = @params) @@ -106853,6 +141893,9 @@ namespace OpenTK.Graphics Delegates.glGetVertexAttribArrayObjectivATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Int32*)@params_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106860,6 +141903,10 @@ namespace OpenTK.Graphics public static void GetVertexAttribArrayObject(UInt32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -106868,12 +141915,19 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AtiVertexAttribArrayObject", Version = "1.2", EntryPoint = "glGetVertexAttribArrayObjectivATI")] public static void GetVertexAttribArrayObject(Int32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] out Int32 @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* @params_ptr = &@params) @@ -106882,6 +141936,9 @@ namespace OpenTK.Graphics @params = *@params_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106889,7 +141946,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribArrayObject(UInt32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribArrayObjectivATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -106897,7 +141961,14 @@ namespace OpenTK.Graphics public static unsafe void GetVertexAttribArrayObject(Int32 index, OpenTK.Graphics.AtiVertexAttribArrayObject pname, [Out] Int32* @params) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGetVertexAttribArrayObjectivATI((UInt32)index, (OpenTK.Graphics.AtiVertexAttribArrayObject)pname, (Int32*)@params); + #if DEBUG + } + #endif } } @@ -106908,10 +141979,14 @@ namespace OpenTK.Graphics public static void ElementPointer(OpenTK.Graphics.AppleElementArray type, IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer); + #endif + Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")] @@ -106919,18 +141994,22 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AppleElementArray type, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")] @@ -106938,18 +142017,22 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AppleElementArray type, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")] @@ -106957,18 +142040,22 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AppleElementArray type, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glElementPointerAPPLE")] @@ -106976,25 +142063,36 @@ namespace OpenTK.Graphics void ElementPointer(OpenTK.Graphics.AppleElementArray type, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glElementPointerAPPLE((OpenTK.Graphics.AppleElementArray)type, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glDrawElementArrayAPPLE")] public static void DrawElementArray(OpenTK.Graphics.BeginMode mode, Int32 first, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (Int32)first, (Int32)count); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107002,7 +142100,14 @@ namespace OpenTK.Graphics public static void DrawRangeElementArray(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32 first, Int32 count) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32)first, (Int32)count); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glDrawRangeElementArrayAPPLE")] @@ -107016,6 +142121,10 @@ namespace OpenTK.Graphics public static void MultiDrawElementArray(OpenTK.Graphics.BeginMode mode, Int32[] first, Int32[] count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = first) @@ -107024,12 +142133,19 @@ namespace OpenTK.Graphics Delegates.glMultiDrawElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawElementArrayAPPLE")] public static void MultiDrawElementArray(OpenTK.Graphics.BeginMode mode, ref Int32 first, ref Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = &first) @@ -107038,6 +142154,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107045,7 +142164,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawElementArray(OpenTK.Graphics.BeginMode mode, Int32* first, Int32* count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (Int32*)first, (Int32*)count, (Int32)primcount); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107053,6 +142179,10 @@ namespace OpenTK.Graphics public static void MultiDrawRangeElementArray(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32[] first, Int32[] count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = first) @@ -107061,12 +142191,19 @@ namespace OpenTK.Graphics Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawRangeElementArrayAPPLE")] public static void MultiDrawRangeElementArray(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32[] first, Int32[] count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = first) @@ -107075,6 +142212,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107082,6 +142222,10 @@ namespace OpenTK.Graphics public static void MultiDrawRangeElementArray(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, ref Int32 first, ref Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = &first) @@ -107090,12 +142234,19 @@ namespace OpenTK.Graphics Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleElementArray", Version = "1.2", EntryPoint = "glMultiDrawRangeElementArrayAPPLE")] public static void MultiDrawRangeElementArray(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, ref Int32 first, ref Int32 count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* first_ptr = &first) @@ -107104,6 +142255,9 @@ namespace OpenTK.Graphics Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first_ptr, (Int32*)count_ptr, (Int32)primcount); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107111,7 +142265,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawRangeElementArray(OpenTK.Graphics.BeginMode mode, UInt32 start, UInt32 end, Int32* first, Int32* count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first, (Int32*)count, (Int32)primcount); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107119,7 +142280,14 @@ namespace OpenTK.Graphics public static unsafe void MultiDrawRangeElementArray(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 end, Int32* first, Int32* count, Int32 primcount) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glMultiDrawRangeElementArrayAPPLE((OpenTK.Graphics.BeginMode)mode, (UInt32)start, (UInt32)end, (Int32*)first, (Int32*)count, (Int32)primcount); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107127,6 +142295,10 @@ namespace OpenTK.Graphics public static void GenFences(Int32 n, [Out] UInt32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = fences) @@ -107134,12 +142306,19 @@ namespace OpenTK.Graphics Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")] public static void GenFences(Int32 n, [Out] Int32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = fences) @@ -107147,6 +142326,9 @@ namespace OpenTK.Graphics Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107154,6 +142336,10 @@ namespace OpenTK.Graphics public static void GenFences(Int32 n, [Out] out UInt32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = &fences) @@ -107162,12 +142348,19 @@ namespace OpenTK.Graphics fences = *fences_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glGenFencesAPPLE")] public static void GenFences(Int32 n, [Out] out Int32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = &fences) @@ -107176,6 +142369,9 @@ namespace OpenTK.Graphics fences = *fences_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107183,7 +142379,14 @@ namespace OpenTK.Graphics public static unsafe void GenFences(Int32 n, [Out] UInt32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107191,7 +142394,14 @@ namespace OpenTK.Graphics public static unsafe void GenFences(Int32 n, [Out] Int32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenFencesAPPLE((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107199,6 +142409,10 @@ namespace OpenTK.Graphics public static void DeleteFences(Int32 n, UInt32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = fences) @@ -107206,12 +142420,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")] public static void DeleteFences(Int32 n, Int32[] fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = fences) @@ -107219,6 +142440,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107226,6 +142450,10 @@ namespace OpenTK.Graphics public static void DeleteFences(Int32 n, ref UInt32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* fences_ptr = &fences) @@ -107233,12 +142461,19 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glDeleteFencesAPPLE")] public static void DeleteFences(Int32 n, ref Int32 fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* fences_ptr = &fences) @@ -107246,6 +142481,9 @@ namespace OpenTK.Graphics Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107253,7 +142491,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFences(Int32 n, UInt32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107261,7 +142506,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteFences(Int32 n, Int32* fences) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteFencesAPPLE((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107269,7 +142521,14 @@ namespace OpenTK.Graphics public static void SetFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glSetFenceAPPLE((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glSetFenceAPPLE")] @@ -107284,7 +142543,14 @@ namespace OpenTK.Graphics public static bool IsFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsFenceAPPLE((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glIsFenceAPPLE")] @@ -107299,7 +142565,14 @@ namespace OpenTK.Graphics public static bool TestFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glTestFenceAPPLE((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glTestFenceAPPLE")] @@ -107314,7 +142587,14 @@ namespace OpenTK.Graphics public static void FinishFence(UInt32 fence) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFinishFenceAPPLE((UInt32)fence); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glFinishFenceAPPLE")] @@ -107329,7 +142609,14 @@ namespace OpenTK.Graphics public static bool TestObject(OpenTK.Graphics.AppleFence @object, UInt32 name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glTestObjectAPPLE((OpenTK.Graphics.AppleFence)@object, (UInt32)name); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFence", Version = "1.2", EntryPoint = "glTestObjectAPPLE")] @@ -107343,7 +142630,14 @@ namespace OpenTK.Graphics public static void FinishObject(OpenTK.Graphics.AppleFence @object, Int32 name) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFinishObjectAPPLE((OpenTK.Graphics.AppleFence)@object, (Int32)name); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107351,7 +142645,14 @@ namespace OpenTK.Graphics public static void BindVertexArray(UInt32 array) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBindVertexArrayAPPLE((UInt32)array); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glBindVertexArrayAPPLE")] @@ -107366,6 +142667,10 @@ namespace OpenTK.Graphics public static void DeleteVertexArrays(Int32 n, UInt32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = arrays) @@ -107373,12 +142678,19 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")] public static void DeleteVertexArrays(Int32 n, Int32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = arrays) @@ -107386,6 +142698,9 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107393,6 +142708,10 @@ namespace OpenTK.Graphics public static void DeleteVertexArrays(Int32 n, ref UInt32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = &arrays) @@ -107400,12 +142719,19 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glDeleteVertexArraysAPPLE")] public static void DeleteVertexArrays(Int32 n, ref Int32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = &arrays) @@ -107413,6 +142739,9 @@ namespace OpenTK.Graphics Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107420,7 +142749,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteVertexArrays(Int32 n, UInt32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107428,7 +142764,14 @@ namespace OpenTK.Graphics public static unsafe void DeleteVertexArrays(Int32 n, Int32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glDeleteVertexArraysAPPLE((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107436,6 +142779,10 @@ namespace OpenTK.Graphics public static void GenVertexArrays(Int32 n, [Out] UInt32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = arrays) @@ -107443,12 +142790,19 @@ namespace OpenTK.Graphics Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")] public static void GenVertexArrays(Int32 n, [Out] Int32[] arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = arrays) @@ -107456,6 +142810,9 @@ namespace OpenTK.Graphics Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays_ptr); } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107463,6 +142820,10 @@ namespace OpenTK.Graphics public static void GenVertexArrays(Int32 n, [Out] out UInt32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (UInt32* arrays_ptr = &arrays) @@ -107471,12 +142832,19 @@ namespace OpenTK.Graphics arrays = *arrays_ptr; } } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glGenVertexArraysAPPLE")] public static void GenVertexArrays(Int32 n, [Out] out Int32 arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif unsafe { fixed (Int32* arrays_ptr = &arrays) @@ -107485,6 +142853,9 @@ namespace OpenTK.Graphics arrays = *arrays_ptr; } } + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107492,7 +142863,14 @@ namespace OpenTK.Graphics public static unsafe void GenVertexArrays(Int32 n, [Out] UInt32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107500,7 +142878,14 @@ namespace OpenTK.Graphics public static unsafe void GenVertexArrays(Int32 n, [Out] Int32* arrays) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glGenVertexArraysAPPLE((Int32)n, (UInt32*)arrays); + #if DEBUG + } + #endif } [System.CLSCompliant(false)] @@ -107508,7 +142893,14 @@ namespace OpenTK.Graphics public static bool IsVertexArray(UInt32 array) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif return Delegates.glIsVertexArrayAPPLE((UInt32)array); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayObject", Version = "1.2", EntryPoint = "glIsVertexArrayAPPLE")] @@ -107522,10 +142914,14 @@ namespace OpenTK.Graphics public static void VertexArrayRange(Int32 length, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer); + #endif + Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glVertexArrayRangeAPPLE")] @@ -107533,18 +142929,22 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glVertexArrayRangeAPPLE")] @@ -107552,18 +142952,22 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glVertexArrayRangeAPPLE")] @@ -107571,18 +142975,22 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glVertexArrayRangeAPPLE")] @@ -107590,28 +142998,36 @@ namespace OpenTK.Graphics void VertexArrayRange(Int32 length, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")] public static void FlushVertexArrayRange(Int32 length, [Out] IntPtr pointer) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer); + #endif + Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer); + #if DEBUG } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")] @@ -107619,18 +143035,22 @@ namespace OpenTK.Graphics void FlushVertexArrayRange(Int32 length, [In, Out] ref T1 pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")] @@ -107638,18 +143058,22 @@ namespace OpenTK.Graphics void FlushVertexArrayRange(Int32 length, [In, Out] T1[] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")] @@ -107657,18 +143081,22 @@ namespace OpenTK.Graphics void FlushVertexArrayRange(Int32 length, [In, Out] T1[,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glFlushVertexArrayRangeAPPLE")] @@ -107676,39 +143104,64 @@ namespace OpenTK.Graphics void FlushVertexArrayRange(Int32 length, [In, Out] T1[,,] pointer) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glFlushVertexArrayRangeAPPLE((Int32)length, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glVertexArrayParameteriAPPLE")] public static void VertexArrayParameter(OpenTK.Graphics.AppleVertexArrayRange pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glVertexArrayParameteriAPPLE((OpenTK.Graphics.AppleVertexArrayRange)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFlushBufferRange", Version = "1.5", EntryPoint = "glBufferParameteriAPPLE")] public static void BufferParameter(OpenTK.Graphics.AppleFlushBufferRange target, OpenTK.Graphics.AppleFlushBufferRange pname, Int32 param) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glBufferParameteriAPPLE((OpenTK.Graphics.AppleFlushBufferRange)target, (OpenTK.Graphics.AppleFlushBufferRange)pname, (Int32)param); + #if DEBUG + } + #endif } [AutoGenerated(Category = "AppleFlushBufferRange", Version = "1.5", EntryPoint = "glFlushMappedBufferRangeAPPLE")] public static void FlushMappedBufferRange(OpenTK.Graphics.AppleFlushBufferRange target, IntPtr offset, IntPtr size) { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFlushMappedBufferRangeAPPLE((OpenTK.Graphics.AppleFlushBufferRange)target, (IntPtr)offset, (IntPtr)size); + #if DEBUG + } + #endif } } @@ -107719,10 +143172,14 @@ namespace OpenTK.Graphics public static void StringMarker(Int32 len, IntPtr @string) { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string); + #endif + Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string); + #if DEBUG } + #endif } [AutoGenerated(Category = "GremedyStringMarker", Version = "1.0", EntryPoint = "glStringMarkerGREMEDY")] @@ -107730,18 +143187,22 @@ namespace OpenTK.Graphics void StringMarker(Int32 len, [In, Out] ref T1 @string) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "GremedyStringMarker", Version = "1.0", EntryPoint = "glStringMarkerGREMEDY")] @@ -107749,18 +143210,22 @@ namespace OpenTK.Graphics void StringMarker(Int32 len, [In, Out] T1[] @string) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "GremedyStringMarker", Version = "1.0", EntryPoint = "glStringMarkerGREMEDY")] @@ -107768,18 +143233,22 @@ namespace OpenTK.Graphics void StringMarker(Int32 len, [In, Out] T1[,] @string) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "GremedyStringMarker", Version = "1.0", EntryPoint = "glStringMarkerGREMEDY")] @@ -107787,25 +143256,36 @@ namespace OpenTK.Graphics void StringMarker(Int32 len, [In, Out] T1[,,] @string) where T1 : struct { - unsafe + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) { - GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); - try - { - Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); - } - finally - { - @string_ptr.Free(); - } + #endif + GCHandle @string_ptr = GCHandle.Alloc(@string, GCHandleType.Pinned); + try + { + Delegates.glStringMarkerGREMEDY((Int32)len, (IntPtr)@string_ptr.AddrOfPinnedObject()); } + finally + { + @string_ptr.Free(); + } + #if DEBUG + } + #endif } [AutoGenerated(Category = "GremedyFrameTerminator", Version = "1.0", EntryPoint = "glFrameTerminatorGREMEDY")] public static void FrameTerminator() { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif Delegates.glFrameTerminatorGREMEDY(); + #if DEBUG + } + #endif } } diff --git a/Source/OpenTK/Graphics/GL/GLCore.cs b/Source/OpenTK/Graphics/GL/GLCore.cs index 07ab3b26..45f8ebdc 100644 --- a/Source/OpenTK/Graphics/GL/GLCore.cs +++ b/Source/OpenTK/Graphics/GL/GLCore.cs @@ -2,7 +2,7 @@ // // The Open Toolkit Library License // -// Copyright (c) 2006 - 2008 the Open Toolkit library, except where noted. +// Copyright (c) 2006 - 2009 the Open Toolkit library. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -1816,10 +1816,10 @@ namespace OpenTK.Graphics internal extern static void BindBufferBase(OpenTK.Graphics.Version30 target, UInt32 index, UInt32 buffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTransformFeedbackVaryings", ExactSpelling = true)] - internal extern static unsafe void TransformFeedbackVaryings(UInt32 program, Int32 count, Int32* locations, OpenTK.Graphics.Version30 bufferMode); + internal extern static void TransformFeedbackVaryings(UInt32 program, Int32 count, String varyings, OpenTK.Graphics.Version30 bufferMode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)] - internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32* location); + internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.Version30* type, [Out] System.Text.StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClampColor", ExactSpelling = true)] internal extern static void ClampColor(OpenTK.Graphics.ClampColorTarget target, OpenTK.Graphics.ClampColorMode clamp); @@ -2007,8 +2007,8 @@ namespace OpenTK.Graphics [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)] internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerate", ExactSpelling = true)] - internal extern static void Generate(OpenTK.Graphics.GenerateMipmapTarget target); + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerateMipmap", ExactSpelling = true)] + internal extern static void GenerateMipmap(OpenTK.Graphics.GenerateMipmapTarget target); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlitFramebuffer", ExactSpelling = true)] internal extern static void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ClearBufferMask mask, OpenTK.Graphics.BlitFramebufferFilter filter); @@ -2023,7 +2023,7 @@ namespace OpenTK.Graphics internal extern static void VertexAttribDivisor(UInt32 index, UInt32 divisor); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferRange", ExactSpelling = true)] - internal extern static void MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access); + internal extern static unsafe IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlushMappedBufferRange", ExactSpelling = true)] internal extern static void FlushMappedBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length); @@ -2039,6 +2039,45 @@ namespace OpenTK.Graphics [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsVertexArray", ExactSpelling = true)] internal extern static bool IsVertexArray(UInt32 array); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorGroupsAMD([Out] Int32* numGroups, Int32 groupsSize, [Out] UInt32* groups); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCountersAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, [Out] Int32* numCounters, [Out] Int32* maxActiveCounters, Int32 counterSize, [Out] UInt32* counters); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder groupString); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder counterString); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterInfoAMD", ExactSpelling = true)] + internal extern static void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [Out] IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenPerfMonitorsAMD", ExactSpelling = true)] + internal extern static unsafe void GenPerfMonitorsAMD(Int32 n, [Out] UInt32* monitors); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeletePerfMonitorsAMD", ExactSpelling = true)] + internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, [Out] UInt32* monitors); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSelectPerfMonitorCountersAMD", ExactSpelling = true)] + internal extern static unsafe void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [Out] UInt32* counterList); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginPerfMonitorAMD", ExactSpelling = true)] + internal extern static void BeginPerfMonitorAMD(UInt32 monitor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEndPerfMonitorAMD", ExactSpelling = true)] + internal extern static void EndPerfMonitorAMD(UInt32 monitor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterDataAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] UInt32* data, [Out] Int32* bytesWritten); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTessellationFactorAMD", ExactSpelling = true)] + internal extern static void TessellationFactorAMD(Single factor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTessellationModeAMD", ExactSpelling = true)] + internal extern static void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode); } } } diff --git a/Source/OpenTK/Graphics/GL/GLDelegates.cs b/Source/OpenTK/Graphics/GL/GLDelegates.cs index e3465b32..93866150 100644 --- a/Source/OpenTK/Graphics/GL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/GL/GLDelegates.cs @@ -2,7 +2,7 @@ // // The Open Toolkit Library License // -// Copyright (c) 2006 - 2008 the Open Toolkit library, except where noted. +// Copyright (c) 2006 - 2009 the Open Toolkit library. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -1817,10 +1817,10 @@ namespace OpenTK.Graphics internal delegate void BindBufferBase(OpenTK.Graphics.Version30 target, UInt32 index, UInt32 buffer); internal static BindBufferBase glBindBufferBase; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TransformFeedbackVaryings(UInt32 program, Int32 count, Int32* locations, OpenTK.Graphics.Version30 bufferMode); - internal unsafe static TransformFeedbackVaryings glTransformFeedbackVaryings; + internal delegate void TransformFeedbackVaryings(UInt32 program, Int32 count, String varyings, OpenTK.Graphics.Version30 bufferMode); + internal static TransformFeedbackVaryings glTransformFeedbackVaryings; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, [Out] Int32* location); + internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.Version30* type, [Out] System.Text.StringBuilder name); internal unsafe static GetTransformFeedbackVarying glGetTransformFeedbackVarying; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ClampColor(OpenTK.Graphics.ClampColorTarget target, OpenTK.Graphics.ClampColorMode clamp); @@ -2627,8 +2627,8 @@ namespace OpenTK.Graphics internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.FramebufferParameterName pname, [Out] Int32* @params); internal unsafe static GetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Generate(OpenTK.Graphics.GenerateMipmapTarget target); - internal static Generate glGenerate; + internal delegate void GenerateMipmap(OpenTK.Graphics.GenerateMipmapTarget target); + internal static GenerateMipmap glGenerateMipmap; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BlitFramebuffer(Int32 srcX0, Int32 srcY0, Int32 srcX1, Int32 srcY1, Int32 dstX0, Int32 dstY0, Int32 dstX1, Int32 dstY1, OpenTK.Graphics.ClearBufferMask mask, OpenTK.Graphics.BlitFramebufferFilter filter); internal static BlitFramebuffer glBlitFramebuffer; @@ -2654,8 +2654,8 @@ namespace OpenTK.Graphics internal delegate void VertexAttribDivisor(UInt32 index, UInt32 divisor); internal static VertexAttribDivisor glVertexAttribDivisor; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access); - internal static MapBufferRange glMapBufferRange; + internal unsafe delegate IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access); + internal unsafe static MapBufferRange glMapBufferRange; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void FlushMappedBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length); internal static FlushMappedBufferRange glFlushMappedBufferRange; @@ -4907,6 +4907,27 @@ namespace OpenTK.Graphics internal delegate void EndConditionalRenderNV(); internal static EndConditionalRenderNV glEndConditionalRenderNV; [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PresentFrameKeyedNV(UInt32 video_slot, UInt64 minPresentTime, UInt32 beginPresentTimeId, UInt32 presentDurationId, OpenTK.Graphics.NvPresentVideo type, OpenTK.Graphics.NvPresentVideo target0, UInt32 fill0, UInt32 key0, OpenTK.Graphics.NvPresentVideo target1, UInt32 fill1, UInt32 key1); + internal static PresentFrameKeyedNV glPresentFrameKeyedNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PresentFrameDualFillNV(UInt32 video_slot, UInt64 minPresentTime, UInt32 beginPresentTimeId, UInt32 presentDurationId, OpenTK.Graphics.NvPresentVideo type, OpenTK.Graphics.NvPresentVideo target0, UInt32 fill0, OpenTK.Graphics.NvPresentVideo target1, UInt32 fill1, OpenTK.Graphics.NvPresentVideo target2, UInt32 fill2, OpenTK.Graphics.NvPresentVideo target3, UInt32 fill3); + internal static PresentFrameDualFillNV glPresentFrameDualFillNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetVideoivNV(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int32* @params); + internal unsafe static GetVideoivNV glGetVideoivNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetVideouivNV(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] UInt32* @params); + internal unsafe static GetVideouivNV glGetVideouivNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetVideoi64vNV(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] Int64* @params); + internal unsafe static GetVideoi64vNV glGetVideoi64vNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetVideoui64vNV(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, [Out] UInt64* @params); + internal unsafe static GetVideoui64vNV glGetVideoui64vNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void VideoParameterivNV(UInt32 video_slot, OpenTK.Graphics.NvPresentVideo pname, Int32* @params); + internal unsafe static VideoParameterivNV glVideoParameterivNV; + [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BeginTransformFeedbackEXT(OpenTK.Graphics.ExtTransformFeedback primitiveMode); internal static BeginTransformFeedbackEXT glBeginTransformFeedbackEXT; [System.Security.SuppressUnmanagedCodeSecurity()] @@ -4922,10 +4943,10 @@ namespace OpenTK.Graphics internal delegate void BindBufferBaseEXT(OpenTK.Graphics.ExtTransformFeedback target, UInt32 index, UInt32 buffer); internal static BindBufferBaseEXT glBindBufferBaseEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TransformFeedbackVaryingsEXT(UInt32 program, Int32 count, Int32* locations, OpenTK.Graphics.ExtTransformFeedback bufferMode); - internal unsafe static TransformFeedbackVaryingsEXT glTransformFeedbackVaryingsEXT; + internal delegate void TransformFeedbackVaryingsEXT(UInt32 program, Int32 count, String varyings, OpenTK.Graphics.ExtTransformFeedback bufferMode); + internal static TransformFeedbackVaryingsEXT glTransformFeedbackVaryingsEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, [Out] Int32* location); + internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [Out] Int32* length, [Out] Int32* size, [Out] OpenTK.Graphics.ExtTransformFeedback* type, [Out] System.Text.StringBuilder name); internal unsafe static GetTransformFeedbackVaryingEXT glGetTransformFeedbackVaryingEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ClientAttribDefaultEXT(OpenTK.Graphics.ClientAttribMask mask); @@ -5515,6 +5536,48 @@ namespace OpenTK.Graphics [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void DrawTransformFeedbackNV(OpenTK.Graphics.NvTransformFeedback2 mode, UInt32 id); internal static DrawTransformFeedbackNV glDrawTransformFeedbackNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorGroupsAMD([Out] Int32* numGroups, Int32 groupsSize, [Out] UInt32* groups); + internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, [Out] Int32* numCounters, [Out] Int32* maxActiveCounters, Int32 counterSize, [Out] UInt32* counters); + internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder groupString); + internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [Out] Int32* length, [Out] System.Text.StringBuilder counterString); + internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.AmdPerformanceMonitor pname, [Out] IntPtr data); + internal static GetPerfMonitorCounterInfoAMD glGetPerfMonitorCounterInfoAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenPerfMonitorsAMD(Int32 n, [Out] UInt32* monitors); + internal unsafe static GenPerfMonitorsAMD glGenPerfMonitorsAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, [Out] UInt32* monitors); + internal unsafe static DeletePerfMonitorsAMD glDeletePerfMonitorsAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, [Out] UInt32* counterList); + internal unsafe static SelectPerfMonitorCountersAMD glSelectPerfMonitorCountersAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BeginPerfMonitorAMD(UInt32 monitor); + internal static BeginPerfMonitorAMD glBeginPerfMonitorAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EndPerfMonitorAMD(UInt32 monitor); + internal static EndPerfMonitorAMD glEndPerfMonitorAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.AmdPerformanceMonitor pname, Int32 dataSize, [Out] UInt32* data, [Out] Int32* bytesWritten); + internal unsafe static GetPerfMonitorCounterDataAMD glGetPerfMonitorCounterDataAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TessellationFactorAMD(Single factor); + internal static TessellationFactorAMD glTessellationFactorAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode); + internal static TessellationModeAMD glTessellationModeAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ProvokingVertexEXT(OpenTK.Graphics.ExtProvokingVertex mode); + internal static ProvokingVertexEXT glProvokingVertexEXT; } } } diff --git a/Source/OpenTK/Graphics/GL/GLEnums.cs b/Source/OpenTK/Graphics/GL/GLEnums.cs index f1028631..fe20023e 100644 --- a/Source/OpenTK/Graphics/GL/GLEnums.cs +++ b/Source/OpenTK/Graphics/GL/GLEnums.cs @@ -2,7 +2,7 @@ // // The Open Toolkit Library License // -// Copyright (c) 2006 - 2008 the Open Toolkit library, except where noted. +// Copyright (c) 2006 - 2009 the Open Toolkit library. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal @@ -2491,8 +2491,14 @@ namespace OpenTK.Graphics public enum Version12 { + SmoothPointSizeRange = ((int)0X0b12), + SmoothPointSizeGranularity = ((int)0X0b13), + SmoothLineWidthRange = ((int)0X0b22), + SmoothLineWidthGranularity = ((int)0X0b23), MaxElementsVertices = ((int)0X80e8), MaxElementsIndices = ((int)0X80e9), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), } public enum SgisTextureSelect @@ -2743,10 +2749,13 @@ namespace OpenTK.Graphics public enum SgixDepthTexture { DepthComponent16 = ((int)0X81a5), + DepthComponent16Arb = ((int)0X81a5), DepthComponent16Sgix = ((int)0X81a5), DepthComponent24 = ((int)0X81a6), + DepthComponent24Arb = ((int)0X81a6), DepthComponent24Sgix = ((int)0X81a6), DepthComponent32 = ((int)0X81a7), + DepthComponent32Arb = ((int)0X81a7), DepthComponent32Sgix = ((int)0X81a7), } @@ -5134,6 +5143,9 @@ namespace OpenTK.Graphics PnTrianglesPointModeCubicAti = ((int)0X87f6), PnTrianglesNormalModeLinearAti = ((int)0X87f7), PnTrianglesNormalModeQuadraticAti = ((int)0X87f8), + VboFreeMemoryAti = ((int)0X87fb), + TextureFreeMemoryAti = ((int)0X87fc), + RenderbufferFreeMemoryAti = ((int)0X87fd), StencilBackFunc = ((int)0X8800), StencilBackFuncAti = ((int)0X8800), StencilBackFail = ((int)0X8801), @@ -5704,6 +5716,13 @@ namespace OpenTK.Graphics CurrentProgram = ((int)0X8b8d), ImplementationColorReadTypeOes = ((int)0X8b9a), ImplementationColorReadFormatOes = ((int)0X8b9b), + CounterTypeAmd = ((int)0X8bc0), + CounterRangeAmd = ((int)0X8bc1), + UnsignedInt64Amd = ((int)0X8bc2), + PercentageAmd = ((int)0X8bc3), + PerfmonResultAvailableAmd = ((int)0X8bc4), + PerfmonResultSizeAmd = ((int)0X8bc5), + PerfmonResultAmd = ((int)0X8bc6), TextureRedType = ((int)0X8c10), TextureRedTypeArb = ((int)0X8c10), TextureGreenType = ((int)0X8c11), @@ -6159,6 +6178,10 @@ namespace OpenTK.Graphics TextureSwizzleBExt = ((int)0X8e44), TextureSwizzleAExt = ((int)0X8e45), TextureSwizzleRgbaExt = ((int)0X8e46), + QuadsFollowProvokingVertexConventionExt = ((int)0X8e4c), + FirstVertexConventionExt = ((int)0X8e4d), + LastVertexConventionExt = ((int)0X8e4e), + ProvokingVertexExt = ((int)0X8e4f), SamplePositionNv = ((int)0X8e50), SampleMaskNv = ((int)0X8e51), SampleMaskValueNv = ((int)0X8e52), @@ -6169,6 +6192,13 @@ namespace OpenTK.Graphics IntSamplerRenderbufferNv = ((int)0X8e57), UnsignedIntSamplerRenderbufferNv = ((int)0X8e58), MaxSampleMaskWordsNv = ((int)0X8e59), + SamplerBufferAmd = ((int)0X9001), + IntSamplerBufferAmd = ((int)0X9002), + UnsignedIntSamplerBufferAmd = ((int)0X9003), + TessellationModeAmd = ((int)0X9004), + TessellationFactorAmd = ((int)0X9005), + DiscreteAmd = ((int)0X9006), + ContinuousAmd = ((int)0X9007), AllAttribBits = unchecked((int)0Xffffffff), ClientAllAttribBits = unchecked((int)0Xffffffff), One = ((int)1), @@ -6202,7 +6232,12 @@ namespace OpenTK.Graphics ConstantAlpha = ((int)0X8003), OneMinusConstantAlpha = ((int)0X8004), BlendColor = ((int)0X8005), + FuncAdd = ((int)0X8006), + Min = ((int)0X8007), + Max = ((int)0X8008), BlendEquation = ((int)0X8009), + FuncSubtract = ((int)0X800a), + FuncReverseSubtract = ((int)0X800b), Convolution1D = ((int)0X8010), Convolution2D = ((int)0X8011), Separable2D = ((int)0X8012), @@ -9329,6 +9364,47 @@ namespace OpenTK.Graphics TransformFeedbackBindingNv = ((int)0X8e25), } + public enum AtiMeminfo + { + VboFreeMemoryAti = ((int)0X87fb), + TextureFreeMemoryAti = ((int)0X87fc), + RenderbufferFreeMemoryAti = ((int)0X87fd), + } + + public enum AmdPerformanceMonitor + { + CounterTypeAmd = ((int)0X8bc0), + CounterRangeAmd = ((int)0X8bc1), + UnsignedInt64Amd = ((int)0X8bc2), + PercentageAmd = ((int)0X8bc3), + PerfmonResultAvailableAmd = ((int)0X8bc4), + PerfmonResultSizeAmd = ((int)0X8bc5), + PerfmonResultAmd = ((int)0X8bc6), + } + + public enum AmdTextureTexture4 + { + } + + public enum AmdVertexShaderTesselator + { + SamplerBufferAmd = ((int)0X9001), + IntSamplerBufferAmd = ((int)0X9002), + UnsignedIntSamplerBufferAmd = ((int)0X9003), + TessellationModeAmd = ((int)0X9004), + TessellationFactorAmd = ((int)0X9005), + DiscreteAmd = ((int)0X9006), + ContinuousAmd = ((int)0X9007), + } + + public enum ExtProvokingVertex + { + QuadsFollowProvokingVertexConventionExt = ((int)0X8e4c), + FirstVertexConventionExt = ((int)0X8e4d), + LastVertexConventionExt = ((int)0X8e4e), + ProvokingVertexExt = ((int)0X8e4f), + } + public enum BlendEquationMode { FuncAdd = ((int)0X8006),