diff --git a/Source/Bind/Structures/Delegate.cs b/Source/Bind/Structures/Delegate.cs
index fe682b4e..3f92f3fb 100644
--- a/Source/Bind/Structures/Delegate.cs
+++ b/Source/Bind/Structures/Delegate.cs
@@ -368,22 +368,13 @@ namespace Bind.Structures
foreach (Function f in wrappers)
{
Bind.Structures.Function.Wrappers.AddChecked(f);
- //Bind.Structures.Function.Wrappers.Add(f);
if (!f.CLSCompliant)
{
Function cls = new Function(f);
cls.Body.Clear();
- if (!cls.NeedsWrapper)
- {
- cls.Body.Add((f.ReturnType.CurrentType != "void" ? "return " + this.CallString() : this.CallString()) + ";");
- }
- else
- {
- cls.CreateBody(true);
- //cls.Body.AddRange(this.CreateBody(cls, true));
- }
+ cls.CreateBody(true);
bool somethingChanged = false;
for (int i = 0; i < f.Parameters.Count; i++)
diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs
index e7d7144a..cf71063a 100644
--- a/Source/Bind/Structures/Function.cs
+++ b/Source/Bind/Structures/Function.cs
@@ -401,6 +401,10 @@ namespace Bind.Structures
public void CreateBody(bool wantCLSCompliance)
{
+ if (this.Name.Contains("NewList"))
+ {
+ }
+
Function f = new Function(this);
f.Body.Clear();
diff --git a/Source/OpenTK/Graphics/GL/GL.cs b/Source/OpenTK/Graphics/GL/GL.cs
index 6a4f66c7..3f9c7f4a 100644
--- a/Source/OpenTK/Graphics/GL/GL.cs
+++ b/Source/OpenTK/Graphics/GL/GL.cs
@@ -84,7 +84,14 @@ namespace OpenTK.Graphics
public static
void NewList(Int32 list, OpenTK.Graphics.ListMode mode)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glNewList((UInt32)list, (OpenTK.Graphics.ListMode)mode);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "DisplayList", Version = "1.0", EntryPoint = "glEndList")]
@@ -138,7 +145,14 @@ namespace OpenTK.Graphics
public static
void CallList(Int32 list)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glCallList((UInt32)list);
+ #if DEBUG
+ }
+ #endif
}
@@ -389,7 +403,14 @@ namespace OpenTK.Graphics
public static
void DeleteLists(Int32 list, Int32 range)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteLists((UInt32)list, (Int32)range);
+ #if DEBUG
+ }
+ #endif
}
@@ -452,7 +473,14 @@ namespace OpenTK.Graphics
public static
void ListBase(Int32 @base)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glListBase((UInt32)@base);
+ #if DEBUG
+ }
+ #endif
}
@@ -3084,7 +3112,14 @@ namespace OpenTK.Graphics
public static
void Normal3(Byte nx, Byte ny, Byte nz)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glNormal3b((SByte)nx, (SByte)ny, (SByte)nz);
+ #if DEBUG
+ }
+ #endif
}
@@ -11135,7 +11170,14 @@ namespace OpenTK.Graphics
public static
void LoadName(Int32 name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glLoadName((UInt32)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -11212,7 +11254,14 @@ namespace OpenTK.Graphics
public static
void PushName(Int32 name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glPushName((UInt32)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -11413,7 +11462,14 @@ namespace OpenTK.Graphics
public static
void StencilMask(Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glStencilMask((UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
@@ -11499,7 +11555,14 @@ namespace OpenTK.Graphics
public static
void IndexMask(Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glIndexMask((UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
@@ -13114,7 +13177,14 @@ namespace OpenTK.Graphics
public static
void StencilFunc(OpenTK.Graphics.StencilFunction func, Int32 @ref, Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glStencilFunc((OpenTK.Graphics.StencilFunction)func, (Int32)@ref, (UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
@@ -17437,7 +17507,14 @@ namespace OpenTK.Graphics
public static
bool IsList(Int32 list)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsList((UInt32)list);
+ #if DEBUG
+ }
+ #endif
}
@@ -21196,7 +21273,14 @@ namespace OpenTK.Graphics
public static
void BindTexture(OpenTK.Graphics.TextureTarget target, Int32 texture)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindTexture((OpenTK.Graphics.TextureTarget)target, (UInt32)texture);
+ #if DEBUG
+ }
+ #endif
}
@@ -21630,7 +21714,14 @@ namespace OpenTK.Graphics
public static
bool IsTexture(Int32 texture)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsTexture((UInt32)texture);
+ #if DEBUG
+ }
+ #endif
}
@@ -36762,7 +36853,14 @@ namespace OpenTK.Graphics
public static
bool IsQuery(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsQuery((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
@@ -36812,7 +36910,14 @@ namespace OpenTK.Graphics
public static
void BeginQuery(OpenTK.Graphics.QueryTarget target, Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBeginQuery((OpenTK.Graphics.QueryTarget)target, (UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "Version15", Version = "1.5", EntryPoint = "glEndQuery")]
@@ -37332,7 +37437,14 @@ namespace OpenTK.Graphics
public static
void BindBuffer(OpenTK.Graphics.BufferTarget target, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindBuffer((OpenTK.Graphics.BufferTarget)target, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
@@ -37766,7 +37878,14 @@ namespace OpenTK.Graphics
public static
bool IsBuffer(Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsBuffer((UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
@@ -39034,7 +39153,14 @@ namespace OpenTK.Graphics
public static
void StencilFuncSeparate(OpenTK.Graphics.StencilFace face, OpenTK.Graphics.StencilFunction func, Int32 @ref, Int32 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
}
@@ -39084,7 +39210,14 @@ namespace OpenTK.Graphics
public static
void StencilMaskSeparate(OpenTK.Graphics.All face, Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glStencilMaskSeparate((OpenTK.Graphics.All)face, (UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
@@ -39134,7 +39267,14 @@ namespace OpenTK.Graphics
public static
void AttachShader(Int32 program, Int32 shader)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glAttachShader((UInt32)program, (UInt32)shader);
+ #if DEBUG
+ }
+ #endif
}
@@ -39194,7 +39334,14 @@ namespace OpenTK.Graphics
public static
void BindAttribLocation(Int32 program, Int32 index, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindAttribLocation((UInt32)program, (UInt32)index, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -39234,7 +39381,14 @@ namespace OpenTK.Graphics
public static
void CompileShader(Int32 shader)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glCompileShader((UInt32)shader);
+ #if DEBUG
+ }
+ #endif
}
@@ -39315,7 +39469,14 @@ namespace OpenTK.Graphics
public static
void DeleteProgram(Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteProgram((UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -39355,7 +39516,14 @@ namespace OpenTK.Graphics
public static
void DeleteShader(Int32 shader)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteShader((UInt32)shader);
+ #if DEBUG
+ }
+ #endif
}
@@ -39405,7 +39573,14 @@ namespace OpenTK.Graphics
public static
void DetachShader(Int32 program, Int32 shader)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDetachShader((UInt32)program, (UInt32)shader);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -39427,7 +39602,14 @@ namespace OpenTK.Graphics
public static
void DisableVertexAttribArray(Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDisableVertexAttribArray((UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
@@ -39467,7 +39649,14 @@ namespace OpenTK.Graphics
public static
void EnableVertexAttribArray(Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEnableVertexAttribArray((UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
@@ -40501,7 +40690,14 @@ namespace OpenTK.Graphics
public static
Int32 GetAttribLocation(Int32 program, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetAttribLocation((UInt32)program, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -41781,7 +41977,14 @@ namespace OpenTK.Graphics
public static
Int32 GetUniformLocation(Int32 program, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetUniformLocation((UInt32)program, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -43368,7 +43571,14 @@ namespace OpenTK.Graphics
public static
bool IsProgram(Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsProgram((UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -43408,7 +43618,14 @@ namespace OpenTK.Graphics
public static
bool IsShader(Int32 shader)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsShader((UInt32)shader);
+ #if DEBUG
+ }
+ #endif
}
@@ -43448,7 +43665,14 @@ namespace OpenTK.Graphics
public static
void LinkProgram(Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glLinkProgram((UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -43744,7 +43968,14 @@ namespace OpenTK.Graphics
public static
void UseProgram(Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUseProgram((UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -44865,7 +45096,14 @@ namespace OpenTK.Graphics
public static
void ValidateProgram(Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glValidateProgram((UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -44915,7 +45153,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Double x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1d((UInt32)index, (Double)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -45077,7 +45322,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Single x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1f((UInt32)index, (Single)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -45239,7 +45491,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Int16 x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1s((UInt32)index, (Int16)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -45401,7 +45660,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Double x, Double y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2d((UInt32)index, (Double)x, (Double)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -45647,7 +45913,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Single x, Single y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2f((UInt32)index, (Single)x, (Single)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -45893,7 +46166,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Int16 x, Int16 y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2s((UInt32)index, (Int16)x, (Int16)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -46139,7 +46419,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -46385,7 +46672,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -46631,7 +46925,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -47130,7 +47431,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4N(Int32 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
}
[System.CLSCompliant(false)]
@@ -47505,7 +47813,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -47751,7 +48066,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -48193,7 +48515,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -49710,7 +50039,14 @@ namespace OpenTK.Graphics
public static
void ColorMask(Int32 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
}
[System.CLSCompliant(false)]
@@ -49978,7 +50314,14 @@ namespace OpenTK.Graphics
public static
void Enable(OpenTK.Graphics.IndexedEnableCap target, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEnablei((OpenTK.Graphics.IndexedEnableCap)target, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -50000,7 +50343,14 @@ namespace OpenTK.Graphics
public static
void Disable(OpenTK.Graphics.IndexedEnableCap target, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDisablei((OpenTK.Graphics.IndexedEnableCap)target, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
@@ -50040,7 +50390,14 @@ namespace OpenTK.Graphics
public static
bool IsEnabled(OpenTK.Graphics.IndexedEnableCap target, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsEnabledi((OpenTK.Graphics.IndexedEnableCap)target, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glBeginTransformFeedback")]
@@ -50090,7 +50447,14 @@ namespace OpenTK.Graphics
public static
void BindBufferRange(OpenTK.Graphics.BufferTarget target, Int32 index, Int32 buffer, IntPtr offset, IntPtr size)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindBufferRange((OpenTK.Graphics.BufferTarget)target, (UInt32)index, (UInt32)buffer, (IntPtr)offset, (IntPtr)size);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -50112,7 +50476,14 @@ namespace OpenTK.Graphics
public static
void BindBufferBase(OpenTK.Graphics.BufferTarget target, Int32 index, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindBufferBase((OpenTK.Graphics.BufferTarget)target, (UInt32)index, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -50134,7 +50505,14 @@ namespace OpenTK.Graphics
public static
void TransformFeedbackVaryings(Int32 program, Int32 count, String varyings, OpenTK.Graphics.TransformFeedbackMode bufferMode)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTransformFeedbackVaryings((UInt32)program, (Int32)count, (String)varyings, (OpenTK.Graphics.TransformFeedbackMode)bufferMode);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -50296,7 +50674,14 @@ namespace OpenTK.Graphics
public static
void BeginConditionalRender(Int32 id, OpenTK.Graphics.ConditionalRenderType mode)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBeginConditionalRender((UInt32)id, (OpenTK.Graphics.ConditionalRenderType)mode);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glEndConditionalRender")]
@@ -50332,7 +50717,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI1(Int32 index, Int32 x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttribI1i((UInt32)index, (Int32)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -50354,7 +50746,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI2(Int32 index, Int32 x, Int32 y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttribI2i((UInt32)index, (Int32)x, (Int32)y);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -50376,7 +50775,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI3(Int32 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
}
[System.CLSCompliant(false)]
@@ -50398,7 +50804,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI4(Int32 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
}
[System.CLSCompliant(false)]
@@ -51998,7 +52411,14 @@ namespace OpenTK.Graphics
public static
void BindFragDataLocation(Int32 program, Int32 color, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindFragDataLocation((UInt32)program, (UInt32)color, (String)name);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -52020,7 +52440,14 @@ namespace OpenTK.Graphics
public static
Int32 GetFragDataLocation(Int32 program, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetFragDataLocation((UInt32)program, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -52966,7 +53393,14 @@ namespace OpenTK.Graphics
public static
bool IsRenderbuffer(Int32 renderbuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsRenderbuffer((UInt32)renderbuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -52988,7 +53422,14 @@ namespace OpenTK.Graphics
public static
void BindRenderbuffer(OpenTK.Graphics.RenderbufferTarget target, Int32 renderbuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindRenderbuffer((OpenTK.Graphics.RenderbufferTarget)target, (UInt32)renderbuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -53306,7 +53747,14 @@ namespace OpenTK.Graphics
public static
bool IsFramebuffer(Int32 framebuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsFramebuffer((UInt32)framebuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -53328,7 +53776,14 @@ namespace OpenTK.Graphics
public static
void BindFramebuffer(OpenTK.Graphics.FramebufferTarget target, Int32 framebuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindFramebuffer((OpenTK.Graphics.FramebufferTarget)target, (UInt32)framebuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -53590,7 +54045,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture1D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -53612,7 +54074,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture2D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -53634,7 +54103,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture3D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -53656,7 +54132,14 @@ namespace OpenTK.Graphics
public static
void FramebufferRenderbuffer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.RenderbufferTarget renderbuffertarget, Int32 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 = "glGetFramebufferAttachmentParameteriv")]
@@ -53776,7 +54259,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTextureLayer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -53798,7 +54288,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribDivisor(Int32 index, Int32 divisor)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttribDivisor((UInt32)index, (UInt32)divisor);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -53849,7 +54346,14 @@ namespace OpenTK.Graphics
public static
void BindVertexArray(Int32 array)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindVertexArray((UInt32)array);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -54097,7 +54601,14 @@ namespace OpenTK.Graphics
public static
bool IsVertexArray(Int32 array)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsVertexArray((UInt32)array);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -54465,7 +54976,14 @@ namespace OpenTK.Graphics
public static
Int32 GetUniformBlockIndex(Int32 program, String uniformBlockName)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetUniformBlockIndex((UInt32)program, (String)uniformBlockName);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -54715,7 +55233,14 @@ namespace OpenTK.Graphics
public static
void UniformBlockBinding(Int32 program, Int32 uniformBlockIndex, Int32 uniformBlockBinding)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUniformBlockBinding((UInt32)program, (UInt32)uniformBlockIndex, (UInt32)uniformBlockBinding);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ArbCopyBuffer", Version = "3.0", EntryPoint = "glCopyBufferSubData")]
@@ -55784,7 +56309,14 @@ namespace OpenTK.Graphics
public static
void BeginPerfMonitorAMD(Int32 monitor)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBeginPerfMonitorAMD((UInt32)monitor);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -55806,7 +56338,14 @@ namespace OpenTK.Graphics
public static
void EndPerfMonitorAMD(Int32 monitor)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEndPerfMonitorAMD((UInt32)monitor);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -56896,7 +57435,14 @@ namespace OpenTK.Graphics
public static
bool IsFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsFenceNV((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -56918,7 +57464,14 @@ namespace OpenTK.Graphics
public static
bool TestFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glTestFenceNV((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -57054,7 +57607,14 @@ namespace OpenTK.Graphics
public static
void FinishFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glFinishFenceNV((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -57076,7 +57636,14 @@ namespace OpenTK.Graphics
public static
void SetFence(Int32 fence, OpenTK.Graphics.NvFence condition)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glSetFenceNV((UInt32)fence, (OpenTK.Graphics.NvFence)condition);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -58227,7 +58794,14 @@ namespace OpenTK.Graphics
public static
void BindProgram(OpenTK.Graphics.VertexAttribParameterArb target, Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindProgramNV((OpenTK.Graphics.VertexAttribParameterArb)target, (UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
@@ -60244,7 +60818,14 @@ namespace OpenTK.Graphics
public static
bool IsProgram(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsProgramNV((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -60378,7 +60959,14 @@ namespace OpenTK.Graphics
public static
void ProgramParameter4(OpenTK.Graphics.VertexAttribParameterArb target, Int32 index, Double x, Double y, Double z, Double w)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glProgramParameter4dNV((OpenTK.Graphics.VertexAttribParameterArb)target, (UInt32)index, (Double)x, (Double)y, (Double)z, (Double)w);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -60512,7 +61100,14 @@ namespace OpenTK.Graphics
public static
void ProgramParameter4(OpenTK.Graphics.VertexAttribParameterArb target, Int32 index, Single x, Single y, Single z, Single w)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glProgramParameter4fNV((OpenTK.Graphics.VertexAttribParameterArb)target, (UInt32)index, (Single)x, (Single)y, (Single)z, (Single)w);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -60982,7 +61577,14 @@ namespace OpenTK.Graphics
public static
void TrackMatrix(OpenTK.Graphics.VertexAttribParameterArb target, Int32 address, OpenTK.Graphics.VertexAttribParameterArb matrix, OpenTK.Graphics.VertexAttribParameterArb transform)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTrackMatrixNV((OpenTK.Graphics.VertexAttribParameterArb)target, (UInt32)address, (OpenTK.Graphics.VertexAttribParameterArb)matrix, (OpenTK.Graphics.VertexAttribParameterArb)transform);
+ #if DEBUG
+ }
+ #endif
}
@@ -61589,7 +62191,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Double x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1dNV((UInt32)index, (Double)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -61751,7 +62360,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Single x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1fNV((UInt32)index, (Single)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -61913,7 +62529,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Int16 x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1sNV((UInt32)index, (Int16)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -62075,7 +62698,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Double x, Double y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2dNV((UInt32)index, (Double)x, (Double)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -62321,7 +62951,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Single x, Single y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2fNV((UInt32)index, (Single)x, (Single)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -62567,7 +63204,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Int16 x, Int16 y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2sNV((UInt32)index, (Int16)x, (Int16)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -62813,7 +63457,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -63059,7 +63710,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -63305,7 +63963,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -63551,7 +64216,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -63797,7 +64469,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -64043,7 +64722,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -64289,7 +64975,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -66189,7 +66882,14 @@ namespace OpenTK.Graphics
public static
bool IsOcclusionQuery(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsOcclusionQueryNV((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -66211,7 +66911,14 @@ namespace OpenTK.Graphics
public static
void BeginOcclusionQuery(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBeginOcclusionQueryNV((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "NvOcclusionQuery", Version = "1.2", EntryPoint = "glEndOcclusionQueryNV")]
@@ -68367,7 +69074,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1h(Int32 index, OpenTK.Math.Half x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1hNV((UInt32)index, (OpenTK.Math.Half)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -68501,7 +69215,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2h(Int32 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
}
[System.CLSCompliant(false)]
@@ -68635,7 +69356,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3h(Int32 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
}
[System.CLSCompliant(false)]
@@ -68769,7 +69497,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4h(Int32 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
}
[System.CLSCompliant(false)]
@@ -69485,7 +70220,14 @@ namespace OpenTK.Graphics
public static
void PrimitiveRestartIndex(Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glPrimitiveRestartIndexNV((UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -69507,7 +70249,14 @@ namespace OpenTK.Graphics
public static
void ProgramLocalParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 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
}
[System.CLSCompliant(false)]
@@ -69882,7 +70631,14 @@ namespace OpenTK.Graphics
public static
void ProgramEnvParameterI4(OpenTK.Graphics.NvGpuProgram4 target, Int32 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
}
[System.CLSCompliant(false)]
@@ -71115,7 +71871,14 @@ namespace OpenTK.Graphics
public static
void BindBufferRange(OpenTK.Graphics.NvTransformFeedback target, Int32 index, Int32 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
}
[System.CLSCompliant(false)]
@@ -71137,7 +71900,14 @@ namespace OpenTK.Graphics
public static
void BindBufferOffset(OpenTK.Graphics.NvTransformFeedback target, Int32 index, Int32 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
}
[System.CLSCompliant(false)]
@@ -71159,7 +71929,14 @@ namespace OpenTK.Graphics
public static
void BindBufferBase(OpenTK.Graphics.NvTransformFeedback target, Int32 index, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindBufferBaseNV((OpenTK.Graphics.NvTransformFeedback)target, (UInt32)index, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -71293,7 +72070,14 @@ namespace OpenTK.Graphics
public static
void ActiveVarying(Int32 program, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glActiveVaryingNV((UInt32)program, (String)name);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -71315,7 +72099,14 @@ namespace OpenTK.Graphics
public static
Int32 GetVaryingLocation(Int32 program, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetVaryingLocationNV((UInt32)program, (String)name);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -71577,7 +72368,14 @@ namespace OpenTK.Graphics
public static
void BeginConditionalRender(Int32 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 = "glEndConditionalRenderNV")]
@@ -71613,7 +72411,14 @@ namespace OpenTK.Graphics
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)
{
+ #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
}
[System.CLSCompliant(false)]
@@ -71635,7 +72440,14 @@ namespace OpenTK.Graphics
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)
{
+ #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
}
[System.CLSCompliant(false)]
@@ -72283,7 +73095,14 @@ namespace OpenTK.Graphics
public static
void SampleMaskIndexed(Int32 index, Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glSampleMaskIndexedNV((UInt32)index, (UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -72305,7 +73124,14 @@ namespace OpenTK.Graphics
public static
void TexRenderbuffer(OpenTK.Graphics.TextureTarget target, Int32 renderbuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTexRenderbufferNV((OpenTK.Graphics.TextureTarget)target, (UInt32)renderbuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -72327,7 +73153,14 @@ namespace OpenTK.Graphics
public static
void BindTransformFeedback(OpenTK.Graphics.NvTransformFeedback2 target, Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindTransformFeedbackNV((OpenTK.Graphics.NvTransformFeedback2)target, (UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -72575,7 +73408,14 @@ namespace OpenTK.Graphics
public static
bool IsTransformFeedback(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsTransformFeedbackNV((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "NvTransformFeedback2", Version = "", EntryPoint = "glPauseTransformFeedbackNV")]
@@ -72625,7 +73465,14 @@ namespace OpenTK.Graphics
public static
void DrawTransformFeedback(OpenTK.Graphics.NvTransformFeedback2 mode, Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDrawTransformFeedbackNV((OpenTK.Graphics.NvTransformFeedback2)mode, (UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
}
@@ -79008,7 +79855,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Double x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1dARB((UInt32)index, (Double)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -79170,7 +80024,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Single x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1fARB((UInt32)index, (Single)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -79332,7 +80193,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib1(Int32 index, Int16 x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib1sARB((UInt32)index, (Int16)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -79494,7 +80362,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Double x, Double y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2dARB((UInt32)index, (Double)x, (Double)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -79740,7 +80615,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Single x, Single y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2fARB((UInt32)index, (Single)x, (Single)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -79986,7 +80868,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib2(Int32 index, Int16 x, Int16 y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttrib2sARB((UInt32)index, (Int16)x, (Int16)y);
+ #if DEBUG
+ }
+ #endif
}
@@ -80232,7 +81121,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -80478,7 +81374,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -80724,7 +81627,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib3(Int32 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
}
@@ -81223,7 +82133,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4N(Int32 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
}
[System.CLSCompliant(false)]
@@ -81598,7 +82515,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -81844,7 +82768,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -82286,7 +83217,14 @@ namespace OpenTK.Graphics
public static
void VertexAttrib4(Int32 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
}
@@ -83473,7 +84411,14 @@ namespace OpenTK.Graphics
public static
void EnableVertexAttribArray(Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEnableVertexAttribArrayARB((UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -83495,7 +84440,14 @@ namespace OpenTK.Graphics
public static
void DisableVertexAttribArray(Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDisableVertexAttribArrayARB((UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ArbVertexProgram", Version = "1.3", EntryPoint = "glProgramStringARB")]
@@ -83623,7 +84575,14 @@ namespace OpenTK.Graphics
public static
void BindProgram(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindProgramARB((OpenTK.Graphics.AssemblyProgramTargetArb)target, (UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -83925,7 +84884,14 @@ namespace OpenTK.Graphics
public static
void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 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
}
[System.CLSCompliant(false)]
@@ -84059,7 +85025,14 @@ namespace OpenTK.Graphics
public static
void ProgramEnvParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 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
}
[System.CLSCompliant(false)]
@@ -84193,7 +85166,14 @@ namespace OpenTK.Graphics
public static
void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 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
}
[System.CLSCompliant(false)]
@@ -84327,7 +85307,14 @@ namespace OpenTK.Graphics
public static
void ProgramLocalParameter4(OpenTK.Graphics.AssemblyProgramTargetArb target, Int32 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
}
[System.CLSCompliant(false)]
@@ -86055,7 +87042,14 @@ namespace OpenTK.Graphics
public static
bool IsProgram(Int32 program)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsProgramARB((UInt32)program);
+ #if DEBUG
+ }
+ #endif
}
@@ -86105,7 +87099,14 @@ namespace OpenTK.Graphics
public static
void BindBuffer(OpenTK.Graphics.BufferTargetArb target, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindBufferARB((OpenTK.Graphics.BufferTargetArb)target, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
@@ -86539,7 +87540,14 @@ namespace OpenTK.Graphics
public static
bool IsBuffer(Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsBufferARB((UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
@@ -87856,7 +88864,14 @@ namespace OpenTK.Graphics
public static
bool IsQuery(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsQueryARB((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
@@ -87906,7 +88921,14 @@ namespace OpenTK.Graphics
public static
void BeginQuery(OpenTK.Graphics.ArbOcclusionQuery target, Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBeginQueryARB((OpenTK.Graphics.ArbOcclusionQuery)target, (UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ArbOcclusionQuery", Version = "1.5", EntryPoint = "glEndQueryARB")]
@@ -88341,7 +89363,14 @@ namespace OpenTK.Graphics
public static
void DeleteObject(Int32 obj)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteObjectARB((UInt32)obj);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetHandleARB")]
@@ -88377,7 +89406,14 @@ namespace OpenTK.Graphics
public static
void DetachObject(Int32 containerObj, Int32 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 = "glCreateShaderObjectARB")]
@@ -88687,7 +89723,14 @@ namespace OpenTK.Graphics
public static
void CompileShader(Int32 shaderObj)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glCompileShaderARB((UInt32)shaderObj);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glCreateProgramObjectARB")]
@@ -88723,7 +89766,14 @@ namespace OpenTK.Graphics
public static
void AttachObject(Int32 containerObj, Int32 obj)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glAttachObjectARB((UInt32)containerObj, (UInt32)obj);
+ #if DEBUG
+ }
+ #endif
}
@@ -88763,7 +89813,14 @@ namespace OpenTK.Graphics
public static
void LinkProgram(Int32 programObj)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glLinkProgramARB((UInt32)programObj);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -88785,7 +89842,14 @@ namespace OpenTK.Graphics
public static
void UseProgramObject(Int32 programObj)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUseProgramObjectARB((UInt32)programObj);
+ #if DEBUG
+ }
+ #endif
}
@@ -88825,7 +89889,14 @@ namespace OpenTK.Graphics
public static
void ValidateProgram(Int32 programObj)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glValidateProgramARB((UInt32)programObj);
+ #if DEBUG
+ }
+ #endif
}
@@ -90418,7 +91489,14 @@ namespace OpenTK.Graphics
public static
Int32 GetUniformLocation(Int32 programObj, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetUniformLocationARB((UInt32)programObj, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -91552,7 +92630,14 @@ namespace OpenTK.Graphics
public static
void BindAttribLocation(Int32 programObj, Int32 index, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindAttribLocationARB((UInt32)programObj, (UInt32)index, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -91962,7 +93047,14 @@ namespace OpenTK.Graphics
public static
Int32 GetAttribLocation(Int32 programObj, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetAttribLocationARB((UInt32)programObj, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -92215,7 +93307,14 @@ namespace OpenTK.Graphics
public static
void ProgramParameter(Int32 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
}
[System.CLSCompliant(false)]
@@ -92237,7 +93336,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -92259,7 +93365,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTextureLayer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -92281,7 +93394,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTextureFace(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -92303,7 +93423,14 @@ namespace OpenTK.Graphics
public static
void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTexBufferARB((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.ArbTextureBufferObject)internalformat, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
}
@@ -98063,7 +99190,14 @@ namespace OpenTK.Graphics
public static
void BindTexture(OpenTK.Graphics.TextureTarget target, Int32 texture)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindTextureEXT((OpenTK.Graphics.TextureTarget)target, (UInt32)texture);
+ #if DEBUG
+ }
+ #endif
}
@@ -98497,7 +99631,14 @@ namespace OpenTK.Graphics
public static
bool IsTexture(Int32 texture)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsTextureEXT((UInt32)texture);
+ #if DEBUG
+ }
+ #endif
}
@@ -104536,7 +105677,14 @@ namespace OpenTK.Graphics
public static
void Tangent3(Byte tx, Byte ty, Byte tz)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTangent3bEXT((SByte)tx, (SByte)ty, (SByte)tz);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -104946,7 +106094,14 @@ namespace OpenTK.Graphics
public static
void Binormal3(Byte bx, Byte by, Byte bz)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBinormal3bEXT((SByte)bx, (SByte)by, (SByte)bz);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -105837,7 +106992,14 @@ namespace OpenTK.Graphics
public static
void BindVertexShader(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindVertexShaderEXT((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -105859,7 +107021,14 @@ namespace OpenTK.Graphics
public static
Int32 GenVertexShaders(Int32 range)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGenVertexShadersEXT((UInt32)range);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -105881,7 +107050,14 @@ namespace OpenTK.Graphics
public static
void DeleteVertexShader(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteVertexShaderEXT((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -105903,7 +107079,14 @@ namespace OpenTK.Graphics
public static
void ShaderOp1(OpenTK.Graphics.ExtVertexShader op, Int32 res, Int32 arg1)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glShaderOp1EXT((OpenTK.Graphics.ExtVertexShader)op, (UInt32)res, (UInt32)arg1);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -105925,7 +107108,14 @@ namespace OpenTK.Graphics
public static
void ShaderOp2(OpenTK.Graphics.ExtVertexShader op, Int32 res, Int32 arg1, Int32 arg2)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glShaderOp2EXT((OpenTK.Graphics.ExtVertexShader)op, (UInt32)res, (UInt32)arg1, (UInt32)arg2);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -105947,7 +107137,14 @@ namespace OpenTK.Graphics
public static
void ShaderOp3(OpenTK.Graphics.ExtVertexShader op, Int32 res, Int32 arg1, Int32 arg2, Int32 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
}
[System.CLSCompliant(false)]
@@ -105969,7 +107166,14 @@ namespace OpenTK.Graphics
public static
void Swizzle(Int32 res, Int32 @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
}
[System.CLSCompliant(false)]
@@ -105991,7 +107195,14 @@ namespace OpenTK.Graphics
public static
void WriteMask(Int32 res, Int32 @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
}
[System.CLSCompliant(false)]
@@ -106013,7 +107224,14 @@ namespace OpenTK.Graphics
public static
void InsertComponent(Int32 res, Int32 src, Int32 num)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glInsertComponentEXT((UInt32)res, (UInt32)src, (UInt32)num);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -106035,7 +107253,14 @@ namespace OpenTK.Graphics
public static
void ExtractComponent(Int32 res, Int32 src, Int32 num)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glExtractComponentEXT((UInt32)res, (UInt32)src, (UInt32)num);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -106057,7 +107282,14 @@ namespace OpenTK.Graphics
public static
Int32 GenSymbol(OpenTK.Graphics.ExtVertexShader datatype, OpenTK.Graphics.ExtVertexShader storagetype, OpenTK.Graphics.ExtVertexShader range, Int32 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
}
[System.CLSCompliant(false)]
@@ -107461,7 +108693,14 @@ namespace OpenTK.Graphics
public static
void EnableVariantClientState(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEnableVariantClientStateEXT((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -107483,7 +108722,14 @@ namespace OpenTK.Graphics
public static
void DisableVariantClientState(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDisableVariantClientStateEXT((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ExtVertexShader", Version = "1.2", EntryPoint = "glBindLightParameterEXT")]
@@ -107575,7 +108821,14 @@ namespace OpenTK.Graphics
public static
bool IsVariantEnabled(Int32 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
}
[System.CLSCompliant(false)]
@@ -108896,7 +110149,14 @@ namespace OpenTK.Graphics
public static
bool IsRenderbuffer(Int32 renderbuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsRenderbufferEXT((UInt32)renderbuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -108918,7 +110178,14 @@ namespace OpenTK.Graphics
public static
void BindRenderbuffer(OpenTK.Graphics.RenderbufferTarget target, Int32 renderbuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindRenderbufferEXT((OpenTK.Graphics.RenderbufferTarget)target, (UInt32)renderbuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -109236,7 +110503,14 @@ namespace OpenTK.Graphics
public static
bool IsFramebuffer(Int32 framebuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsFramebufferEXT((UInt32)framebuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -109258,7 +110532,14 @@ namespace OpenTK.Graphics
public static
void BindFramebuffer(OpenTK.Graphics.FramebufferTarget target, Int32 framebuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindFramebufferEXT((OpenTK.Graphics.FramebufferTarget)target, (UInt32)framebuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -109520,7 +110801,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture1D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -109542,7 +110830,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture2D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -109564,7 +110859,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture3D(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -109586,7 +110888,14 @@ namespace OpenTK.Graphics
public static
void FramebufferRenderbuffer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.RenderbufferTarget renderbuffertarget, Int32 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 = "glGetFramebufferAttachmentParameterivEXT")]
@@ -109678,7 +110987,14 @@ namespace OpenTK.Graphics
public static
void StencilClearTag(Int32 stencilTagBits, Int32 stencilClearTag)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glStencilClearTagEXT((Int32)stencilTagBits, (UInt32)stencilClearTag);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ExtFramebufferBlit", Version = "1.5", EntryPoint = "glBlitFramebufferEXT")]
@@ -110180,7 +111496,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTexture(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -110202,7 +111525,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTextureLayer(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -110224,7 +111554,14 @@ namespace OpenTK.Graphics
public static
void FramebufferTextureFace(OpenTK.Graphics.FramebufferTarget target, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -110246,7 +111583,14 @@ namespace OpenTK.Graphics
public static
void ProgramParameter(Int32 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
}
[System.CLSCompliant(false)]
@@ -110268,7 +111612,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI1(Int32 index, Int32 x)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttribI1iEXT((UInt32)index, (Int32)x);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -110290,7 +111641,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI2(Int32 index, Int32 x, Int32 y)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glVertexAttribI2iEXT((UInt32)index, (Int32)x, (Int32)y);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -110312,7 +111670,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI3(Int32 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
}
[System.CLSCompliant(false)]
@@ -110334,7 +111699,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribI4(Int32 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
}
[System.CLSCompliant(false)]
@@ -112047,7 +113419,14 @@ namespace OpenTK.Graphics
public static
void BindFragDataLocation(Int32 program, Int32 color, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindFragDataLocationEXT((UInt32)program, (UInt32)color, (String)name);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -112069,7 +113448,14 @@ namespace OpenTK.Graphics
public static
Int32 GetFragDataLocation(Int32 program, String name)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetFragDataLocationEXT((UInt32)program, (String)name);
+ #if DEBUG
+ }
+ #endif
}
@@ -112119,7 +113505,14 @@ namespace OpenTK.Graphics
public static
void Uniform1(Int32 location, Int32 v0)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUniform1uiEXT((Int32)location, (UInt32)v0);
+ #if DEBUG
+ }
+ #endif
}
@@ -112169,7 +113562,14 @@ namespace OpenTK.Graphics
public static
void Uniform2(Int32 location, Int32 v0, Int32 v1)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUniform2uiEXT((Int32)location, (UInt32)v0, (UInt32)v1);
+ #if DEBUG
+ }
+ #endif
}
@@ -112219,7 +113619,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.glUniform3uiEXT((Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2);
+ #if DEBUG
+ }
+ #endif
}
@@ -112269,7 +113676,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.glUniform4uiEXT((Int32)location, (UInt32)v0, (UInt32)v1, (UInt32)v2, (UInt32)v3);
+ #if DEBUG
+ }
+ #endif
}
@@ -113111,7 +114525,14 @@ namespace OpenTK.Graphics
public static
void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ExtTextureBufferObject internalformat, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTexBufferEXT((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.ExtTextureBufferObject)internalformat, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113133,7 +114554,14 @@ namespace OpenTK.Graphics
public static
void ColorMaskIndexed(Int32 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
}
[System.CLSCompliant(false)]
@@ -113383,7 +114811,14 @@ namespace OpenTK.Graphics
public static
void EnableIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEnableIndexedEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113405,7 +114840,14 @@ namespace OpenTK.Graphics
public static
void DisableIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDisableIndexedEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113427,7 +114869,14 @@ namespace OpenTK.Graphics
public static
bool IsEnabledIndexed(OpenTK.Graphics.ExtDrawBuffers2 target, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsEnabledIndexedEXT((OpenTK.Graphics.ExtDrawBuffers2)target, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113449,7 +114898,14 @@ namespace OpenTK.Graphics
public static
void UniformBuffer(Int32 program, Int32 location, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUniformBufferEXT((UInt32)program, (Int32)location, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113471,7 +114927,14 @@ namespace OpenTK.Graphics
public static
Int32 GetUniformBufferSize(Int32 program, Int32 location)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetUniformBufferSizeEXT((UInt32)program, (Int32)location);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113493,7 +114956,14 @@ namespace OpenTK.Graphics
public static
IntPtr GetUniformOffset(Int32 program, Int32 location)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGetUniformOffsetEXT((UInt32)program, (Int32)location);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "ExtTextureInteger", Version = "2.0", EntryPoint = "glTexParameterIivEXT")]
@@ -113798,7 +115268,14 @@ namespace OpenTK.Graphics
public static
void BindBufferRange(OpenTK.Graphics.ExtTransformFeedback target, Int32 index, Int32 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
}
[System.CLSCompliant(false)]
@@ -113820,7 +115297,14 @@ namespace OpenTK.Graphics
public static
void BindBufferOffset(OpenTK.Graphics.ExtTransformFeedback target, Int32 index, Int32 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
}
[System.CLSCompliant(false)]
@@ -113842,7 +115326,14 @@ namespace OpenTK.Graphics
public static
void BindBufferBase(OpenTK.Graphics.ExtTransformFeedback target, Int32 index, Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindBufferBaseEXT((OpenTK.Graphics.ExtTransformFeedback)target, (UInt32)index, (UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -113864,7 +115355,14 @@ namespace OpenTK.Graphics
public static
void TransformFeedbackVaryings(Int32 program, Int32 count, String varyings, OpenTK.Graphics.ExtTransformFeedback bufferMode)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTransformFeedbackVaryingsEXT((UInt32)program, (Int32)count, (String)varyings, (OpenTK.Graphics.ExtTransformFeedback)bufferMode);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -114634,7 +116132,14 @@ namespace OpenTK.Graphics
public static
void TextureParameter(Int32 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
}
[System.CLSCompliant(false)]
@@ -114768,7 +116273,14 @@ namespace OpenTK.Graphics
public static
void TextureParameter(Int32 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
}
[System.CLSCompliant(false)]
@@ -115770,7 +117282,14 @@ namespace OpenTK.Graphics
public static
void CopyTextureImage1D(Int32 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
}
[System.CLSCompliant(false)]
@@ -115792,7 +117311,14 @@ namespace OpenTK.Graphics
public static
void CopyTextureImage2D(Int32 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
}
[System.CLSCompliant(false)]
@@ -115814,7 +117340,14 @@ namespace OpenTK.Graphics
public static
void CopyTextureSubImage1D(Int32 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
}
[System.CLSCompliant(false)]
@@ -115836,7 +117369,14 @@ namespace OpenTK.Graphics
public static
void CopyTextureSubImage2D(Int32 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
}
[System.CLSCompliant(false)]
@@ -116965,7 +118505,14 @@ namespace OpenTK.Graphics
public static
void CopyTextureSubImage3D(Int32 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 = "glMultiTexParameterfEXT")]
@@ -118161,7 +119708,14 @@ namespace OpenTK.Graphics
public static
void BindMultiTexture(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 texture)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindMultiTextureEXT((OpenTK.Graphics.TextureUnit)texunit, (OpenTK.Graphics.TextureTarget)target, (UInt32)texture);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -118183,7 +119737,14 @@ namespace OpenTK.Graphics
public static
void EnableClientStateIndexed(OpenTK.Graphics.EnableCap array, Int32 index)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glEnableClientStateIndexedEXT((OpenTK.Graphics.EnableCap)array, (UInt32)index);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -118205,7 +119766,14 @@ namespace OpenTK.Graphics
public static
void DisableClientStateIndexed(OpenTK.Graphics.EnableCap array, Int32 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 = "glMultiTexCoordPointerEXT")]
@@ -121881,7 +123449,14 @@ namespace OpenTK.Graphics
public static
void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 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
}
[System.CLSCompliant(false)]
@@ -122015,7 +123590,14 @@ namespace OpenTK.Graphics
public static
void NamedProgramLocalParameter4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 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
}
[System.CLSCompliant(false)]
@@ -122820,7 +124402,14 @@ namespace OpenTK.Graphics
public static
void NamedProgramLocalParameterI4(Int32 program, OpenTK.Graphics.ExtDirectStateAccess target, Int32 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
}
[System.CLSCompliant(false)]
@@ -123934,7 +125523,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform1(Int32 program, Int32 location, Single v0)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glProgramUniform1fEXT((UInt32)program, (Int32)location, (Single)v0);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -123956,7 +125552,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform2(Int32 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
}
[System.CLSCompliant(false)]
@@ -123978,7 +125581,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform3(Int32 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
}
[System.CLSCompliant(false)]
@@ -124000,7 +125610,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform4(Int32 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
}
[System.CLSCompliant(false)]
@@ -124022,7 +125639,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform1(Int32 program, Int32 location, Int32 v0)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glProgramUniform1iEXT((UInt32)program, (Int32)location, (Int32)v0);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -124044,7 +125668,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform2(Int32 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
}
[System.CLSCompliant(false)]
@@ -124066,7 +125697,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform3(Int32 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
}
[System.CLSCompliant(false)]
@@ -124088,7 +125726,14 @@ namespace OpenTK.Graphics
public static
void ProgramUniform4(Int32 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
}
[System.CLSCompliant(false)]
@@ -126766,7 +128411,14 @@ namespace OpenTK.Graphics
public static
bool UnmapNamedBuffer(Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glUnmapNamedBufferEXT((UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -127336,7 +128988,14 @@ namespace OpenTK.Graphics
public static
void TextureBuffer(Int32 texture, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 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
}
[System.CLSCompliant(false)]
@@ -127358,7 +129017,14 @@ namespace OpenTK.Graphics
public static
void MultiTexBuffer(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ExtDirectStateAccess internalformat, Int32 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
}
[System.CLSCompliant(false)]
@@ -127380,7 +129046,14 @@ namespace OpenTK.Graphics
public static
void NamedRenderbufferStorage(Int32 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
}
[System.CLSCompliant(false)]
@@ -127516,7 +129189,14 @@ namespace OpenTK.Graphics
public static
OpenTK.Graphics.ExtDirectStateAccess CheckNamedFramebufferStatus(Int32 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
}
[System.CLSCompliant(false)]
@@ -127538,7 +129218,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferTexture1D(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -127560,7 +129247,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferTexture2D(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -127582,7 +129276,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferTexture3D(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.TextureTarget textarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -127604,7 +129305,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferRenderbuffer(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, OpenTK.Graphics.RenderbufferTarget renderbuffertarget, Int32 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
}
[System.CLSCompliant(false)]
@@ -127740,7 +129448,14 @@ namespace OpenTK.Graphics
public static
void GenerateTextureMipmap(Int32 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 = "glGenerateMultiTexMipmapEXT")]
@@ -127776,7 +129491,14 @@ namespace OpenTK.Graphics
public static
void FramebufferDrawBuffer(Int32 framebuffer, OpenTK.Graphics.DrawBufferMode mode)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glFramebufferDrawBufferEXT((UInt32)framebuffer, (OpenTK.Graphics.DrawBufferMode)mode);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -127910,7 +129632,14 @@ namespace OpenTK.Graphics
public static
void FramebufferReadBuffer(Int32 framebuffer, OpenTK.Graphics.ReadBufferMode mode)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glFramebufferReadBufferEXT((UInt32)framebuffer, (OpenTK.Graphics.ReadBufferMode)mode);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -128046,7 +129775,14 @@ namespace OpenTK.Graphics
public static
void NamedRenderbufferStorageMultisample(Int32 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
}
[System.CLSCompliant(false)]
@@ -128068,7 +129804,14 @@ namespace OpenTK.Graphics
public static
void NamedRenderbufferStorageMultisampleCoverage(Int32 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
}
[System.CLSCompliant(false)]
@@ -128090,7 +129833,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferTexture(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -128112,7 +129862,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferTextureLayer(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -128134,7 +129891,14 @@ namespace OpenTK.Graphics
public static
void NamedFramebufferTextureFace(Int32 framebuffer, OpenTK.Graphics.FramebufferAttachment attachment, Int32 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
}
[System.CLSCompliant(false)]
@@ -128156,7 +129920,14 @@ namespace OpenTK.Graphics
public static
void TextureRenderbuffer(Int32 texture, OpenTK.Graphics.TextureTarget target, Int32 renderbuffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTextureRenderbufferEXT((UInt32)texture, (OpenTK.Graphics.TextureTarget)target, (UInt32)renderbuffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -128178,7 +129949,14 @@ namespace OpenTK.Graphics
public static
void MultiTexRenderbuffer(OpenTK.Graphics.TextureUnit texunit, OpenTK.Graphics.TextureTarget target, Int32 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 = "ExtProvokingVertex", Version = "2.1", EntryPoint = "glProvokingVertexEXT")]
@@ -130711,7 +132489,14 @@ namespace OpenTK.Graphics
public static
void Deform(Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeformSGIX((UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -130733,7 +132518,14 @@ namespace OpenTK.Graphics
public static
void LoadIdentityDeformationMap(Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glLoadIdentityDeformationMapSGIX((UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "SgixReferencePlane", Version = "1.0", EntryPoint = "glReferencePlaneSGIX")]
@@ -131052,7 +132844,14 @@ namespace OpenTK.Graphics
public static
void ListParameter(Int32 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
}
[System.CLSCompliant(false)]
@@ -131186,7 +132985,14 @@ namespace OpenTK.Graphics
public static
void ListParameter(Int32 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
}
[System.CLSCompliant(false)]
@@ -131986,7 +133792,14 @@ namespace OpenTK.Graphics
public static
void AsyncMarker(Int32 marker)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glAsyncMarkerSGIX((UInt32)marker);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -132254,7 +134067,14 @@ namespace OpenTK.Graphics
public static
void DeleteAsyncMarkers(Int32 marker, Int32 range)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteAsyncMarkersSGIX((UInt32)marker, (Int32)range);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -132276,7 +134096,14 @@ namespace OpenTK.Graphics
public static
bool IsAsyncMarker(Int32 marker)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsAsyncMarkerSGIX((UInt32)marker);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "SgixIglooInterface", Version = "1.0", EntryPoint = "glIglooInterfaceSGIX")]
@@ -133680,7 +135507,14 @@ namespace OpenTK.Graphics
public static
void GlobalAlphaFactor(Int16 factor)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glGlobalAlphaFactorusSUN((UInt16)factor);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -133717,7 +135551,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCode(Int32 code)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glReplacementCodeuiSUN((UInt32)code);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -133739,7 +135580,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCode(Int16 code)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glReplacementCodeusSUN((UInt16)code);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "SunTriangleList", Version = "1.1", EntryPoint = "glReplacementCodeubSUN")]
@@ -135028,7 +136876,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -135166,7 +137021,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiColor4ubVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -135308,7 +137170,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiColor3fVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -135450,7 +137319,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiNormal3fVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -135592,7 +137468,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiColor4fNormal3fVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -135738,7 +137621,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiTexCoord2fVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -135880,7 +137770,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiTexCoord2fNormal3fVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -136026,7 +137923,14 @@ namespace OpenTK.Graphics
public static
void ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3(Int32 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
}
[System.CLSCompliant(false)]
@@ -138767,7 +140671,14 @@ namespace OpenTK.Graphics
public static
void TbufferMask(Int32 mask)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glTbufferMask3DFX((UInt32)mask);
+ #if DEBUG
+ }
+ #endif
}
}
@@ -139015,7 +140926,14 @@ namespace OpenTK.Graphics
public static
Int32 GenFragmentShaders(Int32 range)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glGenFragmentShadersATI((UInt32)range);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -139037,7 +140955,14 @@ namespace OpenTK.Graphics
public static
void BindFragmentShader(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindFragmentShaderATI((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -139059,7 +140984,14 @@ namespace OpenTK.Graphics
public static
void DeleteFragmentShader(Int32 id)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glDeleteFragmentShaderATI((UInt32)id);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "AtiFragmentShader", Version = "1.2", EntryPoint = "glBeginFragmentShaderATI")]
@@ -139109,7 +141041,14 @@ namespace OpenTK.Graphics
public static
void PassTexCoor(Int32 dst, Int32 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
}
[System.CLSCompliant(false)]
@@ -139131,7 +141070,14 @@ namespace OpenTK.Graphics
public static
void SampleMap(Int32 dst, Int32 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
}
[System.CLSCompliant(false)]
@@ -139153,7 +141099,14 @@ namespace OpenTK.Graphics
public static
void ColorFragmentOp1(OpenTK.Graphics.AtiFragmentShader op, Int32 dst, Int32 dstMask, Int32 dstMod, Int32 arg1, Int32 arg1Rep, Int32 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
}
[System.CLSCompliant(false)]
@@ -139175,7 +141128,14 @@ namespace OpenTK.Graphics
public static
void ColorFragmentOp2(OpenTK.Graphics.AtiFragmentShader op, Int32 dst, Int32 dstMask, Int32 dstMod, Int32 arg1, Int32 arg1Rep, Int32 arg1Mod, Int32 arg2, Int32 arg2Rep, Int32 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
}
[System.CLSCompliant(false)]
@@ -139197,7 +141157,14 @@ namespace OpenTK.Graphics
public static
void ColorFragmentOp3(OpenTK.Graphics.AtiFragmentShader op, Int32 dst, Int32 dstMask, Int32 dstMod, Int32 arg1, Int32 arg1Rep, Int32 arg1Mod, Int32 arg2, Int32 arg2Rep, Int32 arg2Mod, Int32 arg3, Int32 arg3Rep, Int32 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
}
[System.CLSCompliant(false)]
@@ -139219,7 +141186,14 @@ namespace OpenTK.Graphics
public static
void AlphaFragmentOp1(OpenTK.Graphics.AtiFragmentShader op, Int32 dst, Int32 dstMod, Int32 arg1, Int32 arg1Rep, Int32 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
}
[System.CLSCompliant(false)]
@@ -139241,7 +141215,14 @@ namespace OpenTK.Graphics
public static
void AlphaFragmentOp2(OpenTK.Graphics.AtiFragmentShader op, Int32 dst, Int32 dstMod, Int32 arg1, Int32 arg1Rep, Int32 arg1Mod, Int32 arg2, Int32 arg2Rep, Int32 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
}
[System.CLSCompliant(false)]
@@ -139263,7 +141244,14 @@ namespace OpenTK.Graphics
public static
void AlphaFragmentOp3(OpenTK.Graphics.AtiFragmentShader op, Int32 dst, Int32 dstMod, Int32 arg1, Int32 arg1Rep, Int32 arg1Mod, Int32 arg2, Int32 arg2Rep, Int32 arg2Mod, Int32 arg3, Int32 arg3Rep, Int32 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
}
[System.CLSCompliant(false)]
@@ -139531,7 +141519,14 @@ namespace OpenTK.Graphics
public static
bool IsObjectBuffer(Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsObjectBufferATI((UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -139998,7 +141993,14 @@ namespace OpenTK.Graphics
public static
void FreeObjectBuffer(Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glFreeObjectBufferATI((UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -140020,7 +142022,14 @@ namespace OpenTK.Graphics
public static
void ArrayObject(OpenTK.Graphics.EnableCap array, Int32 size, OpenTK.Graphics.AtiVertexArrayObject type, Int32 stride, Int32 buffer, Int32 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 = "glGetArrayObjectfvATI")]
@@ -140154,7 +142163,14 @@ namespace OpenTK.Graphics
public static
void VariantArrayObject(Int32 id, OpenTK.Graphics.AtiVertexArrayObject type, Int32 stride, Int32 buffer, Int32 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
}
[System.CLSCompliant(false)]
@@ -141508,7 +143524,14 @@ namespace OpenTK.Graphics
public static
void NormalStream3(OpenTK.Graphics.AtiVertexStreams stream, Byte nx, Byte ny, Byte nz)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glNormalStream3bATI((OpenTK.Graphics.AtiVertexStreams)stream, (SByte)nx, (SByte)ny, (SByte)nz);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -142080,7 +144103,14 @@ namespace OpenTK.Graphics
public static
void DrawRangeElementArray(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 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
}
@@ -142229,7 +144259,14 @@ namespace OpenTK.Graphics
public static
void UnmapObjectBuffer(Int32 buffer)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glUnmapObjectBufferATI((UInt32)buffer);
+ #if DEBUG
+ }
+ #endif
}
@@ -142337,7 +144374,14 @@ namespace OpenTK.Graphics
public static
void StencilFuncSeparate(OpenTK.Graphics.StencilFunction frontfunc, OpenTK.Graphics.StencilFunction backfunc, Int32 @ref, Int32 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
}
[System.CLSCompliant(false)]
@@ -142359,7 +144403,14 @@ namespace OpenTK.Graphics
public static
void VertexAttribArrayObject(Int32 index, Int32 size, OpenTK.Graphics.AtiVertexAttribArrayObject type, bool normalized, Int32 stride, Int32 buffer, Int32 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
}
[System.CLSCompliant(false)]
@@ -142733,7 +144784,14 @@ namespace OpenTK.Graphics
public static
void DrawRangeElementArray(OpenTK.Graphics.BeginMode mode, Int32 start, Int32 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 = "glMultiDrawElementArrayAPPLE")]
@@ -143154,7 +145212,14 @@ namespace OpenTK.Graphics
public static
void SetFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glSetFenceAPPLE((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -143176,7 +145241,14 @@ namespace OpenTK.Graphics
public static
bool IsFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsFenceAPPLE((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -143198,7 +145270,14 @@ namespace OpenTK.Graphics
public static
bool TestFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glTestFenceAPPLE((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -143220,7 +145299,14 @@ namespace OpenTK.Graphics
public static
void FinishFence(Int32 fence)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glFinishFenceAPPLE((UInt32)fence);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -143242,7 +145328,14 @@ namespace OpenTK.Graphics
public static
bool TestObject(OpenTK.Graphics.AppleFence @object, Int32 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 = "glFinishObjectAPPLE")]
@@ -143278,7 +145371,14 @@ namespace OpenTK.Graphics
public static
void BindVertexArray(Int32 array)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
Delegates.glBindVertexArrayAPPLE((UInt32)array);
+ #if DEBUG
+ }
+ #endif
}
[System.CLSCompliant(false)]
@@ -143526,7 +145626,14 @@ namespace OpenTK.Graphics
public static
bool IsVertexArray(Int32 array)
{
+ #if DEBUG
+ using (new ErrorHelper(GraphicsContext.CurrentContext))
+ {
+ #endif
return Delegates.glIsVertexArrayAPPLE((UInt32)array);
+ #if DEBUG
+ }
+ #endif
}
[AutoGenerated(Category = "AppleVertexArrayRange", Version = "1.2", EntryPoint = "glVertexArrayRangeAPPLE")]
diff --git a/Source/OpenTK/Graphics/GL/GLHelper.cs b/Source/OpenTK/Graphics/GL/GLHelper.cs
index 81a8ed18..25098808 100644
--- a/Source/OpenTK/Graphics/GL/GLHelper.cs
+++ b/Source/OpenTK/Graphics/GL/GLHelper.cs
@@ -107,7 +107,7 @@ namespace OpenTK.Graphics
#endregion
- #region --- Public Methods ---
+ #region --- Public Members ---
#region public static bool SupportsExtension(string name)
diff --git a/Source/OpenTK/Graphics/GraphicsContext.cs b/Source/OpenTK/Graphics/GraphicsContext.cs
index 2e642eac..49891f3b 100644
--- a/Source/OpenTK/Graphics/GraphicsContext.cs
+++ b/Source/OpenTK/Graphics/GraphicsContext.cs
@@ -28,7 +28,8 @@ namespace OpenTK.Graphics
// Indicates that this context was created through external means, e.g. Tao.Sdl or GLWidget#.
// In this case, We'll assume that the external program will manage the lifetime of this
// context - we'll not destroy it manually.
- bool is_external;
+ //bool is_external;
+ bool check_errors = true;
static bool share_contexts = true;
static bool direct_rendering = true;
@@ -132,7 +133,6 @@ namespace OpenTK.Graphics
public static GraphicsContext CreateDummyContext()
{
GraphicsContext context = new GraphicsContext();
- context.is_external = true;
context.implementation = new OpenTK.Platform.Dummy.DummyGLContext(GraphicsMode.Default);
lock (context_lock)
@@ -245,7 +245,7 @@ namespace OpenTK.Graphics
[Conditional("DEBUG")]
internal void ResetErrors()
{
- if (!inside_begin_region)
+ if (check_errors && !inside_begin_region)
{
while (GL.GetError() != ErrorCode.NoError)
{ }
@@ -256,7 +256,7 @@ namespace OpenTK.Graphics
[Conditional("DEBUG")]
internal void CheckErrors()
{
- if (!inside_begin_region)
+ if (check_errors && !inside_begin_region)
{
error_list.Clear();
ErrorCode error;
@@ -271,13 +271,20 @@ namespace OpenTK.Graphics
StringBuilder sb = new StringBuilder();
foreach (ErrorCode e in error_list)
{
- sb.Append(e.ToString());
- sb.Append(", ");
+ if (e != ErrorCode.NoError)
+ {
+ sb.Append(e.ToString());
+ sb.Append(", ");
+ }
+ else
+ break;
}
- sb.Remove(sb.Length - 2, 2);
+ sb.Remove(sb.Length - 2, 2); // Remove the last comma
- Debug.Assert(error_list.Count == 1, "OpenTK detected an OpenGL error.",
- String.Format("The following errors where reported: \"{0}\"", sb.ToString()));
+ Debug.Print(String.Format("OpenGL error(s) detected: {0}", sb.ToString()));
+ Debug.Indent();
+ Debug.WriteLine(new StackTrace(true).ToString());
+ Debug.Unindent();
}
}
}
@@ -305,6 +312,17 @@ namespace OpenTK.Graphics
#region --- IGraphicsContext Members ---
+ ///
+ /// Gets or sets a System.Boolean, indicating whether automatic error checking should be performed.
+ /// Influences the debug version of OpenTK.dll, only.
+ ///
+ /// Automatic error checking will clear the OpenGL error state. Set CheckErrors to false if you use
+ /// the OpenGL error state in your code flow (e.g. for checking supported texture formats).
+ public bool ErrorChecking
+ {
+ get { return check_errors; }
+ set { check_errors = value; }
+ }
///
/// Creates an OpenGL context with the specified direct/indirect rendering mode and sharing state with the
/// specified IGraphicsContext.
@@ -485,7 +503,7 @@ namespace OpenTK.Graphics
available_contexts.Remove((this as IGraphicsContextInternal).Context);
}
- if (manual && !is_external)
+ if (manual)
{
if (implementation != null)
implementation.Dispose();
diff --git a/Source/OpenTK/Graphics/IGraphicsContext.cs b/Source/OpenTK/Graphics/IGraphicsContext.cs
index b71b2501..8c68404d 100644
--- a/Source/OpenTK/Graphics/IGraphicsContext.cs
+++ b/Source/OpenTK/Graphics/IGraphicsContext.cs
@@ -54,6 +54,12 @@ namespace OpenTK.Graphics
/// Gets the GraphicsMode of this instance.
GraphicsMode GraphicsMode { get; }
+
+ ///
+ /// Gets or sets a System.Boolean, indicating whether automatic error checking should be performed.
+ /// Influences the debug version of OpenTK.dll, only.
+ ///
+ bool ErrorChecking { get; set; }
}
public delegate void DestroyEvent(T sender, EventArgs e);
diff --git a/Source/OpenTK/Platform/Dummy/DummyGLContext.cs b/Source/OpenTK/Platform/Dummy/DummyGLContext.cs
index 694006e5..4106fc99 100644
--- a/Source/OpenTK/Platform/Dummy/DummyGLContext.cs
+++ b/Source/OpenTK/Platform/Dummy/DummyGLContext.cs
@@ -71,6 +71,12 @@ namespace OpenTK.Platform.Dummy
{
}
+ public bool ErrorChecking
+ {
+ get { throw new NotImplementedException(); }
+ set { throw new NotImplementedException(); }
+ }
+
#endregion
#region --- IDisposable Members ---
diff --git a/Source/OpenTK/Platform/MacOS/AglContext.cs b/Source/OpenTK/Platform/MacOS/AglContext.cs
index eedae368..89243ea3 100644
--- a/Source/OpenTK/Platform/MacOS/AglContext.cs
+++ b/Source/OpenTK/Platform/MacOS/AglContext.cs
@@ -338,6 +338,12 @@ namespace OpenTK.Platform.MacOS
get { return graphics_mode; }
}
+ public bool ErrorChecking
+ {
+ get { throw new NotImplementedException(); }
+ set { throw new NotImplementedException(); }
+ }
+
#endregion
#region IDisposable Members
diff --git a/Source/OpenTK/Platform/Windows/WinGLContext.cs b/Source/OpenTK/Platform/Windows/WinGLContext.cs
index d1f04766..22aa7ed8 100644
--- a/Source/OpenTK/Platform/Windows/WinGLContext.cs
+++ b/Source/OpenTK/Platform/Windows/WinGLContext.cs
@@ -230,6 +230,12 @@ namespace OpenTK.Platform.Windows
#endregion
+ public bool ErrorChecking
+ {
+ get { throw new NotImplementedException(); }
+ set { throw new NotImplementedException(); }
+ }
+
public event DestroyEvent Destroy;
#endregion
diff --git a/Source/OpenTK/Platform/X11/X11GLContext.cs b/Source/OpenTK/Platform/X11/X11GLContext.cs
index 7a321630..708ca6a9 100644
--- a/Source/OpenTK/Platform/X11/X11GLContext.cs
+++ b/Source/OpenTK/Platform/X11/X11GLContext.cs
@@ -301,6 +301,12 @@ namespace OpenTK.Platform.X11
throw new NotSupportedException("Use OpenTK.GraphicsContext instead.");
}
+ public bool ErrorChecking
+ {
+ get { throw new NotImplementedException(); }
+ set { throw new NotImplementedException(); }
+ }
+
#endregion
#region --- IGLContextInternal Members ---