From ef911ad7d855d6ad2211af4b8a2140735e169d6c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 21:01:29 +0000 Subject: [PATCH 01/18] Created es20 branch for type-safe ES 2.0 bindings. From f8c49a54d436d6a79e4349e234472287ec343b87 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 21:24:54 +0000 Subject: [PATCH 02/18] Merged first part of ES 2.0 cleanup (issue [#1013]: "[ES 2.0] Cleanup #1"). --- Source/Bind/Specifications/ES20/overrides.xml | 396 ++++++++++++++++++ 1 file changed, 396 insertions(+) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 600cc3e7..b537a52e 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -1,17 +1,413 @@  + + String + String* + out + out + + + + BlendMode + + + + BlendMode + BlendMode + + + + BlendFactor + BlendFactor + + + + BlendFactor + BlendFactor + BlendFactor + BlendFactor + + + + BufferTarget + + + + BufferTarget + BufferUsage + + + + BufferTarget + + + + VertexAttribType + + + + HintTarget + HintMode + + + + StencilFunction + + + + CullFaceMode + StencilFunction + + + + CullFaceMode + + + + StencilOperation + StencilOperation + StencilOperation + + + + CullFaceMode + StencilOperation + StencilOperation + StencilOperation + + + + BufferTarget + GetBufferPName + + + + ClearBufferMask + + + + ShaderType + + + + ShaderType + ShaderPrecision + + + + CullFaceMode + + + + DepthFunction + + + + PrimitiveMode + + + + PrimitiveMode + DrawElementsType + + + + EnableCap + + + + EnableCap + + + + EnableCap + + + + + FrontFaceDirection + + + + ActiveAttribType + + + + ActiveUniformType + + + + + + + + ProgramPName + + + + ShaderPName + + + + StringName + + + + VertexArray + + + + VertexPointer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 8e67b0ace22978634c23a44d562e688019a42da3 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 21:34:34 +0000 Subject: [PATCH 03/18] Merged second part of ES 2.0 cleanup (issue [#1014]: "[ES 2.0] Cleanup #2"). --- Source/Bind/Specifications/ES20/overrides.xml | 263 +++++++++++++++++- 1 file changed, 262 insertions(+), 1 deletion(-) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index b537a52e..ba5064f7 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -173,9 +173,114 @@ VertexPointer + + TextureUnit + + + + BindTextureTarget + + + + BindTextureTarget + + + + BindTextureTarget + TexturePName + + + + BindTextureTarget + TexturePName + + + + TextureTarget + PixelInternalFormat + PixelFormat + PixelType + + + + TextureTarget + PixelFormat + PixelType + + + + TextureTarget + PixelInternalFormat + + + + TextureTarget + + + + TextureTarget + PixelInternalFormat + + + + TextureTarget + + + + PixelFormat + PixelType + + + + + FramebufferTarget + + + + FramebufferTarget + + + + RenderbufferTarget + + + + RenderbufferTarget + RenderbufferInternalFormat + + + + RenderbufferTarget + GetRenderbufferPName + + + + FramebufferTarget + FramebufferSlot + RenderbufferTarget + + + + FramebufferTarget + FramebufferSlot + TextureTarget + + + + FramebufferTarget + FramebufferSlot + FramebufferAttachmentParameter + + + + PixelStorePName + PixelStoreParameter + + + @@ -397,7 +502,7 @@ - + @@ -408,6 +513,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 8da604c18f4ddbcff71d1580f10dee0941018c06 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 21:41:30 +0000 Subject: [PATCH 04/18] Merged third part of ES 2.0 cleanup (issue [#1015]: "[ES 2.0] Cleanup #3"). --- Source/Bind/Specifications/ES20/overrides.xml | 109 +++++++++++++++++- 1 file changed, 108 insertions(+), 1 deletion(-) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index ba5064f7..78032f1c 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -136,7 +136,6 @@ EnableCap - FrontFaceDirection @@ -276,6 +275,18 @@ PixelStorePName PixelStoreParameter + + + GetBooleanPName + + + + GetFloatPName + + + + GetIntegerPName + @@ -669,6 +680,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From d06191d464c3da900cca24949bec8ca07bf656cc Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 21:49:11 +0000 Subject: [PATCH 05/18] Regenerated ES 2.0 bindings using the new, strongly-typed enums. Fixed sample to use those new enums. --- .../Examples/OpenGLES/2.0/SimpleWindow20.cs | 4 +- Source/OpenTK/Graphics/ES20/Core.cs | 122 +-- Source/OpenTK/Graphics/ES20/Delegates.cs | 122 +-- Source/OpenTK/Graphics/ES20/ES.cs | 720 +++++++++--------- Source/OpenTK/Graphics/ES20/Enums.cs | 375 +++++++++ 5 files changed, 847 insertions(+), 496 deletions(-) diff --git a/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs b/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs index e328bc5b..e91b888b 100644 --- a/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs +++ b/Source/Examples/OpenGLES/2.0/SimpleWindow20.cs @@ -60,7 +60,7 @@ namespace Examples.Tutorial Color color = Color.MidnightBlue; GL.ClearColor(color.R, color.G, color.B, color.A); - GL.Enable((All)EnableCap.DepthTest); + GL.Enable(EnableCap.DepthTest); } #endregion @@ -108,7 +108,7 @@ namespace Examples.Tutorial /// protected override void OnRenderFrame(FrameEventArgs e) { - GL.Clear((uint)(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit)); + GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit); this.SwapBuffers(); } diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index c1fbda1a..98764038 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -40,7 +40,7 @@ namespace OpenTK.Graphics.ES20 [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] - internal extern static void ActiveTexture(OpenTK.Graphics.ES20.All texture); + internal extern static void ActiveTexture(OpenTK.Graphics.ES20.TextureUnit texture); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAttachShader", ExactSpelling = true)] internal extern static void AttachShader(UInt32 program, UInt32 shader); @@ -52,43 +52,43 @@ namespace OpenTK.Graphics.ES20 internal extern static void BindAttribLocation(UInt32 program, UInt32 index, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindBuffer", ExactSpelling = true)] - internal extern static void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer); + internal extern static void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, UInt32 buffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindFramebuffer", ExactSpelling = true)] - internal extern static void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer); + internal extern static void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, UInt32 framebuffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindRenderbuffer", ExactSpelling = true)] - internal extern static void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer); + internal extern static void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] - internal extern static void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture); + internal extern static void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, UInt32 texture); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendColor", ExactSpelling = true)] internal extern static void BlendColor(Single red, Single green, Single blue, Single alpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquation", ExactSpelling = true)] - internal extern static void BlendEquation(OpenTK.Graphics.ES20.All mode); + internal extern static void BlendEquation(OpenTK.Graphics.ES20.BlendMode mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)] - internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha); + internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendMode modeRGB, OpenTK.Graphics.ES20.BlendMode modeAlpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] - internal extern static void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor); + internal extern static void BlendFunc(OpenTK.Graphics.ES20.BlendFactor sfactor, OpenTK.Graphics.ES20.BlendFactor dfactor); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)] - internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha); + internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendFactor srcRGB, OpenTK.Graphics.ES20.BlendFactor dstRGB, OpenTK.Graphics.ES20.BlendFactor srcAlpha, OpenTK.Graphics.ES20.BlendFactor dstAlpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)] - internal extern static void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage); + internal extern static void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferSubData", ExactSpelling = true)] - internal extern static void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data); + internal extern static void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCheckFramebufferStatus", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target); + internal extern static OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClear", ExactSpelling = true)] - internal extern static void Clear(UInt32 mask); + internal extern static void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColor", ExactSpelling = true)] internal extern static void ClearColor(Single red, Single green, Single blue, Single alpha); @@ -106,22 +106,22 @@ namespace OpenTK.Graphics.ES20 internal extern static void CompileShader(UInt32 shader); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] - internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage3DOES", ExactSpelling = true)] internal extern static void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] - internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage3DOES", ExactSpelling = true)] internal extern static void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] - internal extern static void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + internal extern static void CopyTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] - internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage3DOES", ExactSpelling = true)] internal extern static void CopyTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height); @@ -130,10 +130,10 @@ namespace OpenTK.Graphics.ES20 internal extern static Int32 CreateProgram(); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCreateShader", ExactSpelling = true)] - internal extern static Int32 CreateShader(OpenTK.Graphics.ES20.All type); + internal extern static Int32 CreateShader(OpenTK.Graphics.ES20.ShaderType type); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCullFace", ExactSpelling = true)] - internal extern static void CullFace(OpenTK.Graphics.ES20.All mode); + internal extern static void CullFace(OpenTK.Graphics.ES20.CullFaceMode mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteBuffers", ExactSpelling = true)] internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers); @@ -160,7 +160,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void DeleteTextures(Int32 n, UInt32* textures); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] - internal extern static void DepthFunc(OpenTK.Graphics.ES20.All func); + internal extern static void DepthFunc(OpenTK.Graphics.ES20.DepthFunction func); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] internal extern static void DepthMask(bool flag); @@ -172,7 +172,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void DetachShader(UInt32 program, UInt32 shader); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisable", ExactSpelling = true)] - internal extern static void Disable(OpenTK.Graphics.ES20.All cap); + internal extern static void Disable(OpenTK.Graphics.ES20.EnableCap cap); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableDriverControlQCOM", ExactSpelling = true)] internal extern static void DisableDriverControlQCOM(UInt32 driverControl); @@ -181,10 +181,10 @@ namespace OpenTK.Graphics.ES20 internal extern static void DisableVertexAttribArray(UInt32 index); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] - internal extern static void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count); + internal extern static void DrawArrays(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 first, Int32 count); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] - internal extern static void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices); + internal extern static void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)] internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image); @@ -193,7 +193,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)] - internal extern static void Enable(OpenTK.Graphics.ES20.All cap); + internal extern static void Enable(OpenTK.Graphics.ES20.EnableCap cap); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableDriverControlQCOM", ExactSpelling = true)] internal extern static void EnableDriverControlQCOM(UInt32 driverControl); @@ -214,22 +214,22 @@ namespace OpenTK.Graphics.ES20 internal extern static void Flush(); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)] - internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer); + internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)] - internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level); + internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, UInt32 texture, Int32 level); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture3DOES", ExactSpelling = true)] internal extern static void FramebufferTexture3DOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] - internal extern static void FrontFace(OpenTK.Graphics.ES20.All mode); + internal extern static void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)] internal extern static unsafe void GenBuffers(Int32 n, UInt32* buffers); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerateMipmap", ExactSpelling = true)] - internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.All target); + internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.BindTextureTarget target); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)] internal extern static unsafe void GenFencesNV(Int32 n, UInt32* fences); @@ -247,10 +247,10 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GenTextures(Int32 n, UInt32* textures); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] - internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders); @@ -259,10 +259,10 @@ namespace OpenTK.Graphics.ES20 internal extern static int GetAttribLocation(UInt32 program, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] - internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.All pname, bool* @params); + internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.GetBooleanPName pname, bool* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferPointervOES", ExactSpelling = true)] internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params); @@ -280,13 +280,13 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetFenceivNV(UInt32 fence, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] - internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params); + internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.GetFloatPName pname, Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] - internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterDataAMD", ExactSpelling = true)] internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten); @@ -313,19 +313,19 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)] - internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)] - internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] - internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision); + internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32* range, Int32* precision); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source); @@ -334,10 +334,10 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.All name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformfv", ExactSpelling = true)] internal extern static unsafe void GetUniformfv(UInt32 program, Int32 location, Single* @params); @@ -349,22 +349,22 @@ namespace OpenTK.Graphics.ES20 internal extern static int GetUniformLocation(UInt32 program, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)] - internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params); + internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribiv", ExactSpelling = true)] - internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] - internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer); + internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] - internal extern static void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode); + internal extern static void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsBuffer", ExactSpelling = true)] internal extern static bool IsBuffer(UInt32 buffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsEnabled", ExactSpelling = true)] - internal extern static bool IsEnabled(OpenTK.Graphics.ES20.All cap); + internal extern static bool IsEnabled(OpenTK.Graphics.ES20.EnableCap cap); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)] internal extern static bool IsFenceNV(UInt32 fence); @@ -394,7 +394,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] - internal extern static void PixelStorei(OpenTK.Graphics.ES20.All pname, Int32 param); + internal extern static void PixelStorei(OpenTK.Graphics.ES20.PixelStorePName pname, OpenTK.Graphics.ES20.PixelStoreParameter param); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] internal extern static void PolygonOffset(Single factor, Single units); @@ -403,13 +403,13 @@ namespace OpenTK.Graphics.ES20 internal extern static void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] - internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReleaseShaderCompiler", ExactSpelling = true)] internal extern static void ReleaseShaderCompiler(); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRenderbufferStorage", ExactSpelling = true)] - internal extern static void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height); + internal extern static void RenderbufferStorage(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferInternalFormat internalformat, Int32 width, Int32 height); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] internal extern static void SampleCoverage(Single value, bool invert); @@ -430,46 +430,46 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] - internal extern static void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + internal extern static void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)] - internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] internal extern static void StencilMask(UInt32 mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)] - internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask); + internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] - internal extern static void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + internal extern static void StencilOp(OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] - internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] internal extern static bool TestFenceNV(UInt32 fence); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] - internal extern static void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal extern static void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage3DOES", ExactSpelling = true)] internal extern static void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] - internal extern static void TexParameterf(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param); + internal extern static void TexParameterf(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single param); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)] - internal extern static void TexParameteri(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param); + internal extern static void TexParameteri(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32 param); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] - internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage3DOES", ExactSpelling = true)] internal extern static void TexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); @@ -565,7 +565,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void VertexAttrib4fv(UInt32 indx, Single* values); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttribPointer", ExactSpelling = true)] - internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr); + internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glViewport", ExactSpelling = true)] internal extern static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 935e895b..08ae1099 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -38,7 +38,7 @@ namespace OpenTK.Graphics.ES20 internal static partial class Delegates { [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ActiveTexture(OpenTK.Graphics.ES20.All texture); + internal delegate void ActiveTexture(OpenTK.Graphics.ES20.TextureUnit texture); internal static ActiveTexture glActiveTexture; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void AttachShader(UInt32 program, UInt32 shader); @@ -50,43 +50,43 @@ namespace OpenTK.Graphics.ES20 internal delegate void BindAttribLocation(UInt32 program, UInt32 index, String name); internal static BindAttribLocation glBindAttribLocation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer); + internal delegate void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, UInt32 buffer); internal static BindBuffer glBindBuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer); + internal delegate void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, UInt32 framebuffer); internal static BindFramebuffer glBindFramebuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer); + internal delegate void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer); internal static BindRenderbuffer glBindRenderbuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture); + internal delegate void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, UInt32 texture); internal static BindTexture glBindTexture; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BlendColor(Single red, Single green, Single blue, Single alpha); internal static BlendColor glBlendColor; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquation(OpenTK.Graphics.ES20.All mode); + internal delegate void BlendEquation(OpenTK.Graphics.ES20.BlendMode mode); internal static BlendEquation glBlendEquation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha); + internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendMode modeRGB, OpenTK.Graphics.ES20.BlendMode modeAlpha); internal static BlendEquationSeparate glBlendEquationSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor); + internal delegate void BlendFunc(OpenTK.Graphics.ES20.BlendFactor sfactor, OpenTK.Graphics.ES20.BlendFactor dfactor); internal static BlendFunc glBlendFunc; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha); + internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendFactor srcRGB, OpenTK.Graphics.ES20.BlendFactor dstRGB, OpenTK.Graphics.ES20.BlendFactor srcAlpha, OpenTK.Graphics.ES20.BlendFactor dstAlpha); internal static BlendFuncSeparate glBlendFuncSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage); + internal delegate void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); internal static BufferData glBufferData; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data); + internal delegate void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data); internal static BufferSubData glBufferSubData; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target); + internal delegate OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target); internal static CheckFramebufferStatus glCheckFramebufferStatus; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Clear(UInt32 mask); + internal delegate void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask); internal static Clear glClear; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ClearColor(Single red, Single green, Single blue, Single alpha); @@ -104,22 +104,22 @@ namespace OpenTK.Graphics.ES20 internal delegate void CompileShader(UInt32 shader); internal static CompileShader glCompileShader; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); internal static CompressedTexImage2D glCompressedTexImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data); internal static CompressedTexImage3DOES glCompressedTexImage3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); internal static CompressedTexSubImage2D glCompressedTexSubImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); internal static CompressedTexSubImage3DOES glCompressedTexSubImage3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + internal delegate void CopyTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); internal static CopyTexImage2D glCopyTexImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); internal static CopyTexSubImage2D glCopyTexSubImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void CopyTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height); @@ -128,10 +128,10 @@ namespace OpenTK.Graphics.ES20 internal delegate Int32 CreateProgram(); internal static CreateProgram glCreateProgram; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate Int32 CreateShader(OpenTK.Graphics.ES20.All type); + internal delegate Int32 CreateShader(OpenTK.Graphics.ES20.ShaderType type); internal static CreateShader glCreateShader; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CullFace(OpenTK.Graphics.ES20.All mode); + internal delegate void CullFace(OpenTK.Graphics.ES20.CullFaceMode mode); internal static CullFace glCullFace; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers); @@ -158,7 +158,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void DeleteTextures(Int32 n, UInt32* textures); internal unsafe static DeleteTextures glDeleteTextures; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthFunc(OpenTK.Graphics.ES20.All func); + internal delegate void DepthFunc(OpenTK.Graphics.ES20.DepthFunction func); internal static DepthFunc glDepthFunc; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void DepthMask(bool flag); @@ -170,7 +170,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void DetachShader(UInt32 program, UInt32 shader); internal static DetachShader glDetachShader; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Disable(OpenTK.Graphics.ES20.All cap); + internal delegate void Disable(OpenTK.Graphics.ES20.EnableCap cap); internal static Disable glDisable; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void DisableDriverControlQCOM(UInt32 driverControl); @@ -179,10 +179,10 @@ namespace OpenTK.Graphics.ES20 internal delegate void DisableVertexAttribArray(UInt32 index); internal static DisableVertexAttribArray glDisableVertexAttribArray; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count); + internal delegate void DrawArrays(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 first, Int32 count); internal static DrawArrays glDrawArrays; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices); + internal delegate void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices); internal static DrawElements glDrawElements; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image); @@ -191,7 +191,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image); internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Enable(OpenTK.Graphics.ES20.All cap); + internal delegate void Enable(OpenTK.Graphics.ES20.EnableCap cap); internal static Enable glEnable; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void EnableDriverControlQCOM(UInt32 driverControl); @@ -212,22 +212,22 @@ namespace OpenTK.Graphics.ES20 internal delegate void Flush(); internal static Flush glFlush; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer); + internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer); internal static FramebufferRenderbuffer glFramebufferRenderbuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level); + internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, UInt32 texture, Int32 level); internal static FramebufferTexture2D glFramebufferTexture2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void FramebufferTexture3DOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset); internal static FramebufferTexture3DOES glFramebufferTexture3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FrontFace(OpenTK.Graphics.ES20.All mode); + internal delegate void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode); internal static FrontFace glFrontFace; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GenBuffers(Int32 n, UInt32* buffers); internal unsafe static GenBuffers glGenBuffers; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.All target); + internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.BindTextureTarget target); internal static GenerateMipmap glGenerateMipmap; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GenFencesNV(Int32 n, UInt32* fences); @@ -245,10 +245,10 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GenTextures(Int32 n, UInt32* textures); internal unsafe static GenTextures glGenTextures; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name); internal unsafe static GetActiveAttrib glGetActiveAttrib; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name); internal unsafe static GetActiveUniform glGetActiveUniform; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders); @@ -257,10 +257,10 @@ namespace OpenTK.Graphics.ES20 internal delegate int GetAttribLocation(UInt32 program, String name); internal static GetAttribLocation glGetAttribLocation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.All pname, bool* @params); + internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.GetBooleanPName pname, bool* @params); internal unsafe static GetBooleanv glGetBooleanv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32* @params); internal unsafe static GetBufferParameteriv glGetBufferParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params); @@ -278,13 +278,13 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetFenceivNV(UInt32 fence, Int32* @params); internal unsafe static GetFenceivNV glGetFenceivNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.GetFloatPName pname, Single* @params); internal unsafe static GetFloatv glGetFloatv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32* @params); internal unsafe static GetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32* @params); internal unsafe static GetIntegerv glGetIntegerv; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten); @@ -311,19 +311,19 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog); internal unsafe static GetProgramInfoLog glGetProgramInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params); internal unsafe static GetProgramiv glGetProgramiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32* @params); internal unsafe static GetRenderbufferParameteriv glGetRenderbufferParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog); internal unsafe static GetShaderInfoLog glGetShaderInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params); internal unsafe static GetShaderiv glGetShaderiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision); + internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32* range, Int32* precision); internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source); @@ -332,10 +332,10 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.All name); internal unsafe static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); internal unsafe static GetTexParameterfv glGetTexParameterfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); internal unsafe static GetTexParameteriv glGetTexParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetUniformfv(UInt32 program, Int32 location, Single* @params); @@ -347,22 +347,22 @@ namespace OpenTK.Graphics.ES20 internal delegate int GetUniformLocation(UInt32 program, String name); internal static GetUniformLocation glGetUniformLocation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params); internal unsafe static GetVertexAttribfv glGetVertexAttribfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params); internal unsafe static GetVertexAttribiv glGetVertexAttribiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer); + internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer); internal static GetVertexAttribPointerv glGetVertexAttribPointerv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode); + internal delegate void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode); internal static Hint glHint; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate bool IsBuffer(UInt32 buffer); internal static IsBuffer glIsBuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsEnabled(OpenTK.Graphics.ES20.All cap); + internal delegate bool IsEnabled(OpenTK.Graphics.ES20.EnableCap cap); internal static IsEnabled glIsEnabled; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate bool IsFenceNV(UInt32 fence); @@ -392,7 +392,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); internal unsafe static MapBufferOES glMapBufferOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PixelStorei(OpenTK.Graphics.ES20.All pname, Int32 param); + internal delegate void PixelStorei(OpenTK.Graphics.ES20.PixelStorePName pname, OpenTK.Graphics.ES20.PixelStoreParameter param); internal static PixelStorei glPixelStorei; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void PolygonOffset(Single factor, Single units); @@ -401,13 +401,13 @@ namespace OpenTK.Graphics.ES20 internal delegate void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length); internal static ProgramBinaryOES glProgramBinaryOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); internal static ReadPixels glReadPixels; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void ReleaseShaderCompiler(); internal static ReleaseShaderCompiler glReleaseShaderCompiler; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height); + internal delegate void RenderbufferStorage(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferInternalFormat internalformat, Int32 width, Int32 height); internal static RenderbufferStorage glRenderbufferStorage; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void SampleCoverage(Single value, bool invert); @@ -428,46 +428,46 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length); internal unsafe static ShaderSource glShaderSource; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + internal delegate void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); internal static StencilFunc glStencilFunc; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); internal static StencilFuncSeparate glStencilFuncSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void StencilMask(UInt32 mask); internal static StencilMask glStencilMask; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask); + internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask); internal static StencilMaskSeparate glStencilMaskSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + internal delegate void StencilOp(OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); internal static StencilOp glStencilOp; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); internal static StencilOpSeparate glStencilOpSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate bool TestFenceNV(UInt32 fence); internal static TestFenceNV glTestFenceNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal delegate void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); internal static TexImage2D glTexImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); internal static TexImage3DOES glTexImage3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterf(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param); + internal delegate void TexParameterf(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single param); internal static TexParameterf glTexParameterf; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); internal unsafe static TexParameterfv glTexParameterfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameteri(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param); + internal delegate void TexParameteri(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32 param); internal static TexParameteri glTexParameteri; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); internal unsafe static TexParameteriv glTexParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); internal static TexSubImage2D glTexSubImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void TexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); @@ -563,7 +563,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void VertexAttrib4fv(UInt32 indx, Single* values); internal unsafe static VertexAttrib4fv glVertexAttrib4fv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr); + internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr); internal static VertexAttribPointer glVertexAttribPointer; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index 7c062ce5..68d4f3aa 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -1241,13 +1241,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glActiveTexture")] public static - void ActiveTexture(OpenTK.Graphics.ES20.All texture) + void ActiveTexture(OpenTK.Graphics.ES20.TextureUnit texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glActiveTexture((OpenTK.Graphics.ES20.All)texture); + Delegates.glActiveTexture((OpenTK.Graphics.ES20.TextureUnit)texture); #if DEBUG } #endif @@ -1393,13 +1393,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindBuffer")] public static - void BindBuffer(OpenTK.Graphics.ES20.All target, Int32 buffer) + void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, Int32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); + Delegates.glBindBuffer((OpenTK.Graphics.ES20.BufferTarget)target, (UInt32)buffer); #if DEBUG } #endif @@ -1422,13 +1422,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindBuffer")] public static - void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer) + void BindBuffer(OpenTK.Graphics.ES20.BufferTarget target, UInt32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); + Delegates.glBindBuffer((OpenTK.Graphics.ES20.BufferTarget)target, (UInt32)buffer); #if DEBUG } #endif @@ -1436,13 +1436,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindFramebuffer")] public static - void BindFramebuffer(OpenTK.Graphics.ES20.All target, Int32 framebuffer) + void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, Int32 framebuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); + Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (UInt32)framebuffer); #if DEBUG } #endif @@ -1451,13 +1451,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindFramebuffer")] public static - void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer) + void BindFramebuffer(OpenTK.Graphics.ES20.FramebufferTarget target, UInt32 framebuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); + Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (UInt32)framebuffer); #if DEBUG } #endif @@ -1465,13 +1465,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindRenderbuffer")] public static - void BindRenderbuffer(OpenTK.Graphics.ES20.All target, Int32 renderbuffer) + void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, Int32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); + Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.RenderbufferTarget)target, (UInt32)renderbuffer); #if DEBUG } #endif @@ -1480,13 +1480,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindRenderbuffer")] public static - void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer) + void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); + Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.RenderbufferTarget)target, (UInt32)renderbuffer); #if DEBUG } #endif @@ -1508,13 +1508,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] public static - void BindTexture(OpenTK.Graphics.ES20.All target, Int32 texture) + void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, Int32 texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); + Delegates.glBindTexture((OpenTK.Graphics.ES20.BindTextureTarget)target, (UInt32)texture); #if DEBUG } #endif @@ -1537,13 +1537,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] public static - void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture) + void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, UInt32 texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); + Delegates.glBindTexture((OpenTK.Graphics.ES20.BindTextureTarget)target, (UInt32)texture); #if DEBUG } #endif @@ -1583,13 +1583,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquation")] public static - void BlendEquation(OpenTK.Graphics.ES20.All mode) + void BlendEquation(OpenTK.Graphics.ES20.BlendMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquation((OpenTK.Graphics.ES20.All)mode); + Delegates.glBlendEquation((OpenTK.Graphics.ES20.BlendMode)mode); #if DEBUG } #endif @@ -1611,13 +1611,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquationSeparate")] public static - void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha) + void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendMode modeRGB, OpenTK.Graphics.ES20.BlendMode modeAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.All)modeRGB, (OpenTK.Graphics.ES20.All)modeAlpha); + Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.BlendMode)modeRGB, (OpenTK.Graphics.ES20.BlendMode)modeAlpha); #if DEBUG } #endif @@ -1639,13 +1639,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFunc")] public static - void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor) + void BlendFunc(OpenTK.Graphics.ES20.BlendFactor sfactor, OpenTK.Graphics.ES20.BlendFactor dfactor) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES20.All)sfactor, (OpenTK.Graphics.ES20.All)dfactor); + Delegates.glBlendFunc((OpenTK.Graphics.ES20.BlendFactor)sfactor, (OpenTK.Graphics.ES20.BlendFactor)dfactor); #if DEBUG } #endif @@ -1677,13 +1677,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFuncSeparate")] public static - void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha) + void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendFactor srcRGB, OpenTK.Graphics.ES20.BlendFactor dstRGB, OpenTK.Graphics.ES20.BlendFactor srcAlpha, OpenTK.Graphics.ES20.BlendFactor dstAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.All)srcRGB, (OpenTK.Graphics.ES20.All)dstRGB, (OpenTK.Graphics.ES20.All)srcAlpha, (OpenTK.Graphics.ES20.All)dstAlpha); + Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.BlendFactor)srcRGB, (OpenTK.Graphics.ES20.BlendFactor)dstRGB, (OpenTK.Graphics.ES20.BlendFactor)srcAlpha, (OpenTK.Graphics.ES20.BlendFactor)dstAlpha); #if DEBUG } #endif @@ -1715,7 +1715,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1725,7 +1725,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); data = (T2)data_ptr.Target; } finally @@ -1763,7 +1763,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1773,7 +1773,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); } finally { @@ -1810,7 +1810,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[,] data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[,] data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1820,7 +1820,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); } finally { @@ -1857,7 +1857,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.BufferUsage usage) where T2 : struct { #if DEBUG @@ -1867,7 +1867,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.BufferUsage)usage); } finally { @@ -1904,13 +1904,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] public static - void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage) + void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.All)usage); + Delegates.glBufferData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.BufferUsage)usage); #if DEBUG } #endif @@ -1942,7 +1942,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data) where T3 : struct { #if DEBUG @@ -1952,7 +1952,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T3)data_ptr.Target; } finally @@ -1990,7 +1990,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] data) where T3 : struct { #if DEBUG @@ -2000,7 +2000,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2037,7 +2037,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,] data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,] data) where T3 : struct { #if DEBUG @@ -2047,7 +2047,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2084,7 +2084,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data) where T3 : struct { #if DEBUG @@ -2094,7 +2094,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2131,13 +2131,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] public static - void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data) + void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + Delegates.glBufferSubData((OpenTK.Graphics.ES20.BufferTarget)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); #if DEBUG } #endif @@ -2145,13 +2145,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCheckFramebufferStatus")] public static - OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target) + OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.ES20.All)target); + return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.ES20.FramebufferTarget)target); #if DEBUG } #endif @@ -2168,37 +2168,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClear")] public static - void Clear(Int32 mask) + void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClear")] - public static - void Clear(UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); + Delegates.glClear((OpenTK.Graphics.ES20.ClearBufferMask)mask); #if DEBUG } #endif @@ -2389,7 +2365,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) where T7 : struct { #if DEBUG @@ -2399,7 +2375,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T7)data_ptr.Target; } finally @@ -2457,7 +2433,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) where T7 : struct { #if DEBUG @@ -2467,7 +2443,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2524,7 +2500,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) where T7 : struct { #if DEBUG @@ -2534,7 +2510,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2591,7 +2567,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) where T7 : struct { #if DEBUG @@ -2601,7 +2577,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2658,13 +2634,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] public static - void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) + void CompressedTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); #if DEBUG } #endif @@ -2721,7 +2697,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) where T8 : struct { #if DEBUG @@ -2731,7 +2707,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T8)data_ptr.Target; } finally @@ -2794,7 +2770,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) where T8 : struct { #if DEBUG @@ -2804,7 +2780,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2866,7 +2842,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) where T8 : struct { #if DEBUG @@ -2876,7 +2852,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2938,7 +2914,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) where T8 : struct { #if DEBUG @@ -2948,7 +2924,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -3010,13 +2986,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); #if DEBUG } #endif @@ -3063,13 +3039,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexImage2D")] public static - void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) + void CopyTexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCopyTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + Delegates.glCopyTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); #if DEBUG } #endif @@ -3116,13 +3092,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexSubImage2D")] public static - void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) + void CopyTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); #if DEBUG } #endif @@ -3157,13 +3133,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCreateShader")] public static - Int32 CreateShader(OpenTK.Graphics.ES20.All type) + Int32 CreateShader(OpenTK.Graphics.ES20.ShaderType type) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glCreateShader((OpenTK.Graphics.ES20.All)type); + return Delegates.glCreateShader((OpenTK.Graphics.ES20.ShaderType)type); #if DEBUG } #endif @@ -3180,13 +3156,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCullFace")] public static - void CullFace(OpenTK.Graphics.ES20.All mode) + void CullFace(OpenTK.Graphics.ES20.CullFaceMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCullFace((OpenTK.Graphics.ES20.All)mode); + Delegates.glCullFace((OpenTK.Graphics.ES20.CullFaceMode)mode); #if DEBUG } #endif @@ -3913,13 +3889,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDepthFunc")] public static - void DepthFunc(OpenTK.Graphics.ES20.All func) + void DepthFunc(OpenTK.Graphics.ES20.DepthFunction func) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDepthFunc((OpenTK.Graphics.ES20.All)func); + Delegates.glDepthFunc((OpenTK.Graphics.ES20.DepthFunction)func); #if DEBUG } #endif @@ -4035,13 +4011,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDisable")] public static - void Disable(OpenTK.Graphics.ES20.All cap) + void Disable(OpenTK.Graphics.ES20.EnableCap cap) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDisable((OpenTK.Graphics.ES20.All)cap); + Delegates.glDisable((OpenTK.Graphics.ES20.EnableCap)cap); #if DEBUG } #endif @@ -4126,13 +4102,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawArrays")] public static - void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count) + void DrawArrays(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 first, Int32 count) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDrawArrays((OpenTK.Graphics.ES20.All)mode, (Int32)first, (Int32)count); + Delegates.glDrawArrays((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)first, (Int32)count); #if DEBUG } #endif @@ -4164,7 +4140,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T3 indices) + void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] ref T3 indices) where T3 : struct { #if DEBUG @@ -4174,7 +4150,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); indices = (T3)indices_ptr.Target; } finally @@ -4212,7 +4188,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[,,] indices) + void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,,] indices) where T3 : struct { #if DEBUG @@ -4222,7 +4198,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4259,7 +4235,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[,] indices) + void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,] indices) where T3 : struct { #if DEBUG @@ -4269,7 +4245,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4306,7 +4282,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[] indices) + void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[] indices) where T3 : struct { #if DEBUG @@ -4316,7 +4292,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4353,13 +4329,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices) + void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices); + Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices); #if DEBUG } #endif @@ -4376,13 +4352,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEnable")] public static - void Enable(OpenTK.Graphics.ES20.All cap) + void Enable(OpenTK.Graphics.ES20.EnableCap cap) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glEnable((OpenTK.Graphics.ES20.All)cap); + Delegates.glEnable((OpenTK.Graphics.ES20.EnableCap)cap); #if DEBUG } #endif @@ -4502,13 +4478,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] public static - void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, Int32 renderbuffer) + void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, Int32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -4517,13 +4493,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] public static - void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer) + void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -4531,13 +4507,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] public static - void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, Int32 texture, Int32 level) + void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, Int32 texture, Int32 level) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.TextureTarget)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -4546,13 +4522,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] public static - void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level) + void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget textarget, UInt32 texture, Int32 level) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.TextureTarget)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -4569,13 +4545,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFrontFace")] public static - void FrontFace(OpenTK.Graphics.ES20.All mode) + void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFrontFace((OpenTK.Graphics.ES20.All)mode); + Delegates.glFrontFace((OpenTK.Graphics.ES20.FrontFaceDirection)mode); #if DEBUG } #endif @@ -4779,13 +4755,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenerateMipmap")] public static - void GenerateMipmap(OpenTK.Graphics.ES20.All target) + void GenerateMipmap(OpenTK.Graphics.ES20.BindTextureTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.All)target); + Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.BindTextureTarget)target); #if DEBUG } #endif @@ -5253,13 +5229,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (String)name); #if DEBUG } #endif @@ -5306,7 +5282,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveAttribType[] type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5316,9 +5292,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); } } #if DEBUG @@ -5367,7 +5343,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveAttribType type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5377,9 +5353,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); } } #if DEBUG @@ -5429,13 +5405,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (String)name); #if DEBUG } #endif @@ -5483,7 +5459,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveAttribType[] type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5493,9 +5469,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); } } #if DEBUG @@ -5545,7 +5521,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveAttribType type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5555,9 +5531,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); } } #if DEBUG @@ -5607,13 +5583,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (String)name); #if DEBUG } #endif @@ -5660,7 +5636,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveUniformType[] type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5670,9 +5646,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); } } #if DEBUG @@ -5721,7 +5697,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveUniformType type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5731,9 +5707,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); } } #if DEBUG @@ -5783,13 +5759,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (String)name); #if DEBUG } #endif @@ -5837,7 +5813,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveUniformType[] type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5847,9 +5823,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); } } #if DEBUG @@ -5899,7 +5875,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveUniformType type, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5909,9 +5885,9 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); } } #if DEBUG @@ -6239,13 +6215,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - unsafe void GetBoolean(OpenTK.Graphics.ES20.All pname, bool* @params) + unsafe void GetBoolean(OpenTK.Graphics.ES20.GetBooleanPName pname, bool* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetBooleanPName)pname, (bool*)@params); #if DEBUG } #endif @@ -6253,7 +6229,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - void GetBoolean(OpenTK.Graphics.ES20.All pname, bool[] @params) + void GetBoolean(OpenTK.Graphics.ES20.GetBooleanPName pname, bool[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6263,7 +6239,7 @@ namespace OpenTK.Graphics.ES20 { fixed (bool* @params_ptr = @params) { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetBooleanPName)pname, (bool*)@params_ptr); } } #if DEBUG @@ -6273,7 +6249,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - void GetBoolean(OpenTK.Graphics.ES20.All pname, ref bool @params) + void GetBoolean(OpenTK.Graphics.ES20.GetBooleanPName pname, ref bool @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6283,7 +6259,7 @@ namespace OpenTK.Graphics.ES20 { fixed (bool* @params_ptr = &@params) { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetBooleanPName)pname, (bool*)@params_ptr); } } #if DEBUG @@ -6313,13 +6289,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - unsafe void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.GetBufferPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6346,7 +6322,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6356,7 +6332,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.GetBufferPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6385,7 +6361,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6395,7 +6371,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.GetBufferPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6644,7 +6620,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - void GetFloat(OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetFloat(OpenTK.Graphics.ES20.GetFloatPName pname, ref Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6654,7 +6630,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetFloatPName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -6665,13 +6641,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - unsafe void GetFloat(OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetFloat(OpenTK.Graphics.ES20.GetFloatPName pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetFloatPName)pname, (Single*)@params); #if DEBUG } #endif @@ -6679,7 +6655,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - void GetFloat(OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetFloat(OpenTK.Graphics.ES20.GetFloatPName pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6689,7 +6665,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetFloatPName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -6700,13 +6676,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferAttachmentParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -6714,7 +6690,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6724,7 +6700,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferAttachmentParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6734,7 +6710,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6744,7 +6720,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferAttachmentParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6755,13 +6731,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - unsafe void GetInteger(OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetInteger(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetIntegerPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6769,7 +6745,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - void GetInteger(OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetInteger(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6779,7 +6755,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetIntegerPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6789,7 +6765,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - void GetInteger(OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetInteger(OpenTK.Graphics.ES20.GetIntegerPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6799,7 +6775,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetIntegerPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7085,13 +7061,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7118,7 +7094,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(Int32 program, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7128,7 +7104,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7157,7 +7133,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(Int32 program, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7167,7 +7143,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7197,13 +7173,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7231,7 +7207,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7241,7 +7217,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7271,7 +7247,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7281,7 +7257,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7292,13 +7268,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.GetRenderbufferPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7306,7 +7282,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7316,7 +7292,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.GetRenderbufferPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7326,7 +7302,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7336,7 +7312,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.GetRenderbufferPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7622,13 +7598,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7655,7 +7631,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(Int32 shader, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7665,7 +7641,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7694,7 +7670,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(Int32 shader, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7704,7 +7680,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7734,13 +7710,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7768,7 +7744,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7778,7 +7754,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7808,7 +7784,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7818,7 +7794,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7829,13 +7805,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision) + unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32* range, Int32* precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range, (Int32*)precision); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range, (Int32*)precision); #if DEBUG } #endif @@ -7843,7 +7819,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32[] range, Int32[] precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32[] range, Int32[] precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7854,7 +7830,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* range_ptr = range) fixed (Int32* precision_ptr = precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); } } #if DEBUG @@ -7864,7 +7840,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, ref Int32 range, ref Int32 precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, ref Int32 range, ref Int32 precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7875,7 +7851,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* range_ptr = &range) fixed (Int32* precision_ptr = &precision) { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); } } #if DEBUG @@ -8184,7 +8160,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, ref Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8194,7 +8170,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -8224,13 +8200,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - unsafe void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params); #if DEBUG } #endif @@ -8257,7 +8233,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8267,7 +8243,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -8297,13 +8273,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - unsafe void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params); #if DEBUG } #endif @@ -8330,7 +8306,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8340,7 +8316,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -8369,7 +8345,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8379,7 +8355,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -8917,7 +8893,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8927,7 +8903,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); } } #if DEBUG @@ -8957,13 +8933,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params); #if DEBUG } #endif @@ -8990,7 +8966,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9000,7 +8976,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9030,7 +9006,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, ref Single @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9040,7 +9016,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9070,13 +9046,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params); #if DEBUG } #endif @@ -9104,7 +9080,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Single[] @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9114,7 +9090,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9144,13 +9120,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params); #if DEBUG } #endif @@ -9177,7 +9153,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9187,7 +9163,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9216,7 +9192,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9226,7 +9202,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9256,13 +9232,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params); #if DEBUG } #endif @@ -9290,7 +9266,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9300,7 +9276,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9330,7 +9306,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9340,7 +9316,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9369,7 +9345,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9379,7 +9355,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9412,7 +9388,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9422,7 +9398,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9454,7 +9430,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9464,7 +9440,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9496,7 +9472,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9506,7 +9482,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9538,13 +9514,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -9572,7 +9548,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9582,7 +9558,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9616,7 +9592,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9626,7 +9602,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9659,7 +9635,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9669,7 +9645,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9702,7 +9678,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9712,7 +9688,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9745,13 +9721,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -9773,13 +9749,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glHint")] public static - void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode) + void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glHint((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)mode); + Delegates.glHint((OpenTK.Graphics.ES20.HintTarget)target, (OpenTK.Graphics.ES20.HintMode)mode); #if DEBUG } #endif @@ -9843,13 +9819,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsEnabled")] public static - bool IsEnabled(OpenTK.Graphics.ES20.All cap) + bool IsEnabled(OpenTK.Graphics.ES20.EnableCap cap) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glIsEnabled((OpenTK.Graphics.ES20.All)cap); + return Delegates.glIsEnabled((OpenTK.Graphics.ES20.EnableCap)cap); #if DEBUG } #endif @@ -10140,13 +10116,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glPixelStorei")] public static - void PixelStore(OpenTK.Graphics.ES20.All pname, Int32 param) + void PixelStore(OpenTK.Graphics.ES20.PixelStorePName pname, OpenTK.Graphics.ES20.PixelStoreParameter param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glPixelStorei((OpenTK.Graphics.ES20.All)pname, (Int32)param); + Delegates.glPixelStorei((OpenTK.Graphics.ES20.PixelStorePName)pname, (OpenTK.Graphics.ES20.PixelStoreParameter)param); #if DEBUG } #endif @@ -10211,7 +10187,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T6 pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] ref T6 pixels) where T6 : struct { #if DEBUG @@ -10221,7 +10197,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); pixels = (T6)pixels_ptr.Target; } finally @@ -10264,7 +10240,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[,,] pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T6[,,] pixels) where T6 : struct { #if DEBUG @@ -10274,7 +10250,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -10316,7 +10292,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[,] pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T6[,] pixels) where T6 : struct { #if DEBUG @@ -10326,7 +10302,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -10368,7 +10344,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[] pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T6[] pixels) where T6 : struct { #if DEBUG @@ -10378,7 +10354,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -10420,13 +10396,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] public static - void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels); #if DEBUG } #endif @@ -10448,13 +10424,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glRenderbufferStorage")] public static - void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height) + void RenderbufferStorage(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferInternalFormat internalformat, Int32 width, Int32 height) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glRenderbufferStorage((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height); + Delegates.glRenderbufferStorage((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferInternalFormat)internalformat, (Int32)width, (Int32)height); #if DEBUG } #endif @@ -11575,13 +11551,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFunc")] public static - void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, Int32 mask) + void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFunc((OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11609,13 +11585,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFunc")] public static - void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask) + void StencilFunc(OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFunc((OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11647,13 +11623,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, Int32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11686,13 +11662,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -11761,13 +11737,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")] public static - void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, Int32 mask) + void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); + Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (UInt32)mask); #if DEBUG } #endif @@ -11790,13 +11766,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")] public static - void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask) + void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); + Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (UInt32)mask); #if DEBUG } #endif @@ -11823,13 +11799,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOp")] public static - void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass) + void StencilOp(OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOp((OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); + Delegates.glStencilOp((OpenTK.Graphics.ES20.StencilOperation)fail, (OpenTK.Graphics.ES20.StencilOperation)zfail, (OpenTK.Graphics.ES20.StencilOperation)zpass); #if DEBUG } #endif @@ -11861,13 +11837,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOpSeparate")] public static - void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass) + void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); + Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilOperation)fail, (OpenTK.Graphics.ES20.StencilOperation)zfail, (OpenTK.Graphics.ES20.StencilOperation)zpass); #if DEBUG } #endif @@ -11924,7 +11900,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public static - void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T8 pixels) + void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] ref T8 pixels) where T8 : struct { #if DEBUG @@ -11934,7 +11910,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); pixels = (T8)pixels_ptr.Target; } finally @@ -11997,7 +11973,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public static - void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,,] pixels) + void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T8[,,] pixels) where T8 : struct { #if DEBUG @@ -12007,7 +11983,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -12069,7 +12045,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public static - void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,] pixels) + void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T8[,] pixels) where T8 : struct { #if DEBUG @@ -12079,7 +12055,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -12141,7 +12117,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public static - void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[] pixels) + void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T8[] pixels) where T8 : struct { #if DEBUG @@ -12151,7 +12127,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -12213,13 +12189,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] public static - void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + void TexImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, OpenTK.Graphics.ES20.PixelInternalFormat internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + Delegates.glTexImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (OpenTK.Graphics.ES20.PixelInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels); #if DEBUG } #endif @@ -12246,13 +12222,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterf")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param) + void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameterf((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single)param); + Delegates.glTexParameterf((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single)param); #if DEBUG } #endif @@ -12280,13 +12256,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] public static - unsafe void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params) + unsafe void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params); #if DEBUG } #endif @@ -12313,7 +12289,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single[] @params) + void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12323,7 +12299,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -12352,13 +12328,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteri")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param) + void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32 param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameteri((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32)param); + Delegates.glTexParameteri((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32)param); #if DEBUG } #endif @@ -12386,13 +12362,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] public static - unsafe void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + unsafe void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params); #if DEBUG } #endif @@ -12419,7 +12395,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] public static - void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12429,7 +12405,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -12488,7 +12464,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public static - void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T8 pixels) + void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] ref T8 pixels) where T8 : struct { #if DEBUG @@ -12498,7 +12474,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); pixels = (T8)pixels_ptr.Target; } finally @@ -12561,7 +12537,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public static - void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,,] pixels) + void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T8[,,] pixels) where T8 : struct { #if DEBUG @@ -12571,7 +12547,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -12633,7 +12609,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public static - void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,] pixels) + void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T8[,] pixels) where T8 : struct { #if DEBUG @@ -12643,7 +12619,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -12705,7 +12681,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public static - void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[] pixels) + void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, [InAttribute, OutAttribute] T8[] pixels) where T8 : struct { #if DEBUG @@ -12715,7 +12691,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); try { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); } finally { @@ -12777,13 +12753,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] public static - void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (OpenTK.Graphics.ES20.PixelType)type, (IntPtr)pixels); #if DEBUG } #endif @@ -14993,7 +14969,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) where T5 : struct { #if DEBUG @@ -15003,7 +14979,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); ptr = (T5)ptr_ptr.Target; } finally @@ -15051,7 +15027,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) where T5 : struct { #if DEBUG @@ -15061,7 +15037,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15108,7 +15084,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) where T5 : struct { #if DEBUG @@ -15118,7 +15094,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15165,7 +15141,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) where T5 : struct { #if DEBUG @@ -15175,7 +15151,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15222,13 +15198,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); #if DEBUG } #endif @@ -15271,7 +15247,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) where T5 : struct { #if DEBUG @@ -15281,7 +15257,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); ptr = (T5)ptr_ptr.Target; } finally @@ -15330,7 +15306,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) where T5 : struct { #if DEBUG @@ -15340,7 +15316,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15388,7 +15364,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) where T5 : struct { #if DEBUG @@ -15398,7 +15374,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15446,7 +15422,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) where T5 : struct { #if DEBUG @@ -15456,7 +15432,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15504,13 +15480,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index 665b33f4..433441fb 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -31,6 +31,38 @@ namespace OpenTK.Graphics.ES20 { #pragma warning disable 1591 + public enum ActiveAttribType : int + { + Float = ((int)0X1406), + FloatVec2 = ((int)0X8b50), + FloatVec3 = ((int)0X8b51), + FloatVec4 = ((int)0X8b52), + FloatMat2 = ((int)0X8b5a), + FloatMat3 = ((int)0X8b5b), + FloatMat4 = ((int)0X8b5c), + } + + public enum ActiveUniformType : int + { + Int = ((int)0X1404), + Float = ((int)0X1406), + FloatVec2 = ((int)0X8b50), + FloatVec3 = ((int)0X8b51), + FloatVec4 = ((int)0X8b52), + IntVec2 = ((int)0X8b53), + IntVec3 = ((int)0X8b54), + IntVec4 = ((int)0X8b55), + Bool = ((int)0X8b56), + BoolVec2 = ((int)0X8b57), + BoolVec3 = ((int)0X8b58), + BoolVec4 = ((int)0X8b59), + FloatMat2 = ((int)0X8b5a), + FloatMat3 = ((int)0X8b5b), + FloatMat4 = ((int)0X8b5c), + Sampler2D = ((int)0X8b5e), + SamplerCube = ((int)0X8b60), + } + public enum All : int { False = ((int)0), @@ -43,10 +75,13 @@ namespace OpenTK.Graphics.ES20 ColorBufferBit = ((int)0x00004000), Lines = ((int)0x0001), LineLoop = ((int)0x0002), + Two = ((int)0X0002), LineStrip = ((int)0x0003), Triangles = ((int)0x0004), + Four = ((int)0X0004), TriangleStrip = ((int)0x0005), TriangleFan = ((int)0x0006), + Eight = ((int)0X0008), Never = ((int)0x0200), Less = ((int)0x0201), Equal = ((int)0x0202), @@ -158,6 +193,7 @@ namespace OpenTK.Graphics.ES20 BlendColor = ((int)0x8005), FuncAdd = ((int)0x8006), BlendEquation = ((int)0x8009), + BlendEquationRgb = ((int)0X8009), FuncSubtract = ((int)0x800A), FuncReverseSubtract = ((int)0x800B), UnsignedShort4444 = ((int)0x8033), @@ -481,6 +517,12 @@ namespace OpenTK.Graphics.ES20 TriangleFan = ((int)0x0006), } + public enum BindTextureTarget : int + { + Texture2D = ((int)0X0de1), + TextureCubeMap = ((int)0X8513), + } + public enum BlendEquationSeparate : int { FuncAdd = ((int)0x8006), @@ -488,6 +530,25 @@ namespace OpenTK.Graphics.ES20 BlendEquationAlpha = ((int)0x883D), } + public enum BlendFactor : int + { + Zero = ((int)0), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + ConstantColor = ((int)0X8001), + OneMinusConstantColor = ((int)0X8002), + ConstantAlpha = ((int)0X8003), + OneMinusConstantAlpha = ((int)0X8004), + One = ((int)1), + } + public enum BlendingFactorDest : int { Zero = ((int)0), @@ -507,6 +568,13 @@ namespace OpenTK.Graphics.ES20 SrcAlphaSaturate = ((int)0x0308), } + public enum BlendMode : int + { + FuncAdd = ((int)0X8006), + FuncSubtract = ((int)0X800a), + FuncReverseSubtract = ((int)0X800b), + } + public enum BlendSubtract : int { FuncSubtract = ((int)0x800A), @@ -533,6 +601,19 @@ namespace OpenTK.Graphics.ES20 DynamicDraw = ((int)0x88E8), } + public enum BufferTarget : int + { + ArrayBuffer = ((int)0X8892), + ElementArrayBuffer = ((int)0X8893), + } + + public enum BufferUsage : int + { + StreamDraw = ((int)0X88e0), + StaticDraw = ((int)0X88e4), + DynamicDraw = ((int)0X88e8), + } + [Flags] public enum ClearBufferMask : int { @@ -560,6 +641,24 @@ namespace OpenTK.Graphics.ES20 Fixed = ((int)0x140C), } + public enum DepthFunction : int + { + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + } + + public enum DrawElementsType : int + { + UnsignedByte = ((int)0X1401), + UnsignedShort = ((int)0X1403), + } + public enum EnableCap : int { CullFace = ((int)0x0B44), @@ -581,6 +680,7 @@ namespace OpenTK.Graphics.ES20 InvalidValue = ((int)0x0501), InvalidOperation = ((int)0x0502), OutOfMemory = ((int)0x0505), + InvalidFramebufferOperation = ((int)0X0506), } public enum ExttextureFilterAnisotropic : int @@ -602,6 +702,23 @@ namespace OpenTK.Graphics.ES20 ExtTextureType2101010Rev = ((int)1), } + public enum FramebufferAttachmentParameter : int + { + FramebufferAttachmentObjectType = ((int)0X8cd0), + FramebufferAttachmentObjectName = ((int)0X8cd1), + FramebufferAttachmentTextureLevel = ((int)0X8cd2), + FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), + } + + public enum FramebufferError : int + { + FramebufferComplete = ((int)0X8cd5), + FramebufferIncompleteAttachment = ((int)0X8cd6), + FramebufferIncompleteMissingAttachment = ((int)0X8cd7), + FramebufferIncompleteDimensions = ((int)0X8cd9), + FramebufferUnsupported = ((int)0X8cdd), + } + public enum FramebufferObject : int { None = ((int)0), @@ -640,12 +757,120 @@ namespace OpenTK.Graphics.ES20 Rgb565 = ((int)0x8D62), } + public enum FramebufferSlot : int + { + ColorAttachment0 = ((int)0X8ce0), + DepthAttachment = ((int)0X8d00), + StencilAttachment = ((int)0X8d20), + } + + public enum FramebufferTarget : int + { + Framebuffer = ((int)0X8d40), + } + public enum FrontFaceDirection : int { Cw = ((int)0x0900), Ccw = ((int)0x0901), } + public enum GetBooleanPName : int + { + DepthWritemask = ((int)0X0b72), + ColorWritemask = ((int)0X0c23), + SampleCoverageInvert = ((int)0X80ab), + ShaderCompiler = ((int)0X8dfa), + } + + public enum GetBufferPName : int + { + BufferSize = ((int)0X8764), + BufferUsage = ((int)0X8765), + } + + public enum GetFloatPName : int + { + LineWidth = ((int)0X0b21), + DepthRange = ((int)0X0b70), + ColorClearValue = ((int)0X0c22), + PolygonOffsetUnits = ((int)0X2a00), + BlendColor = ((int)0X8005), + PolygonOffsetFactor = ((int)0X8038), + SampleCoverageValue = ((int)0X80aa), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + } + + public enum GetIntegerPName : int + { + CullFaceMode = ((int)0X0b45), + FrontFace = ((int)0X0b46), + DepthClearValue = ((int)0X0b73), + DepthFunc = ((int)0X0b74), + StencilClearValue = ((int)0X0b91), + StencilFunc = ((int)0X0b92), + StencilValueMask = ((int)0X0b93), + StencilFail = ((int)0X0b94), + StencilPassDepthFail = ((int)0X0b95), + StencilPassDepthPass = ((int)0X0b96), + StencilRef = ((int)0X0b97), + StencilWritemask = ((int)0X0b98), + Viewport = ((int)0X0ba2), + ScissorBox = ((int)0X0c10), + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + MaxTextureSize = ((int)0X0d33), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + BlendEquation = ((int)0X8009), + BlendEquationRgb = ((int)0X8009), + TextureBinding2D = ((int)0X8069), + SampleBuffers = ((int)0X80a8), + Samples = ((int)0X80a9), + BlendDstRgb = ((int)0X80c8), + BlendSrcRgb = ((int)0X80c9), + BlendDstAlpha = ((int)0X80ca), + BlendSrcAlpha = ((int)0X80cb), + GenerateMipmapHint = ((int)0X8192), + ActiveTexture = ((int)0X84e0), + MaxRenderbufferSize = ((int)0X84e8), + TextureBindingCubeMap = ((int)0X8514), + MaxCubeMapTextureSize = ((int)0X851c), + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + StencilBackFunc = ((int)0X8800), + StencilBackFail = ((int)0X8801), + StencilBackPassDepthFail = ((int)0X8802), + StencilBackPassDepthPass = ((int)0X8803), + BlendEquationAlpha = ((int)0X883d), + MaxVertexAttribs = ((int)0X8869), + MaxTextureImageUnits = ((int)0X8872), + ArrayBufferBinding = ((int)0X8894), + ElementArrayBufferBinding = ((int)0X8895), + MaxVertexTextureImageUnits = ((int)0X8b4c), + MaxCombinedTextureImageUnits = ((int)0X8b4d), + CurrentProgram = ((int)0X8b8d), + ImplementationColorReadType = ((int)0X8b9a), + ImplementationColorReadFormat = ((int)0X8b9b), + StencilBackRef = ((int)0X8ca3), + StencilBackValueMask = ((int)0X8ca4), + StencilBackWritemask = ((int)0X8ca5), + FramebufferBinding = ((int)0X8ca6), + RenderbufferBinding = ((int)0X8ca7), + ShaderBinaryFormats = ((int)0X8df8), + NumShaderBinaryFormats = ((int)0X8df9), + MaxVertexUniformVectors = ((int)0X8dfb), + MaxVaryingVectors = ((int)0X8dfc), + MaxFragmentUniformVectors = ((int)0X8dfd), + } + public enum GetPName : int { LineWidth = ((int)0x0B21), @@ -696,6 +921,19 @@ namespace OpenTK.Graphics.ES20 StencilBackWritemask = ((int)0x8CA5), } + public enum GetRenderbufferPName : int + { + RenderbufferWidth = ((int)0X8d42), + RenderbufferHeight = ((int)0X8d43), + RenderbufferInternalFormat = ((int)0X8d44), + RenderbufferRedSize = ((int)0X8d50), + RenderbufferGreenSize = ((int)0X8d51), + RenderbufferBlueSize = ((int)0X8d52), + RenderbufferAlphaSize = ((int)0X8d53), + RenderbufferDepthSize = ((int)0X8d54), + RenderbufferStencilSize = ((int)0X8d55), + } + public enum GetTextureParameter : int { NumCompressedTextureFormats = ((int)0x86A2), @@ -911,13 +1149,61 @@ namespace OpenTK.Graphics.ES20 LuminanceAlpha = ((int)0x190A), } + public enum PixelInternalFormat : int + { + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + } + + public enum PixelStoreParameter : int + { + One = ((int)0X0001), + Two = ((int)0X0002), + Four = ((int)0X0004), + Eight = ((int)0X0008), + } + + public enum PixelStorePName : int + { + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + } + public enum PixelType : int { + UnsignedByte = ((int)0X1401), UnsignedShort4444 = ((int)0x8033), UnsignedShort5551 = ((int)0x8034), UnsignedShort565 = ((int)0x8363), } + public enum PrimitiveMode : int + { + Points = ((int)0X0000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + } + + public enum ProgramPName : int + { + DeleteStatus = ((int)0X8b80), + LinkStatus = ((int)0X8b82), + ValidateStatus = ((int)0X8b83), + InfoLogLength = ((int)0X8b84), + AttachedShaders = ((int)0X8b85), + ActiveUniforms = ((int)0X8b86), + ActiveUniformMaxLength = ((int)0X8b87), + ActiveAttributes = ((int)0X8b89), + ActiveAttributeMaxLength = ((int)0X8b8a), + } + public enum QcomdriverControl : int { QcomDriverControl = ((int)1), @@ -935,6 +1221,20 @@ namespace OpenTK.Graphics.ES20 ImplementationColorReadFormat = ((int)0x8B9B), } + public enum RenderbufferInternalFormat : int + { + Rgba4 = ((int)0X8056), + Rgb5A1 = ((int)0X8057), + DepthComponent16 = ((int)0X81a5), + StencilIndex8 = ((int)0X8d48), + Rgb565 = ((int)0X8d62), + } + + public enum RenderbufferTarget : int + { + Renderbuffer = ((int)0X8d41), + } + public enum SeparateBlendFunctions : int { ConstantColor = ((int)0x8001), @@ -954,6 +1254,25 @@ namespace OpenTK.Graphics.ES20 NumShaderBinaryFormats = ((int)0x8DF9), } + public enum ShaderPName : int + { + ShaderType = ((int)0X8b4f), + DeleteStatus = ((int)0X8b80), + CompileStatus = ((int)0X8b81), + InfoLogLength = ((int)0X8b84), + ShaderSourceLength = ((int)0X8b88), + } + + public enum ShaderPrecision : int + { + LowFloat = ((int)0X8df0), + MediumFloat = ((int)0X8df1), + HighFloat = ((int)0X8df2), + LowInt = ((int)0X8df3), + MediumInt = ((int)0X8df4), + HighInt = ((int)0X8df5), + } + public enum ShaderPrecisionSpecifiedTypes : int { LowFloat = ((int)0x8DF0), @@ -996,6 +1315,12 @@ namespace OpenTK.Graphics.ES20 ShaderCompiler = ((int)0x8DFA), } + public enum ShaderType : int + { + FragmentShader = ((int)0X8b30), + VertexShader = ((int)0X8b31), + } + public enum StencilFunction : int { Never = ((int)0x0200), @@ -1019,12 +1344,25 @@ namespace OpenTK.Graphics.ES20 DecrWrap = ((int)0x8508), } + public enum StencilOperation : int + { + Zero = ((int)0X0000), + Invert = ((int)0X150a), + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + IncrWrap = ((int)0X8507), + DecrWrap = ((int)0X8508), + } + public enum StringName : int { Vendor = ((int)0x1F00), Renderer = ((int)0x1F01), Version = ((int)0x1F02), Extensions = ((int)0x1F03), + ShadingLanguageVersion = ((int)0X8b8c), } public enum TextureMagFilter : int @@ -1035,6 +1373,8 @@ namespace OpenTK.Graphics.ES20 public enum TextureMinFilter : int { + Nearest = ((int)0X2600), + Linear = ((int)0X2601), NearestMipmapNearest = ((int)0x2700), LinearMipmapNearest = ((int)0x2701), NearestMipmapLinear = ((int)0x2702), @@ -1049,8 +1389,17 @@ namespace OpenTK.Graphics.ES20 TextureWrapT = ((int)0x2803), } + public enum TexturePName : int + { + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + } + public enum TextureTarget : int { + Texture2D = ((int)0X0de1), Texture = ((int)0x1702), TextureCubeMap = ((int)0x8513), TextureBindingCubeMap = ((int)0x8514), @@ -1126,6 +1475,17 @@ namespace OpenTK.Graphics.ES20 SamplerCube = ((int)0x8B60), } + public enum VertexArray : int + { + VertexAttribArrayEnabled = ((int)0X8622), + VertexAttribArraySize = ((int)0X8623), + VertexAttribArrayStride = ((int)0X8624), + VertexAttribArrayType = ((int)0X8625), + CurrentVertexAttrib = ((int)0X8626), + VertexAttribArrayNormalized = ((int)0X886a), + VertexAttribArrayBufferBinding = ((int)0X889f), + } + public enum VertexArrays : int { VertexAttribArrayEnabled = ((int)0x8622), @@ -1137,4 +1497,19 @@ namespace OpenTK.Graphics.ES20 VertexAttribArrayBufferBinding = ((int)0x889F), } + public enum VertexAttribType : int + { + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + } + + public enum VertexPointer : int + { + VertexAttribArrayPointer = ((int)0X8645), + } + } From 8ed98ec517ebfcfa6fcb6ad16f8fef5adbed794b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 23:01:42 +0000 Subject: [PATCH 06/18] Use out flow direction for pointer parameters in Get* or Gen* methods. --- Source/Converter/ESCLParser.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Converter/ESCLParser.cs b/Source/Converter/ESCLParser.cs index c235f5eb..0a54cda7 100644 --- a/Source/Converter/ESCLParser.cs +++ b/Source/Converter/ESCLParser.cs @@ -255,7 +255,10 @@ namespace CHeaderToXML (tokens.Contains("unsigned") && !param_type.StartsWith("byte") ? "u" : "") + // Make sure we don't ignore the unsigned part of unsigned parameters (e.g. unsigned int -> uint) param_type.Replace("*", "") + String.Join("", pointers, 0, indirection_level), // Normalize pointer indirection level (place as many asterisks as in indirection_level variable) Count = has_array_size ? Int32.Parse(array_size.Match(param_name).Value.Trim('[', ']')) : 0, - Flow = param_name.EndsWith("ret") ? "out" : "in" + Flow = + param_name.EndsWith("ret") || + ((funcname.StartsWith("Get") || funcname.StartsWith("Gen")) && indirection_level > 0) ? + "out" : "in" } }; From 61f4a8b0cc7016676ff36d5aa26fc529f42291ac Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 23:06:34 +0000 Subject: [PATCH 07/18] Regenerated signatures with fixed out parameters. --- .../Bind/Specifications/ES20/signatures.xml | 272 +++++++++--------- 1 file changed, 136 insertions(+), 136 deletions(-) diff --git a/Source/Bind/Specifications/ES20/signatures.xml b/Source/Bind/Specifications/ES20/signatures.xml index fabc1dca..31f8908c 100644 --- a/Source/Bind/Specifications/ES20/signatures.xml +++ b/Source/Bind/Specifications/ES20/signatures.xml @@ -1,17 +1,17 @@ - + - + - + @@ -21,11 +21,11 @@ - + - + @@ -34,12 +34,12 @@ - + - + @@ -49,20 +49,20 @@ - + - + - + - + @@ -74,17 +74,17 @@ - + - + - + @@ -94,7 +94,7 @@ - + @@ -106,27 +106,27 @@ - + - + - + - + - + @@ -162,11 +162,11 @@ - + - + @@ -214,42 +214,42 @@ - + - + - + - + - + - + - + - + @@ -262,66 +262,66 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -330,34 +330,34 @@ - + - + - + - + - + - + - + - + - + @@ -365,23 +365,23 @@ - + - + - + - + - + @@ -392,11 +392,11 @@ - + - + @@ -404,7 +404,7 @@ - + @@ -426,13 +426,13 @@ - + - + @@ -442,7 +442,7 @@ - + @@ -451,29 +451,29 @@ - + - + - + - + - + @@ -485,7 +485,7 @@ - + @@ -520,12 +520,12 @@ - + - + @@ -542,7 +542,7 @@ - + @@ -567,51 +567,51 @@ - + - - + + - + - - + + - + - - + + - + - + - - + + @@ -891,7 +891,7 @@ - + @@ -900,60 +900,60 @@ - + - + - + - - - - + + + + - - - - + + + + - - + + - + - + - + @@ -961,65 +961,65 @@ - + - + - + - - + + - + - + - - + + - + - - + + - - + + @@ -1029,48 +1029,48 @@ - + - + - + - + - + - + - + - + @@ -1456,12 +1456,12 @@ - + - + @@ -1537,15 +1537,15 @@ - + - - - + + + @@ -1600,15 +1600,15 @@ - + - + - - + + \ No newline at end of file From 968dc4e299603083cbaeedc1a481cf358ec76418 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 06:54:15 +0000 Subject: [PATCH 08/18] Fixed return types for GetError and CheckFramebufferStatus. Updated enum types for consistency with OpenGL. --- Source/Bind/Specifications/ES20/overrides.xml | 108 ++++++++---------- 1 file changed, 48 insertions(+), 60 deletions(-) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 78032f1c..7ba9ed89 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -11,15 +11,6 @@ String* - - out - - - - out - - - BlendMode @@ -91,7 +82,7 @@ BufferTarget - GetBufferPName + BufferParameterName @@ -149,15 +140,15 @@ - + ErrorCode - ProgramPName + ProgramParameter - ShaderPName + ShaderParameter @@ -165,11 +156,11 @@ - VertexArray + VertexAttribParameter - VertexPointer + VertexAttribPointerType @@ -177,21 +168,21 @@ - BindTextureTarget + TextureTarget - BindTextureTarget + TextureTarget - BindTextureTarget - TexturePName + TextureTarget + GetTextureParameter - BindTextureTarget - TexturePName + TextureTarget + TextureParameterName @@ -231,7 +222,7 @@ - + FramebufferErrorCode FramebufferTarget @@ -250,7 +241,7 @@ RenderbufferTarget - GetRenderbufferPName + RenderbufferParameterName @@ -268,25 +259,28 @@ FramebufferTarget FramebufferSlot - FramebufferAttachmentParameter + FramebufferParameterName - PixelStorePName - PixelStoreParameter + PixelStoreParameter - GetBooleanPName + GetPName - GetFloatPName + GetPName - GetIntegerPName + GetPName + + + ErrorCode + @@ -327,7 +321,7 @@ - + @@ -450,7 +444,7 @@ - + @@ -462,7 +456,7 @@ - + @@ -478,7 +472,7 @@ - + @@ -488,7 +482,7 @@ - + @@ -559,7 +553,7 @@ - + @@ -578,13 +572,20 @@ - + - + + + + + + + + @@ -623,7 +624,7 @@ - + @@ -643,7 +644,7 @@ - + @@ -661,33 +662,19 @@ - + - + - - - - - - - - - - - - - - - - + + + + + @@ -706,9 +697,6 @@ - - - From b0607ede68a5a34d59ed7868e2ae09f753a95102 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 06:58:04 +0000 Subject: [PATCH 09/18] Regenerated bindings using the latest overrides.xml: out parameters for Get/Gen methods; fixed return types for GetError and CheckFramebufferStatus. improved consistency with desktop OpenGL bindings. --- Source/OpenTK/Graphics/ES20/Core.cs | 100 +-- Source/OpenTK/Graphics/ES20/Delegates.cs | 100 +-- Source/OpenTK/Graphics/ES20/ES.cs | 802 +++++++++++++---------- Source/OpenTK/Graphics/ES20/Enums.cs | 239 +++---- 4 files changed, 632 insertions(+), 609 deletions(-) diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index 98764038..5c1716d2 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -61,7 +61,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] - internal extern static void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, UInt32 texture); + internal extern static void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, UInt32 texture); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendColor", ExactSpelling = true)] internal extern static void BlendColor(Single red, Single green, Single blue, Single alpha); @@ -85,7 +85,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCheckFramebufferStatus", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target); + internal extern static OpenTK.Graphics.ES20.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClear", ExactSpelling = true)] internal extern static void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask); @@ -226,136 +226,136 @@ namespace OpenTK.Graphics.ES20 internal extern static void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)] - internal extern static unsafe void GenBuffers(Int32 n, UInt32* buffers); + internal extern static unsafe void GenBuffers(Int32 n, [OutAttribute] UInt32* buffers); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerateMipmap", ExactSpelling = true)] - internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.BindTextureTarget target); + internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)] - internal extern static unsafe void GenFencesNV(Int32 n, UInt32* fences); + internal extern static unsafe void GenFencesNV(Int32 n, [OutAttribute] UInt32* fences); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)] - internal extern static unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers); + internal extern static unsafe void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenPerfMonitorsAMD", ExactSpelling = true)] - internal extern static unsafe void GenPerfMonitorsAMD(Int32 n, UInt32* monitors); + internal extern static unsafe void GenPerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenRenderbuffers", ExactSpelling = true)] - internal extern static unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers); + internal extern static unsafe void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] - internal extern static unsafe void GenTextures(Int32 n, UInt32* textures); + internal extern static unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] - internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name); + internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name); + internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] - internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders); + internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttribLocation", ExactSpelling = true)] - internal extern static int GetAttribLocation(UInt32 program, String name); + internal extern static int GetAttribLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] - internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.GetBooleanPName pname, bool* @params); + internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32* @params); + internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferPointervOES", ExactSpelling = true)] - internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params); + internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlsQCOM", ExactSpelling = true)] - internal extern static unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls); + internal extern static unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlStringQCOM", ExactSpelling = true)] - internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString); + internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetError", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES20.All GetError(); + internal extern static OpenTK.Graphics.ES20.ErrorCode GetError(); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)] - internal extern static unsafe void GetFenceivNV(UInt32 fence, Int32* @params); + internal extern static unsafe void GetFenceivNV(UInt32 fence, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] - internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.GetFloatPName pname, Single* @params); + internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32* @params); + internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] - internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32* @params); + internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterDataAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten); + internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32* data, [OutAttribute] Int32* bytesWritten); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterInfoAMD", ExactSpelling = true)] - internal extern static void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data); + internal extern static void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCountersAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters); + internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString); + internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorGroupsAMD(Int32* numGroups, Int32 groupsSize, UInt32* groups); + internal extern static unsafe void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, Int32* length, String groupString); + internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramBinaryOES", ExactSpelling = true)] - internal extern static unsafe void GetProgramBinaryOES(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary); + internal extern static unsafe void GetProgramBinaryOES(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog); + internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)] - internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params); + internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32* @params); + internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog); + internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)] - internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params); + internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] - internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32* range, Int32* precision); + internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] - internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.All name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); + internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); + internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformfv", ExactSpelling = true)] - internal extern static unsafe void GetUniformfv(UInt32 program, Int32 location, Single* @params); + internal extern static unsafe void GetUniformfv(UInt32 program, Int32 location, [OutAttribute] Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformiv", ExactSpelling = true)] - internal extern static unsafe void GetUniformiv(UInt32 program, Int32 location, Int32* @params); + internal extern static unsafe void GetUniformiv(UInt32 program, Int32 location, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformLocation", ExactSpelling = true)] - internal extern static int GetUniformLocation(UInt32 program, String name); + internal extern static int GetUniformLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)] - internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params); + internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribiv", ExactSpelling = true)] - internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params); + internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] - internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer); + internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] internal extern static void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode); @@ -394,7 +394,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] - internal extern static void PixelStorei(OpenTK.Graphics.ES20.PixelStorePName pname, OpenTK.Graphics.ES20.PixelStoreParameter param); + internal extern static void PixelStorei(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] internal extern static void PolygonOffset(Single factor, Single units); @@ -457,16 +457,16 @@ namespace OpenTK.Graphics.ES20 internal extern static void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] - internal extern static void TexParameterf(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single param); + internal extern static void TexParameterf(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); + internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)] - internal extern static void TexParameteri(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32 param); + internal extern static void TexParameteri(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); + internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 08ae1099..81903154 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -59,7 +59,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void BindRenderbuffer(OpenTK.Graphics.ES20.RenderbufferTarget target, UInt32 renderbuffer); internal static BindRenderbuffer glBindRenderbuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, UInt32 texture); + internal delegate void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, UInt32 texture); internal static BindTexture glBindTexture; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BlendColor(Single red, Single green, Single blue, Single alpha); @@ -83,7 +83,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void BufferSubData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr size, IntPtr data); internal static BufferSubData glBufferSubData; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target); + internal delegate OpenTK.Graphics.ES20.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target); internal static CheckFramebufferStatus glCheckFramebufferStatus; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Clear(OpenTK.Graphics.ES20.ClearBufferMask mask); @@ -224,136 +224,136 @@ namespace OpenTK.Graphics.ES20 internal delegate void FrontFace(OpenTK.Graphics.ES20.FrontFaceDirection mode); internal static FrontFace glFrontFace; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenBuffers(Int32 n, UInt32* buffers); + internal unsafe delegate void GenBuffers(Int32 n, [OutAttribute] UInt32* buffers); internal unsafe static GenBuffers glGenBuffers; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.BindTextureTarget target); + internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target); internal static GenerateMipmap glGenerateMipmap; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenFencesNV(Int32 n, UInt32* fences); + internal unsafe delegate void GenFencesNV(Int32 n, [OutAttribute] UInt32* fences); internal unsafe static GenFencesNV glGenFencesNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenFramebuffers(Int32 n, UInt32* framebuffers); + internal unsafe delegate void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers); internal unsafe static GenFramebuffers glGenFramebuffers; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenPerfMonitorsAMD(Int32 n, UInt32* monitors); + internal unsafe delegate void GenPerfMonitorsAMD(Int32 n, [OutAttribute] UInt32* monitors); internal unsafe static GenPerfMonitorsAMD glGenPerfMonitorsAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenRenderbuffers(Int32 n, UInt32* renderbuffers); + internal unsafe delegate void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers); internal unsafe static GenRenderbuffers glGenRenderbuffers; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenTextures(Int32 n, UInt32* textures); + internal unsafe delegate void GenTextures(Int32 n, [OutAttribute] UInt32* textures); internal unsafe static GenTextures glGenTextures; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name); + internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); internal unsafe static GetActiveAttrib glGetActiveAttrib; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name); + internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name); internal unsafe static GetActiveUniform glGetActiveUniform; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders); + internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); internal unsafe static GetAttachedShaders glGetAttachedShaders; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int GetAttribLocation(UInt32 program, String name); + internal delegate int GetAttribLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); internal static GetAttribLocation glGetAttribLocation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.GetBooleanPName pname, bool* @params); + internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params); internal unsafe static GetBooleanv glGetBooleanv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32* @params); + internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params); internal unsafe static GetBufferParameteriv glGetBufferParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params); + internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params); internal static GetBufferPointervOES glGetBufferPointervOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls); + internal unsafe delegate void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls); internal unsafe static GetDriverControlsQCOM glGetDriverControlsQCOM; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString); + internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString); internal unsafe static GetDriverControlStringQCOM glGetDriverControlStringQCOM; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES20.All GetError(); + internal delegate OpenTK.Graphics.ES20.ErrorCode GetError(); internal static GetError glGetError; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFenceivNV(UInt32 fence, Int32* @params); + internal unsafe delegate void GetFenceivNV(UInt32 fence, [OutAttribute] Int32* @params); internal unsafe static GetFenceivNV glGetFenceivNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.GetFloatPName pname, Single* @params); + internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single* @params); internal unsafe static GetFloatv glGetFloatv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32* @params); + internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32* @params); internal unsafe static GetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32* @params); + internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params); internal unsafe static GetIntegerv glGetIntegerv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten); + internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32* data, [OutAttribute] Int32* bytesWritten); internal unsafe static GetPerfMonitorCounterDataAMD glGetPerfMonitorCounterDataAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data); + internal delegate void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data); internal static GetPerfMonitorCounterInfoAMD glGetPerfMonitorCounterInfoAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters); + internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters); internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString); + internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString); internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorGroupsAMD(Int32* numGroups, Int32 groupsSize, UInt32* groups); + internal unsafe delegate void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups); internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, Int32* length, String groupString); + internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString); internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramBinaryOES(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary); + internal unsafe delegate void GetProgramBinaryOES(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary); internal unsafe static GetProgramBinaryOES glGetProgramBinaryOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog); + internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); internal unsafe static GetProgramInfoLog glGetProgramInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params); + internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetProgramiv glGetProgramiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32* @params); + internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params); internal unsafe static GetRenderbufferParameteriv glGetRenderbufferParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog); + internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); internal unsafe static GetShaderInfoLog glGetShaderInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params); + internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetShaderiv glGetShaderiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32* range, Int32* precision); + internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); internal unsafe static GetShaderSource glGetShaderSource; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.All name); internal unsafe static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); + internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params); internal unsafe static GetTexParameterfv glGetTexParameterfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); + internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetTexParameteriv glGetTexParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetUniformfv(UInt32 program, Int32 location, Single* @params); + internal unsafe delegate void GetUniformfv(UInt32 program, Int32 location, [OutAttribute] Single* @params); internal unsafe static GetUniformfv glGetUniformfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetUniformiv(UInt32 program, Int32 location, Int32* @params); + internal unsafe delegate void GetUniformiv(UInt32 program, Int32 location, [OutAttribute] Int32* @params); internal unsafe static GetUniformiv glGetUniformiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int GetUniformLocation(UInt32 program, String name); + internal delegate int GetUniformLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); internal static GetUniformLocation glGetUniformLocation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params); + internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params); internal unsafe static GetVertexAttribfv glGetVertexAttribfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params); + internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetVertexAttribiv glGetVertexAttribiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer); + internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer); internal static GetVertexAttribPointerv glGetVertexAttribPointerv; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode); @@ -392,7 +392,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); internal unsafe static MapBufferOES glMapBufferOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PixelStorei(OpenTK.Graphics.ES20.PixelStorePName pname, OpenTK.Graphics.ES20.PixelStoreParameter param); + internal delegate void PixelStorei(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param); internal static PixelStorei glPixelStorei; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void PolygonOffset(Single factor, Single units); @@ -455,16 +455,16 @@ namespace OpenTK.Graphics.ES20 internal delegate void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); internal static TexImage3DOES glTexImage3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterf(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single param); + internal delegate void TexParameterf(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param); internal static TexParameterf glTexParameterf; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params); + internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params); internal unsafe static TexParameterfv glTexParameterfv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameteri(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32 param); + internal delegate void TexParameteri(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param); internal static TexParameteri glTexParameteri; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params); + internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params); internal unsafe static TexParameteriv glTexParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index 68d4f3aa..59b47152 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -212,7 +212,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - unsafe void GenPerfMonitors(Int32 n, Int32* monitors) + unsafe void GenPerfMonitors(Int32 n, [OutAttribute] Int32* monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -226,7 +226,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, Int32[] monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] Int32[] monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -246,7 +246,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, ref Int32 monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] out Int32 monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -257,6 +257,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* monitors_ptr = &monitors) { Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; } } #if DEBUG @@ -267,7 +268,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, ref UInt32 monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] out UInt32 monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -278,6 +279,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* monitors_ptr = &monitors) { Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + monitors = *monitors_ptr; } } #if DEBUG @@ -288,7 +290,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - unsafe void GenPerfMonitors(Int32 n, UInt32* monitors) + unsafe void GenPerfMonitors(Int32 n, [OutAttribute] UInt32* monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -303,7 +305,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] public static - void GenPerfMonitors(Int32 n, UInt32[] monitors) + void GenPerfMonitors(Int32 n, [OutAttribute] UInt32[] monitors) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -324,7 +326,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, Int32* data, Int32* bytesWritten) + unsafe void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] Int32* data, [OutAttribute] Int32* bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -338,7 +340,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, Int32[] data, Int32[] bytesWritten) + void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] Int32[] data, [OutAttribute] Int32[] bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -359,7 +361,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, ref Int32 data, ref Int32 bytesWritten) + void GetPerfMonitorCounterData(Int32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] out Int32 data, [OutAttribute] out Int32 bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -371,6 +373,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* bytesWritten_ptr = &bytesWritten) { Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + data = *data_ptr; + bytesWritten = *bytesWritten_ptr; } } #if DEBUG @@ -381,7 +385,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, ref UInt32 data, ref Int32 bytesWritten) + void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] out UInt32 data, [OutAttribute] out Int32 bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -393,6 +397,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* bytesWritten_ptr = &bytesWritten) { Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + data = *data_ptr; + bytesWritten = *bytesWritten_ptr; } } #if DEBUG @@ -403,7 +409,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten) + unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32* data, [OutAttribute] Int32* bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -418,7 +424,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] public static - void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32[] data, Int32[] bytesWritten) + void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, [OutAttribute] UInt32[] data, [OutAttribute] Int32[] bytesWritten) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -532,7 +538,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] public static - void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data) + void GetPerfMonitorCounterInfo(Int32 group, Int32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -644,7 +650,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] public static - void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data) + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -659,7 +665,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - unsafe void GetPerfMonitorCounters(Int32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, Int32* counters) + unsafe void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] Int32* counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -673,7 +679,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(Int32 group, Int32[] numCounters, Int32[] maxActiveCounters, Int32 counterSize, Int32[] counters) + void GetPerfMonitorCounters(Int32 group, [OutAttribute] Int32[] numCounters, [OutAttribute] Int32[] maxActiveCounters, Int32 counterSize, [OutAttribute] Int32[] counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -695,7 +701,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(Int32 group, ref Int32 numCounters, ref Int32 maxActiveCounters, Int32 counterSize, ref Int32 counters) + void GetPerfMonitorCounters(Int32 group, [OutAttribute] out Int32 numCounters, [OutAttribute] out Int32 maxActiveCounters, Int32 counterSize, [OutAttribute] out Int32 counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -708,6 +714,9 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* counters_ptr = &counters) { Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + numCounters = *numCounters_ptr; + maxActiveCounters = *maxActiveCounters_ptr; + counters = *counters_ptr; } } #if DEBUG @@ -718,7 +727,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - unsafe void GetPerfMonitorCounters(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters) + unsafe void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -733,7 +742,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(UInt32 group, Int32[] numCounters, Int32[] maxActiveCounters, Int32 counterSize, UInt32[] counters) + void GetPerfMonitorCounters(UInt32 group, [OutAttribute] Int32[] numCounters, [OutAttribute] Int32[] maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32[] counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -756,7 +765,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] public static - void GetPerfMonitorCounters(UInt32 group, ref Int32 numCounters, ref Int32 maxActiveCounters, Int32 counterSize, ref UInt32 counters) + void GetPerfMonitorCounters(UInt32 group, [OutAttribute] out Int32 numCounters, [OutAttribute] out Int32 maxActiveCounters, Int32 counterSize, [OutAttribute] out UInt32 counters) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -769,6 +778,9 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* counters_ptr = &counters) { Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + numCounters = *numCounters_ptr; + maxActiveCounters = *maxActiveCounters_ptr; + counters = *counters_ptr; } } #if DEBUG @@ -779,13 +791,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, Int32* length, String counterString) + unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); #if DEBUG } #endif @@ -793,7 +805,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, Int32[] length, String counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -803,7 +815,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); } } #if DEBUG @@ -813,7 +825,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, ref Int32 length, String counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -823,7 +835,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + length = *length_ptr; } } #if DEBUG @@ -834,13 +847,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString) + unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); #if DEBUG } #endif @@ -849,7 +862,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, Int32[] length, String counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -859,7 +872,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); } } #if DEBUG @@ -870,7 +883,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, ref Int32 length, String counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -880,7 +893,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + length = *length_ptr; } } #if DEBUG @@ -891,7 +905,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - unsafe void GetPerfMonitorGroup(Int32* numGroups, Int32 groupsSize, Int32* groups) + unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] Int32* groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -906,7 +920,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - unsafe void GetPerfMonitorGroup(Int32* numGroups, Int32 groupsSize, UInt32* groups) + unsafe void GetPerfMonitorGroup([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -920,7 +934,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(Int32[] numGroups, Int32 groupsSize, Int32[] groups) + void GetPerfMonitorGroup([OutAttribute] Int32[] numGroups, Int32 groupsSize, [OutAttribute] Int32[] groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -942,7 +956,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(Int32[] numGroups, Int32 groupsSize, UInt32[] groups) + void GetPerfMonitorGroup([OutAttribute] Int32[] numGroups, Int32 groupsSize, [OutAttribute] UInt32[] groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -963,7 +977,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(ref Int32 numGroups, Int32 groupsSize, ref Int32 groups) + void GetPerfMonitorGroup([OutAttribute] out Int32 numGroups, Int32 groupsSize, [OutAttribute] out Int32 groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -975,6 +989,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* groups_ptr = &groups) { Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + numGroups = *numGroups_ptr; + groups = *groups_ptr; } } #if DEBUG @@ -985,7 +1001,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] public static - void GetPerfMonitorGroup(ref Int32 numGroups, Int32 groupsSize, ref UInt32 groups) + void GetPerfMonitorGroup([OutAttribute] out Int32 numGroups, Int32 groupsSize, [OutAttribute] out UInt32 groups) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -997,6 +1013,8 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* groups_ptr = &groups) { Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + numGroups = *numGroups_ptr; + groups = *groups_ptr; } } #if DEBUG @@ -1007,13 +1025,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, Int32* length, String groupString) + unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); #if DEBUG } #endif @@ -1021,7 +1039,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, Int32[] length, String groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1031,7 +1049,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); } } #if DEBUG @@ -1041,7 +1059,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, ref Int32 length, String groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1051,7 +1069,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + length = *length_ptr; } } #if DEBUG @@ -1062,13 +1081,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, Int32* length, String groupString) + unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); #if DEBUG } #endif @@ -1077,7 +1096,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, Int32[] length, String groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1087,7 +1106,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); } } #if DEBUG @@ -1098,7 +1117,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, ref Int32 length, String groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1108,7 +1127,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + length = *length_ptr; } } #if DEBUG @@ -1508,13 +1528,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] public static - void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, Int32 texture) + void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, Int32 texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.BindTextureTarget)target, (UInt32)texture); + Delegates.glBindTexture((OpenTK.Graphics.ES20.TextureTarget)target, (UInt32)texture); #if DEBUG } #endif @@ -1537,13 +1557,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] public static - void BindTexture(OpenTK.Graphics.ES20.BindTextureTarget target, UInt32 texture) + void BindTexture(OpenTK.Graphics.ES20.TextureTarget target, UInt32 texture) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.BindTextureTarget)target, (UInt32)texture); + Delegates.glBindTexture((OpenTK.Graphics.ES20.TextureTarget)target, (UInt32)texture); #if DEBUG } #endif @@ -2145,7 +2165,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCheckFramebufferStatus")] public static - OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target) + OpenTK.Graphics.ES20.FramebufferErrorCode CheckFramebufferStatus(OpenTK.Graphics.ES20.FramebufferTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4574,7 +4594,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - unsafe void GenBuffers(Int32 n, Int32* buffers) + unsafe void GenBuffers(Int32 n, [OutAttribute] Int32* buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4602,7 +4622,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, Int32[] buffers) + void GenBuffers(Int32 n, [OutAttribute] Int32[] buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4636,7 +4656,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, ref Int32 buffers) + void GenBuffers(Int32 n, [OutAttribute] out Int32 buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4647,6 +4667,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* buffers_ptr = &buffers) { Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + buffers = *buffers_ptr; } } #if DEBUG @@ -4671,7 +4692,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, ref UInt32 buffers) + void GenBuffers(Int32 n, [OutAttribute] out UInt32 buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4682,6 +4703,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* buffers_ptr = &buffers) { Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + buffers = *buffers_ptr; } } #if DEBUG @@ -4706,7 +4728,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - unsafe void GenBuffers(Int32 n, UInt32* buffers) + unsafe void GenBuffers(Int32 n, [OutAttribute] UInt32* buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4735,7 +4757,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] public static - void GenBuffers(Int32 n, UInt32[] buffers) + void GenBuffers(Int32 n, [OutAttribute] UInt32[] buffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4755,13 +4777,13 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenerateMipmap")] public static - void GenerateMipmap(OpenTK.Graphics.ES20.BindTextureTarget target) + void GenerateMipmap(OpenTK.Graphics.ES20.TextureTarget target) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.BindTextureTarget)target); + Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.TextureTarget)target); #if DEBUG } #endif @@ -4770,7 +4792,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - unsafe void GenFramebuffers(Int32 n, Int32* framebuffers) + unsafe void GenFramebuffers(Int32 n, [OutAttribute] Int32* framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4784,7 +4806,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, Int32[] framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] Int32[] framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4804,7 +4826,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, ref Int32 framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] out Int32 framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4815,6 +4837,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* framebuffers_ptr = &framebuffers) { Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + framebuffers = *framebuffers_ptr; } } #if DEBUG @@ -4825,7 +4848,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, ref UInt32 framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] out UInt32 framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4836,6 +4859,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* framebuffers_ptr = &framebuffers) { Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + framebuffers = *framebuffers_ptr; } } #if DEBUG @@ -4846,7 +4870,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers) + unsafe void GenFramebuffers(Int32 n, [OutAttribute] UInt32* framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4861,7 +4885,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] public static - void GenFramebuffers(Int32 n, UInt32[] framebuffers) + void GenFramebuffers(Int32 n, [OutAttribute] UInt32[] framebuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4882,7 +4906,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - unsafe void GenRenderbuffers(Int32 n, Int32* renderbuffers) + unsafe void GenRenderbuffers(Int32 n, [OutAttribute] Int32* renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4896,7 +4920,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, Int32[] renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] Int32[] renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4916,7 +4940,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, ref Int32 renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] out Int32 renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4927,6 +4951,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* renderbuffers_ptr = &renderbuffers) { Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + renderbuffers = *renderbuffers_ptr; } } #if DEBUG @@ -4937,7 +4962,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, ref UInt32 renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] out UInt32 renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4948,6 +4973,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* renderbuffers_ptr = &renderbuffers) { Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + renderbuffers = *renderbuffers_ptr; } } #if DEBUG @@ -4958,7 +4984,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers) + unsafe void GenRenderbuffers(Int32 n, [OutAttribute] UInt32* renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -4973,7 +4999,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] public static - void GenRenderbuffers(Int32 n, UInt32[] renderbuffers) + void GenRenderbuffers(Int32 n, [OutAttribute] UInt32[] renderbuffers) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5008,7 +5034,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - unsafe void GenTextures(Int32 n, Int32* textures) + unsafe void GenTextures(Int32 n, [OutAttribute] Int32* textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5036,7 +5062,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, Int32[] textures) + void GenTextures(Int32 n, [OutAttribute] Int32[] textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5070,7 +5096,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, ref Int32 textures) + void GenTextures(Int32 n, [OutAttribute] out Int32 textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5081,6 +5107,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* textures_ptr = &textures) { Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + textures = *textures_ptr; } } #if DEBUG @@ -5105,7 +5132,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, ref UInt32 textures) + void GenTextures(Int32 n, [OutAttribute] out UInt32 textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5116,6 +5143,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* textures_ptr = &textures) { Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + textures = *textures_ptr; } } #if DEBUG @@ -5140,7 +5168,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - unsafe void GenTextures(Int32 n, UInt32* textures) + unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5169,7 +5197,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] public static - void GenTextures(Int32 n, UInt32[] textures) + void GenTextures(Int32 n, [OutAttribute] UInt32[] textures) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5229,13 +5257,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name) + unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -5282,7 +5310,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveAttribType[] type, String name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5294,7 +5322,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); } } #if DEBUG @@ -5343,7 +5371,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveAttribType type, String name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5355,7 +5383,10 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5405,13 +5436,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveAttribType* type, String name) + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -5459,7 +5490,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveAttribType[] type, String name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5471,7 +5502,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); } } #if DEBUG @@ -5521,7 +5552,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveAttribType type, String name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5533,7 +5564,10 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (String)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5583,13 +5617,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name) + unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -5636,7 +5670,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveUniformType[] type, String name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5648,7 +5682,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); } } #if DEBUG @@ -5697,7 +5731,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveUniformType type, String name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5709,7 +5743,10 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5759,13 +5796,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.ActiveUniformType* type, String name) + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -5813,7 +5850,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.ActiveUniformType[] type, String name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5825,7 +5862,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); } } #if DEBUG @@ -5875,7 +5912,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.ActiveUniformType type, String name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5887,7 +5924,10 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (String)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + length = *length_ptr; + size = *size_ptr; + type = *type_ptr; } } #if DEBUG @@ -5922,7 +5962,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - unsafe void GetAttachedShaders(Int32 program, Int32 maxcount, Int32* count, Int32* shaders) + unsafe void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] Int32* shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5960,7 +6000,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(Int32 program, Int32 maxcount, Int32[] count, Int32[] shaders) + void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] Int32[] count, [OutAttribute] Int32[] shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6005,7 +6045,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(Int32 program, Int32 maxcount, ref Int32 count, ref Int32 shaders) + void GetAttachedShaders(Int32 program, Int32 maxcount, [OutAttribute] out Int32 count, [OutAttribute] out Int32 shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6017,6 +6057,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* shaders_ptr = &shaders) { Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); + count = *count_ptr; + shaders = *shaders_ptr; } } #if DEBUG @@ -6051,7 +6093,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders) + unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6090,7 +6132,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32[] count, UInt32[] shaders) + void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32[] count, [OutAttribute] UInt32[] shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6136,7 +6178,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] public static - void GetAttachedShaders(UInt32 program, Int32 maxcount, ref Int32 count, ref UInt32 shaders) + void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] out Int32 count, [OutAttribute] out UInt32 shaders) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6148,6 +6190,8 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* shaders_ptr = &shaders) { Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); + count = *count_ptr; + shaders = *shaders_ptr; } } #if DEBUG @@ -6171,13 +6215,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttribLocation")] public static - int GetAttribLocation(Int32 program, String name) + int GetAttribLocation(Int32 program, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetAttribLocation((UInt32)program, (String)name); + return Delegates.glGetAttribLocation((UInt32)program, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -6200,13 +6244,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttribLocation")] public static - int GetAttribLocation(UInt32 program, String name) + int GetAttribLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetAttribLocation((UInt32)program, (String)name); + return Delegates.glGetAttribLocation((UInt32)program, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -6215,13 +6259,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - unsafe void GetBoolean(OpenTK.Graphics.ES20.GetBooleanPName pname, bool* @params) + unsafe void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetBooleanPName)pname, (bool*)@params); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params); #if DEBUG } #endif @@ -6229,7 +6273,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - void GetBoolean(OpenTK.Graphics.ES20.GetBooleanPName pname, bool[] @params) + void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6239,7 +6283,7 @@ namespace OpenTK.Graphics.ES20 { fixed (bool* @params_ptr = @params) { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetBooleanPName)pname, (bool*)@params_ptr); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params_ptr); } } #if DEBUG @@ -6249,7 +6293,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] public static - void GetBoolean(OpenTK.Graphics.ES20.GetBooleanPName pname, ref bool @params) + void GetBoolean(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out bool @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6259,7 +6303,8 @@ namespace OpenTK.Graphics.ES20 { fixed (bool* @params_ptr = &@params) { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetBooleanPName)pname, (bool*)@params_ptr); + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.GetPName)pname, (bool*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6289,13 +6334,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - unsafe void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32* @params) + unsafe void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.GetBufferPName)pname, (Int32*)@params); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6322,7 +6367,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, Int32[] @params) + void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6332,7 +6377,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.GetBufferPName)pname, (Int32*)@params_ptr); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6361,7 +6406,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] public static - void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.GetBufferPName pname, ref Int32 @params) + void GetBufferParameter(OpenTK.Graphics.ES20.BufferTarget target, OpenTK.Graphics.ES20.BufferParameterName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6371,7 +6416,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.GetBufferPName)pname, (Int32*)@params_ptr); + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.BufferTarget)target, (OpenTK.Graphics.ES20.BufferParameterName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6382,7 +6428,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, Int32* driverControls) + unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] Int32* driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6397,7 +6443,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls) + unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6411,7 +6457,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(Int32[] num, Int32 size, Int32[] driverControls) + void GetDriverControlsQCOM([OutAttribute] Int32[] num, Int32 size, [OutAttribute] Int32[] driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6433,7 +6479,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(Int32[] num, Int32 size, UInt32[] driverControls) + void GetDriverControlsQCOM([OutAttribute] Int32[] num, Int32 size, [OutAttribute] UInt32[] driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6454,7 +6500,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(ref Int32 num, Int32 size, ref Int32 driverControls) + void GetDriverControlsQCOM([OutAttribute] out Int32 num, Int32 size, [OutAttribute] out Int32 driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6466,6 +6512,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* driverControls_ptr = &driverControls) { Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + num = *num_ptr; + driverControls = *driverControls_ptr; } } #if DEBUG @@ -6476,7 +6524,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] public static - void GetDriverControlsQCOM(ref Int32 num, Int32 size, ref UInt32 driverControls) + void GetDriverControlsQCOM([OutAttribute] out Int32 num, Int32 size, [OutAttribute] out UInt32 driverControls) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6488,6 +6536,8 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* driverControls_ptr = &driverControls) { Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + num = *num_ptr; + driverControls = *driverControls_ptr; } } #if DEBUG @@ -6498,13 +6548,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, Int32* length, String driverControlString) + unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)driverControlString); #if DEBUG } #endif @@ -6512,7 +6562,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, Int32[] length, String driverControlString) + void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6522,7 +6572,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); } } #if DEBUG @@ -6532,7 +6582,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, ref Int32 length, String driverControlString) + void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6542,7 +6592,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); + length = *length_ptr; } } #if DEBUG @@ -6553,13 +6604,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString) + unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)driverControlString); #if DEBUG } #endif @@ -6568,7 +6619,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32[] length, String driverControlString) + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6578,7 +6629,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); } } #if DEBUG @@ -6589,7 +6640,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, ref Int32 length, String driverControlString) + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6599,7 +6650,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); + length = *length_ptr; } } #if DEBUG @@ -6613,14 +6665,14 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetError")] public static - OpenTK.Graphics.ES20.All GetError() + OpenTK.Graphics.ES20.ErrorCode GetError() { return Delegates.glGetError(); } [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - void GetFloat(OpenTK.Graphics.ES20.GetFloatPName pname, ref Single @params) + void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6630,7 +6682,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetFloatPName)pname, (Single*)@params_ptr); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6641,13 +6694,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - unsafe void GetFloat(OpenTK.Graphics.ES20.GetFloatPName pname, Single* @params) + unsafe void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetFloatPName)pname, (Single*)@params); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params); #if DEBUG } #endif @@ -6655,7 +6708,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] public static - void GetFloat(OpenTK.Graphics.ES20.GetFloatPName pname, Single[] @params) + void GetFloat(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6665,7 +6718,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetFloatPName)pname, (Single*)@params_ptr); + Delegates.glGetFloatv((OpenTK.Graphics.ES20.GetPName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -6676,13 +6729,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32* @params) + unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferAttachmentParameter)pname, (Int32*)@params); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6690,7 +6743,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, Int32[] @params) + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6700,7 +6753,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferAttachmentParameter)pname, (Int32*)@params_ptr); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6710,7 +6763,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] public static - void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferAttachmentParameter pname, ref Int32 @params) + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.FramebufferParameterName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6720,7 +6773,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferAttachmentParameter)pname, (Int32*)@params_ptr); + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.FramebufferTarget)target, (OpenTK.Graphics.ES20.FramebufferSlot)attachment, (OpenTK.Graphics.ES20.FramebufferParameterName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6731,13 +6785,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - unsafe void GetInteger(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32* @params) + unsafe void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetIntegerPName)pname, (Int32*)@params); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params); #if DEBUG } #endif @@ -6745,7 +6799,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - void GetInteger(OpenTK.Graphics.ES20.GetIntegerPName pname, Int32[] @params) + void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6755,7 +6809,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetIntegerPName)pname, (Int32*)@params_ptr); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -6765,7 +6819,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] public static - void GetInteger(OpenTK.Graphics.ES20.GetIntegerPName pname, ref Int32 @params) + void GetInteger(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6775,7 +6829,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetIntegerPName)pname, (Int32*)@params_ptr); + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.GetPName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -6810,7 +6865,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6848,7 +6903,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6892,7 +6947,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6903,6 +6958,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* length_ptr = &length) { Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -6937,7 +6993,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6976,7 +7032,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7021,7 +7077,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7032,6 +7088,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* length_ptr = &length) { Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -7061,13 +7118,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params) + unsafe void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7094,7 +7151,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32[] @params) + void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7104,7 +7161,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7133,7 +7190,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramPName pname, ref Int32 @params) + void GetProgram(Int32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7143,7 +7200,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7173,13 +7231,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32* @params) + unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7207,7 +7265,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, Int32[] @params) + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7217,7 +7275,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7247,7 +7305,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] public static - void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramPName pname, ref Int32 @params) + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7257,7 +7315,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramPName)pname, (Int32*)@params_ptr); + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.ProgramParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7268,13 +7327,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32* @params) + unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.GetRenderbufferPName)pname, (Int32*)@params); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -7282,7 +7341,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, Int32[] @params) + void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7292,7 +7351,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.GetRenderbufferPName)pname, (Int32*)@params_ptr); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7302,7 +7361,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] public static - void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.GetRenderbufferPName pname, ref Int32 @params) + void GetRenderbufferParameter(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7312,7 +7371,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.GetRenderbufferPName)pname, (Int32*)@params_ptr); + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.RenderbufferTarget)target, (OpenTK.Graphics.ES20.RenderbufferParameterName)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7347,13 +7407,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, Int32* length, String infolog) + unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); #if DEBUG } #endif @@ -7385,7 +7445,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufsize, Int32[] length, String infolog) + void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7395,7 +7455,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); } } #if DEBUG @@ -7429,7 +7489,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufsize, ref Int32 length, String infolog) + void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7439,7 +7499,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -7474,13 +7535,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog) + unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); #if DEBUG } #endif @@ -7513,7 +7574,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32[] length, String infolog) + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7523,7 +7584,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); } } #if DEBUG @@ -7558,7 +7619,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufsize, ref Int32 length, String infolog) + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7568,7 +7629,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + length = *length_ptr; } } #if DEBUG @@ -7598,13 +7660,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params) + unsafe void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7631,7 +7693,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32[] @params) + void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7641,7 +7703,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7670,7 +7732,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderPName pname, ref Int32 @params) + void GetShader(Int32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7680,7 +7742,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7710,13 +7773,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32* @params) + unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -7744,7 +7807,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, Int32[] @params) + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7754,7 +7817,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -7784,7 +7847,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] public static - void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderPName pname, ref Int32 @params) + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7794,7 +7857,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderPName)pname, (Int32*)@params_ptr); + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.ShaderParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -7805,7 +7869,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32* range, Int32* precision) + unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7819,7 +7883,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, Int32[] range, Int32[] precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32[] range, [OutAttribute] Int32[] precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7840,7 +7904,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] public static - void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, ref Int32 range, ref Int32 precision) + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] out Int32 range, [OutAttribute] out Int32 precision) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7852,6 +7916,8 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* precision_ptr = &precision) { Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.ShaderType)shadertype, (OpenTK.Graphics.ES20.ShaderPrecision)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + range = *range_ptr; + precision = *precision_ptr; } } #if DEBUG @@ -7886,7 +7952,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(Int32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7924,7 +7990,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7968,7 +8034,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7979,6 +8045,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* length_ptr = &length) { Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + length = *length_ptr; } } #if DEBUG @@ -8013,7 +8080,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8052,7 +8119,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8097,7 +8164,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8108,6 +8175,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* length_ptr = &length) { Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + length = *length_ptr; } } #if DEBUG @@ -8160,7 +8228,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, ref Single @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8170,7 +8238,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params_ptr); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8200,13 +8269,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - unsafe void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params) + unsafe void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params); #if DEBUG } #endif @@ -8233,7 +8302,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single[] @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8243,7 +8312,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params_ptr); + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Single*)@params_ptr); } } #if DEBUG @@ -8273,13 +8342,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - unsafe void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params) + unsafe void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -8306,7 +8375,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32[] @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8316,7 +8385,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params_ptr); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -8345,7 +8414,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] public static - void GetTexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, ref Int32 @params) + void GetTexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8355,7 +8424,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params_ptr); + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.GetTextureParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8384,7 +8454,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(Int32 program, Int32 location, ref Single @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8395,6 +8465,7 @@ namespace OpenTK.Graphics.ES20 fixed (Single* @params_ptr = &@params) { Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8424,7 +8495,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - unsafe void GetUniform(Int32 program, Int32 location, Single* @params) + unsafe void GetUniform(Int32 program, Int32 location, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8457,7 +8528,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(Int32 program, Int32 location, Single[] @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8497,7 +8568,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(UInt32 program, Int32 location, ref Single @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8508,6 +8579,7 @@ namespace OpenTK.Graphics.ES20 fixed (Single* @params_ptr = &@params) { Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8537,7 +8609,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - unsafe void GetUniform(UInt32 program, Int32 location, Single* @params) + unsafe void GetUniform(UInt32 program, Int32 location, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8571,7 +8643,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] public static - void GetUniform(UInt32 program, Int32 location, Single[] @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8611,7 +8683,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - unsafe void GetUniform(Int32 program, Int32 location, Int32* @params) + unsafe void GetUniform(Int32 program, Int32 location, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8644,7 +8716,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(Int32 program, Int32 location, Int32[] @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8683,7 +8755,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(Int32 program, Int32 location, ref Int32 @params) + void GetUniform(Int32 program, Int32 location, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8694,6 +8766,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8723,7 +8796,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - unsafe void GetUniform(UInt32 program, Int32 location, Int32* @params) + unsafe void GetUniform(UInt32 program, Int32 location, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8757,7 +8830,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(UInt32 program, Int32 location, Int32[] @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8797,7 +8870,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] public static - void GetUniform(UInt32 program, Int32 location, ref Int32 @params) + void GetUniform(UInt32 program, Int32 location, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8808,6 +8881,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8831,13 +8905,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformLocation")] public static - int GetUniformLocation(Int32 program, String name) + int GetUniformLocation(Int32 program, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetUniformLocation((UInt32)program, (String)name); + return Delegates.glGetUniformLocation((UInt32)program, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -8860,13 +8934,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformLocation")] public static - int GetUniformLocation(UInt32 program, String name) + int GetUniformLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetUniformLocation((UInt32)program, (String)name); + return Delegates.glGetUniformLocation((UInt32)program, (System.Text.StringBuilder)name); #if DEBUG } #endif @@ -8893,7 +8967,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Single @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8903,7 +8977,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -8933,13 +9008,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params) + unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params); #if DEBUG } #endif @@ -8966,7 +9041,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Single[] @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8976,7 +9051,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9006,7 +9081,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Single @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Single @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9016,7 +9091,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = &@params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -9046,13 +9122,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single* @params) + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params); #if DEBUG } #endif @@ -9080,7 +9156,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Single[] @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9090,7 +9166,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Single*)@params_ptr); + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Single*)@params_ptr); } } #if DEBUG @@ -9120,13 +9196,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params) + unsafe void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -9153,7 +9229,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32[] @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9163,7 +9239,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9192,7 +9268,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Int32 @params) + void GetVertexAttrib(Int32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9202,7 +9278,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -9232,13 +9309,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32* @params) + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params); #if DEBUG } #endif @@ -9266,7 +9343,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, Int32[] @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9276,7 +9353,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -9306,7 +9383,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] public static - void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexArray pname, ref Int32 @params) + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9316,7 +9393,8 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = &@params) { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexArray)pname, (Int32*)@params_ptr); + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribParameter)pname, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -9345,7 +9423,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9355,7 +9433,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9388,7 +9466,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9398,7 +9476,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9430,7 +9508,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9440,7 +9518,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9472,7 +9550,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9482,7 +9560,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9514,13 +9592,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -9548,7 +9626,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9558,7 +9636,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9592,7 +9670,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9602,7 +9680,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9635,7 +9713,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9645,7 +9723,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9678,7 +9756,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9688,7 +9766,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9721,13 +9799,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexPointer pname, IntPtr pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexPointer)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -10116,13 +10194,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glPixelStorei")] public static - void PixelStore(OpenTK.Graphics.ES20.PixelStorePName pname, OpenTK.Graphics.ES20.PixelStoreParameter param) + void PixelStore(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glPixelStorei((OpenTK.Graphics.ES20.PixelStorePName)pname, (OpenTK.Graphics.ES20.PixelStoreParameter)param); + Delegates.glPixelStorei((OpenTK.Graphics.ES20.PixelStoreParameter)pname, (Int32)param); #if DEBUG } #endif @@ -12222,13 +12300,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterf")] public static - void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single param) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameterf((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single)param); + Delegates.glTexParameterf((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single)param); #if DEBUG } #endif @@ -12256,13 +12334,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] public static - unsafe void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single* @params) + unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params); + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single*)@params); #if DEBUG } #endif @@ -12289,7 +12367,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] public static - void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Single[] @params) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12299,7 +12377,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Single* @params_ptr = @params) { - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Single*)@params_ptr); + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Single*)@params_ptr); } } #if DEBUG @@ -12328,13 +12406,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteri")] public static - void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32 param) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32 param) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameteri((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32)param); + Delegates.glTexParameteri((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32)param); #if DEBUG } #endif @@ -12362,13 +12440,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] public static - unsafe void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32* @params) + unsafe void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params); + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32*)@params); #if DEBUG } #endif @@ -12395,7 +12473,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] public static - void TexParameter(OpenTK.Graphics.ES20.BindTextureTarget target, OpenTK.Graphics.ES20.TexturePName pname, Int32[] @params) + void TexParameter(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12405,7 +12483,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* @params_ptr = @params) { - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.BindTextureTarget)target, (OpenTK.Graphics.ES20.TexturePName)pname, (Int32*)@params_ptr); + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.TextureTarget)target, (OpenTK.Graphics.ES20.TextureParameterName)pname, (Int32*)@params_ptr); } } #if DEBUG @@ -15666,7 +15744,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - unsafe void GenFences(Int32 n, Int32* fences) + unsafe void GenFences(Int32 n, [OutAttribute] Int32* fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15680,7 +15758,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, Int32[] fences) + void GenFences(Int32 n, [OutAttribute] Int32[] fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15700,7 +15778,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, ref Int32 fences) + void GenFences(Int32 n, [OutAttribute] out Int32 fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15711,6 +15789,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* fences_ptr = &fences) { Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); + fences = *fences_ptr; } } #if DEBUG @@ -15721,7 +15800,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, ref UInt32 fences) + void GenFences(Int32 n, [OutAttribute] out UInt32 fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15732,6 +15811,7 @@ namespace OpenTK.Graphics.ES20 fixed (UInt32* fences_ptr = &fences) { Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); + fences = *fences_ptr; } } #if DEBUG @@ -15742,7 +15822,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - unsafe void GenFences(Int32 n, UInt32* fences) + unsafe void GenFences(Int32 n, [OutAttribute] UInt32* fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15757,7 +15837,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] public static - void GenFences(Int32 n, UInt32[] fences) + void GenFences(Int32 n, [OutAttribute] UInt32[] fences) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15778,7 +15858,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - unsafe void GetFence(Int32 fence, Int32* @params) + unsafe void GetFence(Int32 fence, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15792,7 +15872,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(Int32 fence, Int32[] @params) + void GetFence(Int32 fence, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15812,7 +15892,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(Int32 fence, ref Int32 @params) + void GetFence(Int32 fence, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15823,6 +15903,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -15833,7 +15914,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - unsafe void GetFence(UInt32 fence, Int32* @params) + unsafe void GetFence(UInt32 fence, [OutAttribute] Int32* @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15848,7 +15929,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(UInt32 fence, Int32[] @params) + void GetFence(UInt32 fence, [OutAttribute] Int32[] @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15869,7 +15950,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] public static - void GetFence(UInt32 fence, ref Int32 @params) + void GetFence(UInt32 fence, [OutAttribute] out Int32 @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -15880,6 +15961,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* @params_ptr = &@params) { Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr); + @params = *@params_ptr; } } #if DEBUG @@ -16917,7 +16999,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] public static - void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params) + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [OutAttribute] IntPtr @params) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -16932,7 +17014,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -16957,7 +17039,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -16981,7 +17063,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17005,7 +17087,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17029,7 +17111,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(Int32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary) + unsafe void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17043,7 +17125,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17074,7 +17156,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17104,7 +17186,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17134,7 +17216,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17164,7 +17246,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, IntPtr binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17185,7 +17267,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17201,6 +17283,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; binary = (T4)binary_ptr.Target; } finally @@ -17216,7 +17300,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17232,6 +17316,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17246,7 +17332,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17262,6 +17348,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17276,7 +17364,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17292,6 +17380,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17306,7 +17396,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(Int32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary) + void GetProgramBinary(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17318,6 +17408,8 @@ namespace OpenTK.Graphics.ES20 fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } } #if DEBUG @@ -17328,7 +17420,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17353,7 +17445,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17377,7 +17469,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17401,7 +17493,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17425,7 +17517,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary) + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17440,7 +17532,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17472,7 +17564,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17503,7 +17595,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17534,7 +17626,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17565,7 +17657,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, IntPtr binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] OpenTK.Graphics.ES20.All[] binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17587,7 +17679,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) where T4 : struct { #if DEBUG @@ -17603,6 +17695,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; binary = (T4)binary_ptr.Target; } finally @@ -17619,7 +17713,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) where T4 : struct { #if DEBUG @@ -17635,6 +17729,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17650,7 +17746,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) where T4 : struct { #if DEBUG @@ -17666,6 +17762,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17681,7 +17779,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) where T4 : struct { #if DEBUG @@ -17697,6 +17795,8 @@ namespace OpenTK.Graphics.ES20 try { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } finally { @@ -17712,7 +17812,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] public static - void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary) + void GetProgramBinary(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out OpenTK.Graphics.ES20.All binaryFormat, [OutAttribute] IntPtr binary) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17724,6 +17824,8 @@ namespace OpenTK.Graphics.ES20 fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) { Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary); + length = *length_ptr; + binaryFormat = *binaryFormat_ptr; } } #if DEBUG diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index 433441fb..b077feea 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -75,13 +75,10 @@ namespace OpenTK.Graphics.ES20 ColorBufferBit = ((int)0x00004000), Lines = ((int)0x0001), LineLoop = ((int)0x0002), - Two = ((int)0X0002), LineStrip = ((int)0x0003), Triangles = ((int)0x0004), - Four = ((int)0X0004), TriangleStrip = ((int)0x0005), TriangleFan = ((int)0x0006), - Eight = ((int)0X0008), Never = ((int)0x0200), Less = ((int)0x0201), Equal = ((int)0x0202), @@ -517,12 +514,6 @@ namespace OpenTK.Graphics.ES20 TriangleFan = ((int)0x0006), } - public enum BindTextureTarget : int - { - Texture2D = ((int)0X0de1), - TextureCubeMap = ((int)0X8513), - } - public enum BlendEquationSeparate : int { FuncAdd = ((int)0x8006), @@ -601,6 +592,12 @@ namespace OpenTK.Graphics.ES20 DynamicDraw = ((int)0x88E8), } + public enum BufferParameterName : int + { + BufferSize = ((int)0X8764), + BufferUsage = ((int)0X8765), + } + public enum BufferTarget : int { ArrayBuffer = ((int)0X8892), @@ -702,15 +699,7 @@ namespace OpenTK.Graphics.ES20 ExtTextureType2101010Rev = ((int)1), } - public enum FramebufferAttachmentParameter : int - { - FramebufferAttachmentObjectType = ((int)0X8cd0), - FramebufferAttachmentObjectName = ((int)0X8cd1), - FramebufferAttachmentTextureLevel = ((int)0X8cd2), - FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), - } - - public enum FramebufferError : int + public enum FramebufferErrorCode : int { FramebufferComplete = ((int)0X8cd5), FramebufferIncompleteAttachment = ((int)0X8cd6), @@ -757,6 +746,14 @@ namespace OpenTK.Graphics.ES20 Rgb565 = ((int)0x8D62), } + public enum FramebufferParameterName : int + { + FramebufferAttachmentObjectType = ((int)0X8cd0), + FramebufferAttachmentObjectName = ((int)0X8cd1), + FramebufferAttachmentTextureLevel = ((int)0X8cd2), + FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), + } + public enum FramebufferSlot : int { ColorAttachment0 = ((int)0X8ce0), @@ -775,102 +772,6 @@ namespace OpenTK.Graphics.ES20 Ccw = ((int)0x0901), } - public enum GetBooleanPName : int - { - DepthWritemask = ((int)0X0b72), - ColorWritemask = ((int)0X0c23), - SampleCoverageInvert = ((int)0X80ab), - ShaderCompiler = ((int)0X8dfa), - } - - public enum GetBufferPName : int - { - BufferSize = ((int)0X8764), - BufferUsage = ((int)0X8765), - } - - public enum GetFloatPName : int - { - LineWidth = ((int)0X0b21), - DepthRange = ((int)0X0b70), - ColorClearValue = ((int)0X0c22), - PolygonOffsetUnits = ((int)0X2a00), - BlendColor = ((int)0X8005), - PolygonOffsetFactor = ((int)0X8038), - SampleCoverageValue = ((int)0X80aa), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - } - - public enum GetIntegerPName : int - { - CullFaceMode = ((int)0X0b45), - FrontFace = ((int)0X0b46), - DepthClearValue = ((int)0X0b73), - DepthFunc = ((int)0X0b74), - StencilClearValue = ((int)0X0b91), - StencilFunc = ((int)0X0b92), - StencilValueMask = ((int)0X0b93), - StencilFail = ((int)0X0b94), - StencilPassDepthFail = ((int)0X0b95), - StencilPassDepthPass = ((int)0X0b96), - StencilRef = ((int)0X0b97), - StencilWritemask = ((int)0X0b98), - Viewport = ((int)0X0ba2), - ScissorBox = ((int)0X0c10), - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - MaxTextureSize = ((int)0X0d33), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - BlendEquation = ((int)0X8009), - BlendEquationRgb = ((int)0X8009), - TextureBinding2D = ((int)0X8069), - SampleBuffers = ((int)0X80a8), - Samples = ((int)0X80a9), - BlendDstRgb = ((int)0X80c8), - BlendSrcRgb = ((int)0X80c9), - BlendDstAlpha = ((int)0X80ca), - BlendSrcAlpha = ((int)0X80cb), - GenerateMipmapHint = ((int)0X8192), - ActiveTexture = ((int)0X84e0), - MaxRenderbufferSize = ((int)0X84e8), - TextureBindingCubeMap = ((int)0X8514), - MaxCubeMapTextureSize = ((int)0X851c), - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - StencilBackFunc = ((int)0X8800), - StencilBackFail = ((int)0X8801), - StencilBackPassDepthFail = ((int)0X8802), - StencilBackPassDepthPass = ((int)0X8803), - BlendEquationAlpha = ((int)0X883d), - MaxVertexAttribs = ((int)0X8869), - MaxTextureImageUnits = ((int)0X8872), - ArrayBufferBinding = ((int)0X8894), - ElementArrayBufferBinding = ((int)0X8895), - MaxVertexTextureImageUnits = ((int)0X8b4c), - MaxCombinedTextureImageUnits = ((int)0X8b4d), - CurrentProgram = ((int)0X8b8d), - ImplementationColorReadType = ((int)0X8b9a), - ImplementationColorReadFormat = ((int)0X8b9b), - StencilBackRef = ((int)0X8ca3), - StencilBackValueMask = ((int)0X8ca4), - StencilBackWritemask = ((int)0X8ca5), - FramebufferBinding = ((int)0X8ca6), - RenderbufferBinding = ((int)0X8ca7), - ShaderBinaryFormats = ((int)0X8df8), - NumShaderBinaryFormats = ((int)0X8df9), - MaxVertexUniformVectors = ((int)0X8dfb), - MaxVaryingVectors = ((int)0X8dfc), - MaxFragmentUniformVectors = ((int)0X8dfd), - } - public enum GetPName : int { LineWidth = ((int)0x0B21), @@ -904,38 +805,61 @@ namespace OpenTK.Graphics.ES20 DepthBits = ((int)0x0D56), StencilBits = ((int)0x0D57), PolygonOffsetUnits = ((int)0x2A00), + BlendColor = ((int)0X8005), + BlendEquation = ((int)0X8009), + BlendEquationRgb = ((int)0X8009), PolygonOffsetFactor = ((int)0x8038), TextureBinding2D = ((int)0x8069), SampleBuffers = ((int)0x80A8), Samples = ((int)0x80A9), SampleCoverageValue = ((int)0x80AA), SampleCoverageInvert = ((int)0x80AB), + BlendDstRgb = ((int)0X80c8), + BlendSrcRgb = ((int)0X80c9), + BlendDstAlpha = ((int)0X80ca), + BlendSrcAlpha = ((int)0X80cb), + GenerateMipmapHint = ((int)0X8192), AliasedPointSizeRange = ((int)0x846D), AliasedLineWidthRange = ((int)0x846E), + ActiveTexture = ((int)0X84e0), + MaxRenderbufferSize = ((int)0X84e8), + TextureBindingCubeMap = ((int)0X8514), + MaxCubeMapTextureSize = ((int)0X851c), + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), StencilBackFunc = ((int)0x8800), StencilBackFail = ((int)0x8801), StencilBackPassDepthFail = ((int)0x8802), StencilBackPassDepthPass = ((int)0x8803), + BlendEquationAlpha = ((int)0X883d), + MaxVertexAttribs = ((int)0X8869), + MaxTextureImageUnits = ((int)0X8872), + ArrayBufferBinding = ((int)0X8894), + ElementArrayBufferBinding = ((int)0X8895), + MaxVertexTextureImageUnits = ((int)0X8b4c), + MaxCombinedTextureImageUnits = ((int)0X8b4d), + CurrentProgram = ((int)0X8b8d), + ImplementationColorReadType = ((int)0X8b9a), + ImplementationColorReadFormat = ((int)0X8b9b), StencilBackRef = ((int)0x8CA3), StencilBackValueMask = ((int)0x8CA4), StencilBackWritemask = ((int)0x8CA5), - } - - public enum GetRenderbufferPName : int - { - RenderbufferWidth = ((int)0X8d42), - RenderbufferHeight = ((int)0X8d43), - RenderbufferInternalFormat = ((int)0X8d44), - RenderbufferRedSize = ((int)0X8d50), - RenderbufferGreenSize = ((int)0X8d51), - RenderbufferBlueSize = ((int)0X8d52), - RenderbufferAlphaSize = ((int)0X8d53), - RenderbufferDepthSize = ((int)0X8d54), - RenderbufferStencilSize = ((int)0X8d55), + FramebufferBinding = ((int)0X8ca6), + RenderbufferBinding = ((int)0X8ca7), + ShaderBinaryFormats = ((int)0X8df8), + NumShaderBinaryFormats = ((int)0X8df9), + ShaderCompiler = ((int)0X8dfa), + MaxVertexUniformVectors = ((int)0X8dfb), + MaxVaryingVectors = ((int)0X8dfc), + MaxFragmentUniformVectors = ((int)0X8dfd), } public enum GetTextureParameter : int { + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), NumCompressedTextureFormats = ((int)0x86A2), CompressedTextureFormats = ((int)0x86A3), } @@ -1159,14 +1083,6 @@ namespace OpenTK.Graphics.ES20 } public enum PixelStoreParameter : int - { - One = ((int)0X0001), - Two = ((int)0X0002), - Four = ((int)0X0004), - Eight = ((int)0X0008), - } - - public enum PixelStorePName : int { UnpackAlignment = ((int)0X0cf5), PackAlignment = ((int)0X0d05), @@ -1191,7 +1107,7 @@ namespace OpenTK.Graphics.ES20 TriangleFan = ((int)0X0006), } - public enum ProgramPName : int + public enum ProgramParameter : int { DeleteStatus = ((int)0X8b80), LinkStatus = ((int)0X8b82), @@ -1230,6 +1146,19 @@ namespace OpenTK.Graphics.ES20 Rgb565 = ((int)0X8d62), } + public enum RenderbufferParameterName : int + { + RenderbufferWidth = ((int)0X8d42), + RenderbufferHeight = ((int)0X8d43), + RenderbufferInternalFormat = ((int)0X8d44), + RenderbufferRedSize = ((int)0X8d50), + RenderbufferGreenSize = ((int)0X8d51), + RenderbufferBlueSize = ((int)0X8d52), + RenderbufferAlphaSize = ((int)0X8d53), + RenderbufferDepthSize = ((int)0X8d54), + RenderbufferStencilSize = ((int)0X8d55), + } + public enum RenderbufferTarget : int { Renderbuffer = ((int)0X8d41), @@ -1254,7 +1183,7 @@ namespace OpenTK.Graphics.ES20 NumShaderBinaryFormats = ((int)0x8DF9), } - public enum ShaderPName : int + public enum ShaderParameter : int { ShaderType = ((int)0X8b4f), DeleteStatus = ((int)0X8b80), @@ -1389,14 +1318,6 @@ namespace OpenTK.Graphics.ES20 TextureWrapT = ((int)0x2803), } - public enum TexturePName : int - { - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - } - public enum TextureTarget : int { Texture2D = ((int)0X0de1), @@ -1475,7 +1396,18 @@ namespace OpenTK.Graphics.ES20 SamplerCube = ((int)0x8B60), } - public enum VertexArray : int + public enum VertexArrays : int + { + VertexAttribArrayEnabled = ((int)0x8622), + VertexAttribArraySize = ((int)0x8623), + VertexAttribArrayStride = ((int)0x8624), + VertexAttribArrayType = ((int)0x8625), + VertexAttribArrayPointer = ((int)0x8645), + VertexAttribArrayNormalized = ((int)0x886A), + VertexAttribArrayBufferBinding = ((int)0x889F), + } + + public enum VertexAttribParameter : int { VertexAttribArrayEnabled = ((int)0X8622), VertexAttribArraySize = ((int)0X8623), @@ -1486,15 +1418,9 @@ namespace OpenTK.Graphics.ES20 VertexAttribArrayBufferBinding = ((int)0X889f), } - public enum VertexArrays : int + public enum VertexAttribPointerType : int { - VertexAttribArrayEnabled = ((int)0x8622), - VertexAttribArraySize = ((int)0x8623), - VertexAttribArrayStride = ((int)0x8624), - VertexAttribArrayType = ((int)0x8625), - VertexAttribArrayPointer = ((int)0x8645), - VertexAttribArrayNormalized = ((int)0x886A), - VertexAttribArrayBufferBinding = ((int)0x889F), + VertexAttribArrayPointer = ((int)0X8645), } public enum VertexAttribType : int @@ -1507,9 +1433,4 @@ namespace OpenTK.Graphics.ES20 Fixed = ((int)0X140c), } - public enum VertexPointer : int - { - VertexAttribArrayPointer = ((int)0X8645), - } - } From 1803ea7004799d95bcfffa4e0d692aff9897ea18 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 06:59:04 +0000 Subject: [PATCH 10/18] Added applicable helper overloads from desktop OpenGL. Added missing license information. --- Source/OpenTK/Graphics/ES20/Helper.cs | 372 +++++++++++++++++++++++++- 1 file changed, 371 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Graphics/ES20/Helper.cs b/Source/OpenTK/Graphics/ES20/Helper.cs index 7c62aac9..78c9ae4f 100644 --- a/Source/OpenTK/Graphics/ES20/Helper.cs +++ b/Source/OpenTK/Graphics/ES20/Helper.cs @@ -1,4 +1,31 @@ -using System; +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +using System; using System.Collections.Generic; using System.Text; @@ -10,5 +37,348 @@ namespace OpenTK.Graphics.ES20 public sealed partial class GL : GraphicsBindingsBase { const string Library = "libGLESv2.dll"; + + #region Helper Overloads + +#pragma warning disable 3019 +#pragma warning disable 1591 +#pragma warning disable 1572 +#pragma warning disable 1573 + + // Note: Mono 1.9.1 truncates StringBuilder results (for 'out string' parameters). + // We work around this issue by doubling the StringBuilder capacity. + + #region public static void ClearColor() overloads + + public static void ClearColor(System.Drawing.Color color) + { + GL.ClearColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f); + } + + public static void ClearColor(Color4 color) + { + GL.ClearColor(color.R, color.G, color.B, color.A); + } + + #endregion + + #region public static void BlendColor() overloads + + public static void BlendColor(System.Drawing.Color color) + { + GL.BlendColor(color.R / 255.0f, color.G / 255.0f, color.B / 255.0f, color.A / 255.0f); + } + + #endregion + + #region Uniform + + [CLSCompliant(false)] + public static void Uniform2(int location, ref Vector2 vector) + { + GL.Uniform2(location, vector.X, vector.Y); + } + + [CLSCompliant(false)] + public static void Uniform3(int location, ref Vector3 vector) + { + GL.Uniform3(location, vector.X, vector.Y, vector.Z); + } + + [CLSCompliant(false)] + public static void Uniform4(int location, ref Vector4 vector) + { + GL.Uniform4(location, vector.X, vector.Y, vector.Z, vector.W); + } + + public static void Uniform2(int location, Vector2 vector) + { + GL.Uniform2(location, vector.X, vector.Y); + } + + public static void Uniform3(int location, Vector3 vector) + { + GL.Uniform3(location, vector.X, vector.Y, vector.Z); + } + + public static void Uniform4(int location, Vector4 vector) + { + GL.Uniform4(location, vector.X, vector.Y, vector.Z, vector.W); + } + + public static void Uniform4(int location, Color4 color) + { + GL.Uniform4(location, color.R, color.G, color.B, color.A); + } + + public static void Uniform4(int location, Quaternion quaternion) + { + GL.Uniform4(location, quaternion.X, quaternion.Y, quaternion.Z, quaternion.W); + } + + public static void UniformMatrix4(int location, bool transpose, ref Matrix4 matrix) + { + unsafe + { + fixed (float* matrix_ptr = &matrix.Row0.X) + { + GL.UniformMatrix4(location, 1, transpose, matrix_ptr); + } + } + } + + + #endregion + + #region Shaders + + #region GetActiveAttrib + + public static string GetActiveAttrib(int program, int index, out int size, out ActiveAttribType type) + { + int length; + GetProgram(program, ProgramParameter.ActiveAttributeMaxLength, out length); + StringBuilder sb = new StringBuilder(length == 0 ? 1 : length * 2); + + GetActiveAttrib(program, index, sb.Capacity, out length, out size, out type, sb); + return sb.ToString(); + } + + #endregion + + #region GetActiveUniform + + public static string GetActiveUniform(int program, int uniformIndex, out int size, out ActiveUniformType type) + { + int length; + GetProgram(program, ProgramParameter.ActiveUniformMaxLength, out length); + + StringBuilder sb = new StringBuilder(length == 0 ? 1 : length); + GetActiveUniform(program, uniformIndex, sb.Capacity, out length, out size, out type, sb); + return sb.ToString(); + } + + #endregion + + #region public static void ShaderSource(Int32 shader, System.String @string) + + public static void ShaderSource(Int32 shader, System.String @string) + { + unsafe + { + int length = @string.Length; + GL.ShaderSource((UInt32)shader, 1, new string[] { @string }, &length); + } + } + + #endregion + + #region public static string GetShaderInfoLog(Int32 shader) + + public static string GetShaderInfoLog(Int32 shader) + { + string info; + GetShaderInfoLog(shader, out info); + return info; + } + + #endregion + + #region public static void GetShaderInfoLog(Int32 shader, out string info) + + public static void GetShaderInfoLog(Int32 shader, out string info) + { + unsafe + { + int length; + GL.GetShader(shader, ShaderParameter.InfoLogLength, out length); + if (length == 0) + { + info = String.Empty; + return; + } + StringBuilder sb = new StringBuilder(length * 2); + GL.GetShaderInfoLog((UInt32)shader, sb.Capacity, &length, sb); + info = sb.ToString(); + } + } + + #endregion + + #region public static string GetProgramInfoLog(Int32 program) + + public static string GetProgramInfoLog(Int32 program) + { + string info; + GetProgramInfoLog(program, out info); + return info; + } + + #endregion + + #region public static void GetProgramInfoLog(Int32 program, out string info) + + public static void GetProgramInfoLog(Int32 program, out string info) + { + unsafe + { + int length; + GL.GetProgram(program, ProgramParameter.InfoLogLength, out length); if (length == 0) + { + info = String.Empty; + return; + } + StringBuilder sb = new StringBuilder(length * 2); + GL.GetProgramInfoLog((UInt32)program, sb.Capacity, &length, sb); + info = sb.ToString(); + } + } + + #endregion + + #endregion + + #region public static void VertexAttrib2(Int32 index, ref Vector2 v) + + [CLSCompliant(false)] + public static void VertexAttrib2(Int32 index, ref Vector2 v) + { + GL.VertexAttrib2(index, v.X, v.Y); + } + + #endregion + + #region public static void VertexAttrib3(Int32 index, ref Vector3 v) + + [CLSCompliant(false)] + public static void VertexAttrib3(Int32 index, ref Vector3 v) + { + GL.VertexAttrib3(index, v.X, v.Y, v.Z); + } + + #endregion + + #region public static void VertexAttrib4(Int32 index, ref Vector4 v) + + [CLSCompliant(false)] + public static void VertexAttrib4(Int32 index, ref Vector4 v) + { + GL.VertexAttrib4(index, v.X, v.Y, v.Z, v.W); + } + + #endregion + + #region public static void VertexAttrib2(Int32 index, Vector2 v) + + public static void VertexAttrib2(Int32 index, Vector2 v) + { + GL.VertexAttrib2(index, v.X, v.Y); + } + + #endregion + + #region public static void VertexAttrib3(Int32 index, Vector3 v) + + public static void VertexAttrib3(Int32 index, Vector3 v) + { + GL.VertexAttrib3(index, v.X, v.Y, v.Z); + } + + #endregion + + #region public static void VertexAttrib4(Int32 index, Vector4 v) + + public static void VertexAttrib4(Int32 index, Vector4 v) + { + GL.VertexAttrib4(index, v.X, v.Y, v.Z, v.W); + } + + #endregion + + #region public static int GenTexture() + + public static int GenTexture() + { + int id; + GenTextures(1, out id); + return id; + } + + #endregion + + #region public static void DeleteTexture(int id) + + public static void DeleteTexture(int id) + { + DeleteTextures(1, ref id); + } + + #endregion + + #region Get[Float|Double] + + public static void GetFloat(GetPName pname, out Vector2 vector) + { + unsafe + { + fixed (Vector2* ptr = &vector) + GetFloat(pname, (float*)ptr); + } + } + + public static void GetFloat(GetPName pname, out Vector3 vector) + { + unsafe + { + fixed (Vector3* ptr = &vector) + GetFloat(pname, (float*)ptr); + } + } + + public static void GetFloat(GetPName pname, out Vector4 vector) + { + unsafe + { + fixed (Vector4* ptr = &vector) + GetFloat(pname, (float*)ptr); + } + } + + public static void GetFloat(GetPName pname, out Matrix4 matrix) + { + unsafe + { + fixed (Matrix4* ptr = &matrix) + GetFloat(pname, (float*)ptr); + } + } + + #endregion + + #region Viewport + + public static void Viewport(System.Drawing.Size size) + { + GL.Viewport(0, 0, size.Width, size.Height); + } + + public static void Viewport(System.Drawing.Point location, System.Drawing.Size size) + { + GL.Viewport(location.X, location.Y, size.Width, size.Height); + } + + public static void Viewport(System.Drawing.Rectangle rectangle) + { + GL.Viewport(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); + } + + #endregion + +#pragma warning restore 3019 +#pragma warning restore 1591 +#pragma warning restore 1572 +#pragma warning restore 1573 + + #endregion } } From 9223285fd7e91679032275129f0330908f6d8b44 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 07:19:09 +0000 Subject: [PATCH 11/18] Added correct enum types for GetString and ShaderBinary. Added EnableCap tokens to GetPName, in accordance to specs. --- Source/Bind/ES/ESGenerator.cs | 3 +- Source/Bind/Specifications/ES20/overrides.xml | 35 +++-- Source/OpenTK/Graphics/ES20/Core.cs | 6 +- Source/OpenTK/Graphics/ES20/Delegates.cs | 6 +- Source/OpenTK/Graphics/ES20/ES.cs | 144 +++++++++--------- Source/OpenTK/Graphics/ES20/Enums.cs | 14 ++ 6 files changed, 118 insertions(+), 90 deletions(-) diff --git a/Source/Bind/ES/ESGenerator.cs b/Source/Bind/ES/ESGenerator.cs index b0143c77..de626bbe 100644 --- a/Source/Bind/ES/ESGenerator.cs +++ b/Source/Bind/ES/ESGenerator.cs @@ -131,7 +131,8 @@ namespace Bind.ES { Constant c = new Constant(param.GetAttribute("name", String.Empty), param.GetAttribute("value", String.Empty)); Utilities.Merge(all, c); - e.ConstantCollection.Add(c.Name, c); + try { e.ConstantCollection.Add(c.Name, c); } + catch (ArgumentException ex) { Console.WriteLine("[Warning] Failed to add constant {0} to enum {1}: {2}", c.Name, e.Name, ex.Message); } } Utilities.Merge(enums, e); diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 7ba9ed89..6d00b652 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -5,8 +5,13 @@ String + StringName + + ShaderBinaryFormat + + String* @@ -197,7 +202,7 @@ PixelFormat PixelType - + TextureTarget PixelInternalFormat @@ -214,6 +219,7 @@ TextureTarget + PixelFormat @@ -674,15 +680,6 @@ - - @@ -762,8 +759,24 @@ + + + + + + + + + + + - + + + + + diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index 5c1716d2..0e2c8bcb 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -112,7 +112,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] - internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, IntPtr data); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage3DOES", ExactSpelling = true)] internal extern static void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); @@ -331,7 +331,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.All name); + internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.StringName name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params); @@ -424,7 +424,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)] - internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length); + internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderSource", ExactSpelling = true)] internal extern static unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 81903154..a9105f75 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -110,7 +110,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data); internal static CompressedTexImage3DOES glCompressedTexImage3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, IntPtr data); internal static CompressedTexSubImage2D glCompressedTexSubImage2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); @@ -329,7 +329,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); internal unsafe static GetShaderSource glGetShaderSource; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.All name); + internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.StringName name); internal unsafe static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params); @@ -422,7 +422,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition); internal static SetFenceNV glSetFenceNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length); + internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length); internal unsafe static ShaderBinary glShaderBinary; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index 59b47152..dfaacbe4 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -2717,7 +2717,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) where T8 : struct { #if DEBUG @@ -2727,7 +2727,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); data = (T8)data_ptr.Target; } finally @@ -2790,7 +2790,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) where T8 : struct { #if DEBUG @@ -2800,7 +2800,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2862,7 +2862,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) where T8 : struct { #if DEBUG @@ -2872,7 +2872,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -2934,7 +2934,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) where T8 : struct { #if DEBUG @@ -2944,7 +2944,7 @@ namespace OpenTK.Graphics.ES20 GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); try { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); } finally { @@ -3006,13 +3006,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] public static - void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data) + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.TextureTarget target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, Int32 imageSize, IntPtr data) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.TextureTarget)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.PixelFormat)format, (Int32)imageSize, (IntPtr)data); #if DEBUG } #endif @@ -8195,13 +8195,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetString")] public static - unsafe string GetString(OpenTK.Graphics.ES20.All name) + unsafe string GetString(OpenTK.Graphics.ES20.StringName name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES20.All)name)); + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES20.StringName)name)); #if DEBUG } #endif @@ -10573,7 +10573,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10583,7 +10583,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10598,7 +10598,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10608,7 +10608,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10622,7 +10622,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10632,7 +10632,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10646,7 +10646,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10656,7 +10656,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10670,13 +10670,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); #if DEBUG } #endif @@ -10684,7 +10684,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10698,7 +10698,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10714,7 +10714,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10728,7 +10728,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10743,7 +10743,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10757,7 +10757,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10772,7 +10772,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10786,7 +10786,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10801,7 +10801,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, Int32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10811,7 +10811,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* shaders_ptr = shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -10821,7 +10821,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10835,7 +10835,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10851,7 +10851,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10865,7 +10865,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10880,7 +10880,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10894,7 +10894,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10909,7 +10909,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -10923,7 +10923,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -10938,7 +10938,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, ref Int32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10948,7 +10948,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* shaders_ptr = &shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -10959,7 +10959,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -10973,7 +10973,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -10990,7 +10990,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11004,7 +11004,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11020,7 +11020,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11034,7 +11034,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11050,7 +11050,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11064,7 +11064,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11080,7 +11080,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -11090,7 +11090,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt32* shaders_ptr = &shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG @@ -11101,7 +11101,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -11111,7 +11111,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -11126,7 +11126,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11136,7 +11136,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11150,7 +11150,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11160,7 +11160,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11174,7 +11174,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11184,7 +11184,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11198,13 +11198,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); #if DEBUG } #endif @@ -11213,7 +11213,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) where T3 : struct { #if DEBUG @@ -11227,7 +11227,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); binary = (T3)binary_ptr.Target; } finally @@ -11244,7 +11244,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11258,7 +11258,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11274,7 +11274,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11288,7 +11288,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11304,7 +11304,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) where T3 : struct { #if DEBUG @@ -11318,7 +11318,7 @@ namespace OpenTK.Graphics.ES20 GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); try { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); } finally { @@ -11334,7 +11334,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] public static - void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.ShaderBinaryFormat binaryformat, IntPtr binary, Int32 length) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -11344,7 +11344,7 @@ namespace OpenTK.Graphics.ES20 { fixed (UInt32* shaders_ptr = shaders) { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.ShaderBinaryFormat)binaryformat, (IntPtr)binary, (Int32)length); } } #if DEBUG diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index b077feea..8c1ac03e 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -775,12 +775,15 @@ namespace OpenTK.Graphics.ES20 public enum GetPName : int { LineWidth = ((int)0x0B21), + CullFace = ((int)0X0b44), CullFaceMode = ((int)0x0B45), FrontFace = ((int)0x0B46), DepthRange = ((int)0x0B70), + DepthTest = ((int)0X0b71), DepthWritemask = ((int)0x0B72), DepthClearValue = ((int)0x0B73), DepthFunc = ((int)0x0B74), + StencilTest = ((int)0X0b90), StencilClearValue = ((int)0x0B91), StencilFunc = ((int)0x0B92), StencilValueMask = ((int)0x0B93), @@ -790,7 +793,10 @@ namespace OpenTK.Graphics.ES20 StencilRef = ((int)0x0B97), StencilWritemask = ((int)0x0B98), Viewport = ((int)0x0BA2), + Dither = ((int)0X0bd0), + Blend = ((int)0X0be2), ScissorBox = ((int)0x0C10), + ScissorTest = ((int)0X0c11), ColorClearValue = ((int)0x0C22), ColorWritemask = ((int)0x0C23), UnpackAlignment = ((int)0x0CF5), @@ -804,12 +810,16 @@ namespace OpenTK.Graphics.ES20 AlphaBits = ((int)0x0D55), DepthBits = ((int)0x0D56), StencilBits = ((int)0x0D57), + Texture2D = ((int)0X0de1), PolygonOffsetUnits = ((int)0x2A00), BlendColor = ((int)0X8005), BlendEquation = ((int)0X8009), BlendEquationRgb = ((int)0X8009), + PolygonOffsetFill = ((int)0X8037), PolygonOffsetFactor = ((int)0x8038), TextureBinding2D = ((int)0x8069), + SampleAlphaToCoverage = ((int)0X809e), + SampleCoverage = ((int)0X80a0), SampleBuffers = ((int)0x80A8), Samples = ((int)0x80A9), SampleCoverageValue = ((int)0x80AA), @@ -1183,6 +1193,10 @@ namespace OpenTK.Graphics.ES20 NumShaderBinaryFormats = ((int)0x8DF9), } + public enum ShaderBinaryFormat : int + { + } + public enum ShaderParameter : int { ShaderType = ((int)0X8b4f), From 3d05a448ccf86125e15a923e72ca6a5701789b9f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 14:51:03 +0000 Subject: [PATCH 12/18] Normalized line endings. --- Source/Bind/Specifications/ES20/overrides.xml | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 6d00b652..7c8ebb29 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -1,21 +1,21 @@ - - - - - - - String - StringName - - - - ShaderBinaryFormat - - - - String* - - + + + + + + + String + StringName + + + + ShaderBinaryFormat + + + + String* + + BlendMode @@ -36,7 +36,7 @@ BlendFactor BlendFactor - + BufferTarget @@ -49,11 +49,11 @@ BufferTarget - + VertexAttribType - + HintTarget HintMode @@ -83,8 +83,8 @@ StencilOperation StencilOperation StencilOperation - - + + BufferTarget BufferParameterName @@ -102,7 +102,7 @@ ShaderType ShaderPrecision - + CullFaceMode @@ -286,11 +286,11 @@ ErrorCode - - - - - + + + + + @@ -779,4 +779,4 @@ - + From 58c12d0d0533fe82db6b830aacee9a35d7ac2995 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 15:32:43 +0000 Subject: [PATCH 13/18] GetAttribLocation: name parameter should have a flow of in, not out. Fixed a number of signatures that were different from desktop OpenGL. --- Source/Bind/Specifications/ES20/overrides.xml | 76 ++++++---- Source/OpenTK/Graphics/ES20/Core.cs | 22 +-- Source/OpenTK/Graphics/ES20/Delegates.cs | 22 +-- Source/OpenTK/Graphics/ES20/ES.cs | 136 +++++++++--------- Source/OpenTK/Graphics/ES20/Enums.cs | 80 +++++------ 5 files changed, 174 insertions(+), 162 deletions(-) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 7c8ebb29..759572a4 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -17,24 +17,24 @@ - BlendMode + BlendEquationMode - BlendMode - BlendMode + BlendEquationMode + BlendEquationMode - BlendFactor - BlendFactor + BlendingFactorSrc + BlendingFactorDst - BlendFactor - BlendFactor - BlendFactor - BlendFactor + BlendingFactorSrc + BlendingFactorDst + BlendingFactorSrc + BlendingFactorDst @@ -51,7 +51,7 @@ - VertexAttribType + VertexAttribPointerType @@ -73,16 +73,16 @@ - StencilOperation - StencilOperation - StencilOperation + StencilOp + StencilOp + StencilOp CullFaceMode - StencilOperation - StencilOperation - StencilOperation + StencilOp + StencilOp + StencilOp @@ -112,11 +112,11 @@ - PrimitiveMode + BeginMode - PrimitiveMode + BeginMode DrawElementsType @@ -165,7 +165,7 @@ - VertexAttribPointerType + VertexAttribPointerParameter @@ -287,18 +287,22 @@ ErrorCode - + + + in + + - + - + @@ -315,7 +319,25 @@ - + + + + + + + + + + + + + + + + + + + @@ -332,7 +354,7 @@ - + @@ -378,7 +400,7 @@ - + @@ -488,7 +510,7 @@ - + @@ -513,7 +535,7 @@ - + diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index 0e2c8bcb..e87af039 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -67,16 +67,16 @@ namespace OpenTK.Graphics.ES20 internal extern static void BlendColor(Single red, Single green, Single blue, Single alpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquation", ExactSpelling = true)] - internal extern static void BlendEquation(OpenTK.Graphics.ES20.BlendMode mode); + internal extern static void BlendEquation(OpenTK.Graphics.ES20.BlendEquationMode mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)] - internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendMode modeRGB, OpenTK.Graphics.ES20.BlendMode modeAlpha); + internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] - internal extern static void BlendFunc(OpenTK.Graphics.ES20.BlendFactor sfactor, OpenTK.Graphics.ES20.BlendFactor dfactor); + internal extern static void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDst dfactor); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)] - internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendFactor srcRGB, OpenTK.Graphics.ES20.BlendFactor dstRGB, OpenTK.Graphics.ES20.BlendFactor srcAlpha, OpenTK.Graphics.ES20.BlendFactor dstAlpha); + internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDst dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDst dstAlpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)] internal extern static void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); @@ -181,10 +181,10 @@ namespace OpenTK.Graphics.ES20 internal extern static void DisableVertexAttribArray(UInt32 index); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] - internal extern static void DrawArrays(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 first, Int32 count); + internal extern static void DrawArrays(OpenTK.Graphics.ES20.BeginMode mode, Int32 first, Int32 count); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] - internal extern static void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices); + internal extern static void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)] internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image); @@ -256,7 +256,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttribLocation", ExactSpelling = true)] - internal extern static int GetAttribLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); + internal extern static int GetAttribLocation(UInt32 program, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params); @@ -355,7 +355,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] - internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer); + internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] internal extern static void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode); @@ -442,10 +442,10 @@ namespace OpenTK.Graphics.ES20 internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] - internal extern static void StencilOp(OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); + internal extern static void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] - internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); + internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] internal extern static bool TestFenceNV(UInt32 fence); @@ -565,7 +565,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void VertexAttrib4fv(UInt32 indx, Single* values); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttribPointer", ExactSpelling = true)] - internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr); + internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glViewport", ExactSpelling = true)] internal extern static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index a9105f75..094cf9d2 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -65,16 +65,16 @@ namespace OpenTK.Graphics.ES20 internal delegate void BlendColor(Single red, Single green, Single blue, Single alpha); internal static BlendColor glBlendColor; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquation(OpenTK.Graphics.ES20.BlendMode mode); + internal delegate void BlendEquation(OpenTK.Graphics.ES20.BlendEquationMode mode); internal static BlendEquation glBlendEquation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendMode modeRGB, OpenTK.Graphics.ES20.BlendMode modeAlpha); + internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha); internal static BlendEquationSeparate glBlendEquationSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFunc(OpenTK.Graphics.ES20.BlendFactor sfactor, OpenTK.Graphics.ES20.BlendFactor dfactor); + internal delegate void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDst dfactor); internal static BlendFunc glBlendFunc; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendFactor srcRGB, OpenTK.Graphics.ES20.BlendFactor dstRGB, OpenTK.Graphics.ES20.BlendFactor srcAlpha, OpenTK.Graphics.ES20.BlendFactor dstAlpha); + internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDst dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDst dstAlpha); internal static BlendFuncSeparate glBlendFuncSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); @@ -179,10 +179,10 @@ namespace OpenTK.Graphics.ES20 internal delegate void DisableVertexAttribArray(UInt32 index); internal static DisableVertexAttribArray glDisableVertexAttribArray; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawArrays(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 first, Int32 count); + internal delegate void DrawArrays(OpenTK.Graphics.ES20.BeginMode mode, Int32 first, Int32 count); internal static DrawArrays glDrawArrays; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices); + internal delegate void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices); internal static DrawElements glDrawElements; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image); @@ -254,7 +254,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); internal unsafe static GetAttachedShaders glGetAttachedShaders; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int GetAttribLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); + internal delegate int GetAttribLocation(UInt32 program, String name); internal static GetAttribLocation glGetAttribLocation; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.GetPName pname, [OutAttribute] bool* @params); @@ -353,7 +353,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetVertexAttribiv glGetVertexAttribiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer); + internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer); internal static GetVertexAttribPointerv glGetVertexAttribPointerv; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Hint(OpenTK.Graphics.ES20.HintTarget target, OpenTK.Graphics.ES20.HintMode mode); @@ -440,10 +440,10 @@ namespace OpenTK.Graphics.ES20 internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask); internal static StencilMaskSeparate glStencilMaskSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOp(OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); + internal delegate void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass); internal static StencilOp glStencilOp; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass); + internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass); internal static StencilOpSeparate glStencilOpSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate bool TestFenceNV(UInt32 fence); @@ -563,7 +563,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void VertexAttrib4fv(UInt32 indx, Single* values); internal unsafe static VertexAttrib4fv glVertexAttrib4fv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr); + internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr); internal static VertexAttribPointer glVertexAttribPointer; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index dfaacbe4..48d8305f 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -1603,13 +1603,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquation")] public static - void BlendEquation(OpenTK.Graphics.ES20.BlendMode mode) + void BlendEquation(OpenTK.Graphics.ES20.BlendEquationMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquation((OpenTK.Graphics.ES20.BlendMode)mode); + Delegates.glBlendEquation((OpenTK.Graphics.ES20.BlendEquationMode)mode); #if DEBUG } #endif @@ -1631,13 +1631,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquationSeparate")] public static - void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendMode modeRGB, OpenTK.Graphics.ES20.BlendMode modeAlpha) + void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.BlendMode)modeRGB, (OpenTK.Graphics.ES20.BlendMode)modeAlpha); + Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.BlendEquationMode)modeRGB, (OpenTK.Graphics.ES20.BlendEquationMode)modeAlpha); #if DEBUG } #endif @@ -1659,13 +1659,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFunc")] public static - void BlendFunc(OpenTK.Graphics.ES20.BlendFactor sfactor, OpenTK.Graphics.ES20.BlendFactor dfactor) + void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDst dfactor) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES20.BlendFactor)sfactor, (OpenTK.Graphics.ES20.BlendFactor)dfactor); + Delegates.glBlendFunc((OpenTK.Graphics.ES20.BlendingFactorSrc)sfactor, (OpenTK.Graphics.ES20.BlendingFactorDst)dfactor); #if DEBUG } #endif @@ -1697,13 +1697,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFuncSeparate")] public static - void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendFactor srcRGB, OpenTK.Graphics.ES20.BlendFactor dstRGB, OpenTK.Graphics.ES20.BlendFactor srcAlpha, OpenTK.Graphics.ES20.BlendFactor dstAlpha) + void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDst dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDst dstAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.BlendFactor)srcRGB, (OpenTK.Graphics.ES20.BlendFactor)dstRGB, (OpenTK.Graphics.ES20.BlendFactor)srcAlpha, (OpenTK.Graphics.ES20.BlendFactor)dstAlpha); + Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.BlendingFactorSrc)srcRGB, (OpenTK.Graphics.ES20.BlendingFactorDst)dstRGB, (OpenTK.Graphics.ES20.BlendingFactorSrc)srcAlpha, (OpenTK.Graphics.ES20.BlendingFactorDst)dstAlpha); #if DEBUG } #endif @@ -4122,13 +4122,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawArrays")] public static - void DrawArrays(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 first, Int32 count) + void DrawArrays(OpenTK.Graphics.ES20.BeginMode mode, Int32 first, Int32 count) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDrawArrays((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)first, (Int32)count); + Delegates.glDrawArrays((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)first, (Int32)count); #if DEBUG } #endif @@ -4160,7 +4160,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] ref T3 indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] ref T3 indices) where T3 : struct { #if DEBUG @@ -4170,7 +4170,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); indices = (T3)indices_ptr.Target; } finally @@ -4208,7 +4208,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,,] indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,,] indices) where T3 : struct { #if DEBUG @@ -4218,7 +4218,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4255,7 +4255,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,] indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[,] indices) where T3 : struct { #if DEBUG @@ -4265,7 +4265,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4302,7 +4302,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[] indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, [InAttribute, OutAttribute] T3[] indices) where T3 : struct { #if DEBUG @@ -4312,7 +4312,7 @@ namespace OpenTK.Graphics.ES20 GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); try { - Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); } finally { @@ -4349,13 +4349,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] public static - void DrawElements(OpenTK.Graphics.ES20.PrimitiveMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices) + void DrawElements(OpenTK.Graphics.ES20.BeginMode mode, Int32 count, OpenTK.Graphics.ES20.DrawElementsType type, IntPtr indices) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glDrawElements((OpenTK.Graphics.ES20.PrimitiveMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices); + Delegates.glDrawElements((OpenTK.Graphics.ES20.BeginMode)mode, (Int32)count, (OpenTK.Graphics.ES20.DrawElementsType)type, (IntPtr)indices); #if DEBUG } #endif @@ -6215,13 +6215,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttribLocation")] public static - int GetAttribLocation(Int32 program, [OutAttribute] System.Text.StringBuilder name) + int GetAttribLocation(Int32 program, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetAttribLocation((UInt32)program, (System.Text.StringBuilder)name); + return Delegates.glGetAttribLocation((UInt32)program, (String)name); #if DEBUG } #endif @@ -6244,13 +6244,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttribLocation")] public static - int GetAttribLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name) + int GetAttribLocation(UInt32 program, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetAttribLocation((UInt32)program, (System.Text.StringBuilder)name); + return Delegates.glGetAttribLocation((UInt32)program, (String)name); #if DEBUG } #endif @@ -9423,7 +9423,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9433,7 +9433,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9466,7 +9466,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9476,7 +9476,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9508,7 +9508,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9518,7 +9518,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9550,7 +9550,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9560,7 +9560,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9592,13 +9592,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -9626,7 +9626,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -9636,7 +9636,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -9670,7 +9670,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -9680,7 +9680,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9713,7 +9713,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -9723,7 +9723,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9756,7 +9756,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -9766,7 +9766,7 @@ namespace OpenTK.Graphics.ES20 GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -9799,13 +9799,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerType)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -11877,13 +11877,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOp")] public static - void StencilOp(OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass) + void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOp((OpenTK.Graphics.ES20.StencilOperation)fail, (OpenTK.Graphics.ES20.StencilOperation)zfail, (OpenTK.Graphics.ES20.StencilOperation)zpass); + Delegates.glStencilOp((OpenTK.Graphics.ES20.StencilOp)fail, (OpenTK.Graphics.ES20.StencilOp)zfail, (OpenTK.Graphics.ES20.StencilOp)zpass); #if DEBUG } #endif @@ -11915,13 +11915,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOpSeparate")] public static - void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOperation fail, OpenTK.Graphics.ES20.StencilOperation zfail, OpenTK.Graphics.ES20.StencilOperation zpass) + void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilOperation)fail, (OpenTK.Graphics.ES20.StencilOperation)zfail, (OpenTK.Graphics.ES20.StencilOperation)zpass); + Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilOp)fail, (OpenTK.Graphics.ES20.StencilOp)zfail, (OpenTK.Graphics.ES20.StencilOp)zpass); #if DEBUG } #endif @@ -15047,7 +15047,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) where T5 : struct { #if DEBUG @@ -15057,7 +15057,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); ptr = (T5)ptr_ptr.Target; } finally @@ -15105,7 +15105,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) where T5 : struct { #if DEBUG @@ -15115,7 +15115,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15162,7 +15162,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) where T5 : struct { #if DEBUG @@ -15172,7 +15172,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15219,7 +15219,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) where T5 : struct { #if DEBUG @@ -15229,7 +15229,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15276,13 +15276,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr) + void VertexAttribPointer(Int32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); #if DEBUG } #endif @@ -15325,7 +15325,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) where T5 : struct { #if DEBUG @@ -15335,7 +15335,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); ptr = (T5)ptr_ptr.Target; } finally @@ -15384,7 +15384,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) where T5 : struct { #if DEBUG @@ -15394,7 +15394,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15442,7 +15442,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) where T5 : struct { #if DEBUG @@ -15452,7 +15452,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15500,7 +15500,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) where T5 : struct { #if DEBUG @@ -15510,7 +15510,7 @@ namespace OpenTK.Graphics.ES20 GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); try { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); } finally { @@ -15558,13 +15558,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] public static - void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribType type, bool normalized, Int32 stride, IntPtr ptr) + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.VertexAttribPointerType type, bool normalized, Int32 stride, IntPtr ptr) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.VertexAttribPointerType)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index 8c1ac03e..ea8e3178 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -514,6 +514,13 @@ namespace OpenTK.Graphics.ES20 TriangleFan = ((int)0x0006), } + public enum BlendEquationMode : int + { + FuncAdd = ((int)0X8006), + FuncSubtract = ((int)0X800a), + FuncReverseSubtract = ((int)0X800b), + } + public enum BlendEquationSeparate : int { FuncAdd = ((int)0x8006), @@ -521,7 +528,19 @@ namespace OpenTK.Graphics.ES20 BlendEquationAlpha = ((int)0x883D), } - public enum BlendFactor : int + public enum BlendingFactorDest : int + { + Zero = ((int)0), + SrcColor = ((int)0x0300), + OneMinusSrcColor = ((int)0x0301), + SrcAlpha = ((int)0x0302), + OneMinusSrcAlpha = ((int)0x0303), + DstAlpha = ((int)0x0304), + OneMinusDstAlpha = ((int)0x0305), + One = ((int)1), + } + + public enum BlendingFactorDst : int { Zero = ((int)0), SrcColor = ((int)0X0300), @@ -540,30 +559,23 @@ namespace OpenTK.Graphics.ES20 One = ((int)1), } - public enum BlendingFactorDest : int - { - Zero = ((int)0), - SrcColor = ((int)0x0300), - OneMinusSrcColor = ((int)0x0301), - SrcAlpha = ((int)0x0302), - OneMinusSrcAlpha = ((int)0x0303), - DstAlpha = ((int)0x0304), - OneMinusDstAlpha = ((int)0x0305), - One = ((int)1), - } - public enum BlendingFactorSrc : int { + Zero = ((int)0), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), DstColor = ((int)0x0306), OneMinusDstColor = ((int)0x0307), SrcAlphaSaturate = ((int)0x0308), - } - - public enum BlendMode : int - { - FuncAdd = ((int)0X8006), - FuncSubtract = ((int)0X800a), - FuncReverseSubtract = ((int)0X800b), + ConstantColor = ((int)0X8001), + OneMinusConstantColor = ((int)0X8002), + ConstantAlpha = ((int)0X8003), + OneMinusConstantAlpha = ((int)0X8004), + One = ((int)1), } public enum BlendSubtract : int @@ -1106,17 +1118,6 @@ namespace OpenTK.Graphics.ES20 UnsignedShort565 = ((int)0x8363), } - public enum PrimitiveMode : int - { - Points = ((int)0X0000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - } - public enum ProgramParameter : int { DeleteStatus = ((int)0X8b80), @@ -1278,6 +1279,7 @@ namespace OpenTK.Graphics.ES20 public enum StencilOp : int { + Zero = ((int)0X0000), Invert = ((int)0x150A), Keep = ((int)0x1E00), Replace = ((int)0x1E01), @@ -1287,18 +1289,6 @@ namespace OpenTK.Graphics.ES20 DecrWrap = ((int)0x8508), } - public enum StencilOperation : int - { - Zero = ((int)0X0000), - Invert = ((int)0X150a), - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - IncrWrap = ((int)0X8507), - DecrWrap = ((int)0X8508), - } - public enum StringName : int { Vendor = ((int)0x1F00), @@ -1432,12 +1422,12 @@ namespace OpenTK.Graphics.ES20 VertexAttribArrayBufferBinding = ((int)0X889f), } - public enum VertexAttribPointerType : int + public enum VertexAttribPointerParameter : int { VertexAttribArrayPointer = ((int)0X8645), } - public enum VertexAttribType : int + public enum VertexAttribPointerType : int { Byte = ((int)0X1400), UnsignedByte = ((int)0X1401), From bf89d0a6abbefba9335aa4440d03f62253345cad Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 15:36:02 +0000 Subject: [PATCH 14/18] Fixed GetVertexPointerParameter signature to comply with the specs. --- .../Bind/Specifications/GL2/gloverrides.xml | 2 +- Source/OpenTK/Graphics/OpenGL/GL.cs | 40 +++++++++---------- Source/OpenTK/Graphics/OpenGL/GLCore.cs | 2 +- Source/OpenTK/Graphics/OpenGL/GLDelegates.cs | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Source/Bind/Specifications/GL2/gloverrides.xml b/Source/Bind/Specifications/GL2/gloverrides.xml index bf908b27..decc78d1 100644 --- a/Source/Bind/Specifications/GL2/gloverrides.xml +++ b/Source/Bind/Specifications/GL2/gloverrides.xml @@ -142,7 +142,7 @@ - VertexAttribPointerType + VertexAttribPointerParameter diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 24ba11b0..8f67dba5 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -53089,7 +53089,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -53099,7 +53099,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -53132,7 +53132,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -53142,7 +53142,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53174,7 +53174,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -53184,7 +53184,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53216,7 +53216,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -53226,7 +53226,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53258,13 +53258,13 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) + void GetVertexAttribPointer(Int32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif @@ -53292,7 +53292,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] ref T2 pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] ref T2 pointer) where T2 : struct { #if DEBUG @@ -53302,7 +53302,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); pointer = (T2)pointer_ptr.Target; } finally @@ -53336,7 +53336,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,,] pointer) where T2 : struct { #if DEBUG @@ -53346,7 +53346,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53379,7 +53379,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[,] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[,] pointer) where T2 : struct { #if DEBUG @@ -53389,7 +53389,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53422,7 +53422,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [InAttribute, OutAttribute] T2[] pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [InAttribute, OutAttribute] T2[] pointer) where T2 : struct { #if DEBUG @@ -53432,7 +53432,7 @@ namespace OpenTK.Graphics.OpenGL GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); try { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); } finally { @@ -53465,13 +53465,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] public static - void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer) + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerType)pname, (IntPtr)pointer); + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.OpenGL.VertexAttribPointerParameter)pname, (IntPtr)pointer); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/OpenGL/GLCore.cs b/Source/OpenTK/Graphics/OpenGL/GLCore.cs index ec9a1393..0908d0bf 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLCore.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLCore.cs @@ -2290,7 +2290,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetVertexAttribivNV(UInt32 index, OpenTK.Graphics.OpenGL.NvVertexProgram pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] - internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer); + internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointervARB", ExactSpelling = true)] internal extern static void GetVertexAttribPointervARB(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameterArb pname, [OutAttribute] IntPtr pointer); diff --git a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs index b5af672c..ac149bdc 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs @@ -2288,7 +2288,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetVertexAttribivNV(UInt32 index, OpenTK.Graphics.OpenGL.NvVertexProgram pname, [OutAttribute] Int32* @params); internal unsafe static GetVertexAttribivNV glGetVertexAttribivNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerType pname, [OutAttribute] IntPtr pointer); + internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameter pname, [OutAttribute] IntPtr pointer); internal static GetVertexAttribPointerv glGetVertexAttribPointerv; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void GetVertexAttribPointervARB(UInt32 index, OpenTK.Graphics.OpenGL.VertexAttribPointerParameterArb pname, [OutAttribute] IntPtr pointer); From 584e6c48a6adfe5e315fe3a0b219b436422c549c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 23 Oct 2009 20:20:04 +0000 Subject: [PATCH 15/18] GetUniformLocation: name should have in-flow. Use BlendingFunctionDest instead of BlendingFunctionDst, in order to match desktop OpenGL bindings. --- Source/Bind/Specifications/ES20/overrides.xml | 12 ++++++++---- Source/OpenTK/Graphics/ES20/Core.cs | 6 +++--- Source/OpenTK/Graphics/ES20/Delegates.cs | 6 +++--- Source/OpenTK/Graphics/ES20/ES.cs | 16 ++++++++-------- Source/OpenTK/Graphics/ES20/Enums.cs | 12 ------------ 5 files changed, 22 insertions(+), 30 deletions(-) diff --git a/Source/Bind/Specifications/ES20/overrides.xml b/Source/Bind/Specifications/ES20/overrides.xml index 759572a4..4319131c 100644 --- a/Source/Bind/Specifications/ES20/overrides.xml +++ b/Source/Bind/Specifications/ES20/overrides.xml @@ -27,14 +27,14 @@ BlendingFactorSrc - BlendingFactorDst + BlendingFactorDest BlendingFactorSrc - BlendingFactorDst + BlendingFactorDest BlendingFactorSrc - BlendingFactorDst + BlendingFactorDest @@ -292,6 +292,10 @@ in + + in + + @@ -320,7 +324,7 @@ - + diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index e87af039..77e3ba22 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -73,10 +73,10 @@ namespace OpenTK.Graphics.ES20 internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] - internal extern static void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDst dfactor); + internal extern static void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDest dfactor); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)] - internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDst dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDst dstAlpha); + internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDest dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDest dstAlpha); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)] internal extern static void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); @@ -346,7 +346,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetUniformiv(UInt32 program, Int32 location, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformLocation", ExactSpelling = true)] - internal extern static int GetUniformLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); + internal extern static int GetUniformLocation(UInt32 program, String name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)] internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 094cf9d2..609c7755 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -71,10 +71,10 @@ namespace OpenTK.Graphics.ES20 internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.BlendEquationMode modeRGB, OpenTK.Graphics.ES20.BlendEquationMode modeAlpha); internal static BlendEquationSeparate glBlendEquationSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDst dfactor); + internal delegate void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDest dfactor); internal static BlendFunc glBlendFunc; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDst dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDst dstAlpha); + internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDest dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDest dstAlpha); internal static BlendFuncSeparate glBlendFuncSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BufferData(OpenTK.Graphics.ES20.BufferTarget target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.BufferUsage usage); @@ -344,7 +344,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetUniformiv(UInt32 program, Int32 location, [OutAttribute] Int32* @params); internal unsafe static GetUniformiv glGetUniformiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int GetUniformLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name); + internal delegate int GetUniformLocation(UInt32 program, String name); internal static GetUniformLocation glGetUniformLocation; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.VertexAttribParameter pname, [OutAttribute] Single* @params); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index 48d8305f..decd2b4f 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -1659,13 +1659,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFunc")] public static - void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDst dfactor) + void BlendFunc(OpenTK.Graphics.ES20.BlendingFactorSrc sfactor, OpenTK.Graphics.ES20.BlendingFactorDest dfactor) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES20.BlendingFactorSrc)sfactor, (OpenTK.Graphics.ES20.BlendingFactorDst)dfactor); + Delegates.glBlendFunc((OpenTK.Graphics.ES20.BlendingFactorSrc)sfactor, (OpenTK.Graphics.ES20.BlendingFactorDest)dfactor); #if DEBUG } #endif @@ -1697,13 +1697,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFuncSeparate")] public static - void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDst dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDst dstAlpha) + void BlendFuncSeparate(OpenTK.Graphics.ES20.BlendingFactorSrc srcRGB, OpenTK.Graphics.ES20.BlendingFactorDest dstRGB, OpenTK.Graphics.ES20.BlendingFactorSrc srcAlpha, OpenTK.Graphics.ES20.BlendingFactorDest dstAlpha) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.BlendingFactorSrc)srcRGB, (OpenTK.Graphics.ES20.BlendingFactorDst)dstRGB, (OpenTK.Graphics.ES20.BlendingFactorSrc)srcAlpha, (OpenTK.Graphics.ES20.BlendingFactorDst)dstAlpha); + Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.BlendingFactorSrc)srcRGB, (OpenTK.Graphics.ES20.BlendingFactorDest)dstRGB, (OpenTK.Graphics.ES20.BlendingFactorSrc)srcAlpha, (OpenTK.Graphics.ES20.BlendingFactorDest)dstAlpha); #if DEBUG } #endif @@ -8905,13 +8905,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformLocation")] public static - int GetUniformLocation(Int32 program, [OutAttribute] System.Text.StringBuilder name) + int GetUniformLocation(Int32 program, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetUniformLocation((UInt32)program, (System.Text.StringBuilder)name); + return Delegates.glGetUniformLocation((UInt32)program, (String)name); #if DEBUG } #endif @@ -8934,13 +8934,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformLocation")] public static - int GetUniformLocation(UInt32 program, [OutAttribute] System.Text.StringBuilder name) + int GetUniformLocation(UInt32 program, String name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - return Delegates.glGetUniformLocation((UInt32)program, (System.Text.StringBuilder)name); + return Delegates.glGetUniformLocation((UInt32)program, (String)name); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index ea8e3178..47058c3b 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -537,18 +537,6 @@ namespace OpenTK.Graphics.ES20 OneMinusSrcAlpha = ((int)0x0303), DstAlpha = ((int)0x0304), OneMinusDstAlpha = ((int)0x0305), - One = ((int)1), - } - - public enum BlendingFactorDst : int - { - Zero = ((int)0), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), DstColor = ((int)0X0306), OneMinusDstColor = ((int)0X0307), SrcAlphaSaturate = ((int)0X0308), From 97e07a6e24f738a5936107c9e39707c08847ae43 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 27 Oct 2009 22:37:05 +0000 Subject: [PATCH 16/18] * GL2/Generator.cs: Refactored WriteWrappers() into smaller methods. Added "using System.Text;" to all generated files that may contain StringBuilder parameters. * Main.cs: Removed unused comments. Improved parameter handling. Added -o:keep_untyped_parameters option. * Settings.cs: Added KeepUntypedEnums compatibility setting. * Structures/Delegate.cs: Removed stale comments. Refactored CreateWrappers() method to support untyped enum overload generation and simplified method implementation. Replaced CurrentType translations with QualifiedType. * Structures/Function.cs: Removed stale code. Fixed copy constructors to copy all necessary fields. Use QualifiedType instead of CurrentType in WrapReturnType and CreateBody methods. Made Body statement lists static to improve performance. Added hack to modify callstring casts in keep_untyped_enums wrappers. Generate call string from the Function CreateBody was called on, rather than the current Function (solves issues with invalid casts in specific cases). * Structures/Parameter.cs: Use fully qualified type instead of current type in several caeses. * Structures/Type.cs: Added explicit support for fully qualified types. --- Source/Bind/GL2/Generator.cs | 88 ++++++++++++++++----------- Source/Bind/Main.cs | 14 ++--- Source/Bind/Settings.cs | 2 + Source/Bind/Structures/Delegate.cs | 72 ++++++++++++++-------- Source/Bind/Structures/Function.cs | 51 +++++++++++----- Source/Bind/Structures/Parameter.cs | 28 +++++---- Source/Bind/Structures/Type.cs | 94 +++++++++++++++++++++++++---- 7 files changed, 243 insertions(+), 106 deletions(-) diff --git a/Source/Bind/GL2/Generator.cs b/Source/Bind/GL2/Generator.cs index 53342946..485895ee 100644 --- a/Source/Bind/GL2/Generator.cs +++ b/Source/Bind/GL2/Generator.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Linq; using System.Text.RegularExpressions; using System.Xml.XPath; using Bind.Structures; @@ -349,8 +350,8 @@ namespace Bind.GL2 // The typematching logic cannot handle pointers to pointers, e.g. CharPointer* -> char** -> string* -> string[]. // Hence we give it a push. // Note: When both CurrentType == "String" and Pointer == true, the typematching is hardcoded to use - // System.String[] or System.StringBuilder[]. - GLTypes.Add(words[0], "System.String"); + // String[] or StringBuilder[]. + GLTypes.Add(words[0], "String"); } /*else if (words[0].Contains("Pointer")) { @@ -501,6 +502,7 @@ namespace Bind.GL2 sw.Indent(); sw.WriteLine("using System;"); + sw.WriteLine("using System.Text;"); sw.WriteLine("using System.Runtime.InteropServices;"); sw.WriteLine("#pragma warning disable 0649"); @@ -519,6 +521,7 @@ namespace Bind.GL2 sw.Indent(); //specWriter.WriteTypes(sw, Bind.Structures.Type.CSTypes); sw.WriteLine("using System;"); + sw.WriteLine("using System.Text;"); sw.WriteLine("using System.Runtime.InteropServices;"); WriteImports(sw, Delegate.Delegates); @@ -536,6 +539,7 @@ namespace Bind.GL2 sw.Indent(); sw.WriteLine("using System;"); + sw.WriteLine("using System.Text;"); sw.WriteLine("using System.Runtime.InteropServices;"); WriteWrappers(sw, Function.Wrappers, Type.CSTypes); @@ -678,38 +682,7 @@ namespace Bind.GL2 wrappers[key].Sort(); foreach (Function f in wrappers[key]) { - if ((Settings.Compatibility & Settings.Legacy.NoDocumentation) == 0) - { - Console.WriteLine("Creating docs for #{0} ({1})", current++, f.Name); - try - { - string path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml"); - if (!File.Exists(path)) - path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + - f.TrimmedName + ".xml"); - - if (!File.Exists(path)) - path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml"); - - if (File.Exists(path)) - { - DocProcessor doc_processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile)); - sw.WriteLine(doc_processor.ProcessFile(path)); - } - } - catch (FileNotFoundException) - { } - } - - if (!f.CLSCompliant) - { - sw.WriteLine("[System.CLSCompliant(false)]"); - } - sw.WriteLine("[AutoGenerated(Category = \"{0}\", Version = \"{1}\", EntryPoint = \"{2}\")]", - f.Category, f.Version, Settings.FunctionPrefix + f.WrappedDelegate.Name); - sw.WriteLine("public static "); - sw.Write(f); - sw.WriteLine(); + current = WriteWrapper(sw, current, f); } if (((Settings.Compatibility & Settings.Legacy.NoSeparateFunctionNamespaces) == Settings.Legacy.None) && key != "Core") @@ -723,13 +696,58 @@ namespace Bind.GL2 sw.WriteLine("}"); } + private static int WriteWrapper(BindStreamWriter sw, int current, Function f) + { + if ((Settings.Compatibility & Settings.Legacy.NoDocumentation) == 0) + { + Console.WriteLine("Creating docs for #{0} ({1})", current++, f.Name); + WriteDocumentation(sw, f); + } + WriteMethod(sw, f); + return current; + } + + private static void WriteMethod(BindStreamWriter sw, Function f) + { + if (!f.CLSCompliant) + { + sw.WriteLine("[System.CLSCompliant(false)]"); + } + sw.WriteLine("[AutoGenerated(Category = \"{0}\", Version = \"{1}\", EntryPoint = \"{2}\")]", + f.Category, f.Version, Settings.FunctionPrefix + f.WrappedDelegate.Name); + sw.WriteLine("public static "); + sw.Write(f); + sw.WriteLine(); + } + + private static void WriteDocumentation(BindStreamWriter sw, Function f) + { + try + { + string path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml"); + if (!File.Exists(path)) + path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + + f.TrimmedName + ".xml"); + + if (!File.Exists(path)) + path = Path.Combine(Settings.DocPath, Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml"); + + if (File.Exists(path)) + { + DocProcessor doc_processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile)); + sw.WriteLine(doc_processor.ProcessFile(path)); + } + } + catch (FileNotFoundException) + { } + } + #endregion #region void WriteTypes public void WriteTypes(BindStreamWriter sw, Dictionary CSTypes) { - sw.WriteLine("using System;"); sw.WriteLine(); foreach (string s in CSTypes.Keys) { diff --git a/Source/Bind/Main.cs b/Source/Bind/Main.cs index 1cf57a70..b43aa04e 100644 --- a/Source/Bind/Main.cs +++ b/Source/Bind/Main.cs @@ -48,7 +48,6 @@ namespace Bind Console.WriteLine("OpenGL binding generator {0} for OpenTK.", Assembly.GetExecutingAssembly().GetName().Version.ToString()); Console.WriteLine("For comments, bugs and suggestions visit http://opentk.sourceforge.net"); - //Console.WriteLine(" - the OpenTK team ;-)"); Console.WriteLine(); string dirName = null; @@ -104,13 +103,14 @@ namespace Bind case "legacy": case "o": case "option": - Settings.Compatibility |= b[1].ToLower().Contains("tao") ? Settings.Legacy.Tao : Settings.Legacy.None; - Settings.Compatibility |= b[1].ToLower().Contains("enums") ? Settings.Legacy.NoAdvancedEnumProcessing : Settings.Legacy.None; - Settings.Compatibility |= b[1].ToLower().Contains("safe") ? Settings.Legacy.NoPublicUnsafeFunctions : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "tao" ? Settings.Legacy.Tao : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "simple_enums" ? Settings.Legacy.NoAdvancedEnumProcessing : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "safe" ? Settings.Legacy.NoPublicUnsafeFunctions : Settings.Legacy.None; //Settings.Compatibility |= b[1].ToLower().Contains("novoid") ? Settings.Legacy.TurnVoidPointersToIntPtr : Settings.Legacy.None; - Settings.Compatibility |= b[1].ToLower().Contains("permutations") ? Settings.Legacy.GenerateAllPermutations : Settings.Legacy.None; - Settings.Compatibility |= b[1].ToLower().Contains("enums_in_class") ? Settings.Legacy.NestedEnums : Settings.Legacy.None; - Settings.Compatibility |= b[1].ToLower().Contains("nodocs") ? Settings.Legacy.NoDocumentation : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "permutations" ? Settings.Legacy.GenerateAllPermutations : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "enums_in_class" ? Settings.Legacy.NestedEnums : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "nodocs" ? Settings.Legacy.NoDocumentation : Settings.Legacy.None; + Settings.Compatibility |= b[1].ToLower() == "keep_untyped_enums" ? Settings.Legacy.KeepUntypedEnums : Settings.Legacy.None; break; default: throw new ArgumentException( diff --git a/Source/Bind/Settings.cs b/Source/Bind/Settings.cs index 3ee02d20..99a4e501 100644 --- a/Source/Bind/Settings.cs +++ b/Source/Bind/Settings.cs @@ -125,6 +125,8 @@ namespace Bind NoDocumentation = 0x400, /// Disables ErrorHelper generation. NoDebugHelpers = 0x800, + /// Generate both typed and untyped ("All") signatures for enum parameters. + KeepUntypedEnums = 0x1000, Tao = ConstIntEnums | NoAdvancedEnumProcessing | NoPublicUnsafeFunctions | diff --git a/Source/Bind/Structures/Delegate.cs b/Source/Bind/Structures/Delegate.cs index dee39717..bd2f9d2b 100644 --- a/Source/Bind/Structures/Delegate.cs +++ b/Source/Bind/Structures/Delegate.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Xml.XPath; @@ -132,15 +133,12 @@ namespace Bind.Structures #region public bool NeedsWrapper /// - /// Indicates whether this function needs to be wrapped with a Marshaling function. + /// Gets a value that indicates whether this function needs to be wrapped with a Marshaling function. /// This flag is set if a function contains an Array parameter, or returns /// an Array or string. /// public bool NeedsWrapper { - //get { return _needs_wrapper; } - //set { _needs_wrapper = value; } - get { // TODO: Add special cases for (Get)ShaderSource. @@ -235,7 +233,7 @@ namespace Bind.Structures public ParameterCollection Parameters { get { return _parameters; } - protected set { _parameters = value; } + set { _parameters = value; } } #endregion @@ -415,21 +413,20 @@ namespace Bind.Structures void CreateWrappers() { List wrappers = new List(); - if (!NeedsWrapper) - { - // No special wrapper needed - just call this delegate: - Function f = new Function(this); - f.CreateBody(false); + CreateNormalWrappers(wrappers); - wrappers.Add(f); - } - else + // Generate wrappers using the untyped enum parameters, if necessary. + if ((Settings.Compatibility & Settings.Legacy.KeepUntypedEnums) != 0) { - Function f = new Function(this); - f.WrapReturnType(); - f.WrapParameters(wrappers); + CreateUntypedEnumWrappers(wrappers); } + + // Add CLS-compliant overloads for non-CLS compliant wrappers. + CreateCLSCompliantWrappers(wrappers); + } + private static void CreateCLSCompliantWrappers(List wrappers) + { // If the function is not CLS-compliant (e.g. it contains unsigned parameters) // we need to create a CLS-Compliant overload. However, we should only do this // iff the opengl function does not contain unsigned/signed overloads itself @@ -445,20 +442,47 @@ namespace Bind.Structures cls.Body.Clear(); cls.CreateBody(true); - bool somethingChanged = false; + bool modified = false; for (int i = 0; i < f.Parameters.Count; i++) { cls.Parameters[i].CurrentType = cls.Parameters[i].GetCLSCompliantType(); if (cls.Parameters[i].CurrentType != f.Parameters[i].CurrentType) - somethingChanged = true; + modified = true; } - if (somethingChanged) + if (modified) Function.Wrappers.AddChecked(cls); } } } + private void CreateUntypedEnumWrappers(List wrappers) + { + Function f = new Function(this); + var modified = false; + f.Parameters = new ParameterCollection(f.Parameters.Select(p => + { + if (p.IsEnum && p.CurrentType != Settings.CompleteEnumName) + { + p.CurrentType = Settings.CompleteEnumName; + modified = true; + } + return p; + })); + if (modified) + { + f.WrapReturnType(); + f.WrapParameters(wrappers); + } + } + + void CreateNormalWrappers(List wrappers) + { + Function f = new Function(this); + f.WrapReturnType(); + f.WrapParameters(wrappers); + } + #endregion #region TrimName @@ -529,28 +553,28 @@ namespace Bind.Structures if (ReturnType.CurrentType.ToLower().Contains("void") && ReturnType.Pointer != 0) { - ReturnType.CurrentType = "IntPtr"; + ReturnType.QualifiedType = "System.IntPtr"; ReturnType.WrapperType = WrapperTypes.GenericReturnType; } if (ReturnType.CurrentType.ToLower().Contains("string")) { - ReturnType.CurrentType = "IntPtr"; + ReturnType.QualifiedType = "System.IntPtr"; ReturnType.WrapperType = WrapperTypes.StringReturnType; } if (ReturnType.CurrentType.ToLower().Contains("object")) { - ReturnType.CurrentType = "IntPtr"; + ReturnType.QualifiedType = "System.IntPtr"; ReturnType.WrapperType |= WrapperTypes.GenericReturnType; } if (ReturnType.CurrentType.Contains("GLenum")) { if ((Settings.Compatibility & Settings.Legacy.ConstIntEnums) == Settings.Legacy.None) - ReturnType.CurrentType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName); + ReturnType.QualifiedType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName); else - ReturnType.CurrentType = "int"; + ReturnType.QualifiedType = "int"; } ReturnType.CurrentType = ReturnType.GetCLSCompliantType(); diff --git a/Source/Bind/Structures/Function.cs b/Source/Bind/Structures/Function.cs index c0fc66c7..6308bffa 100644 --- a/Source/Bind/Structures/Function.cs +++ b/Source/Bind/Structures/Function.cs @@ -52,9 +52,11 @@ namespace Bind.Structures } public Function(Function f) - : this((Delegate)f) + : this(f.WrappedDelegate) { - Body = new FunctionBody(f.Body); + Parameters = new ParameterCollection(f.Parameters); + ReturnType = new Type(f.ReturnType); + Body.AddRange(f.Body); } #endregion @@ -297,7 +299,6 @@ namespace Bind.Structures } else { - //wrappers.Add(DefaultWrapper(new Function(this))); f = new Function(this); f.CreateBody(false); wrappers.Add(f); @@ -379,7 +380,7 @@ namespace Bind.Structures switch (ReturnType.WrapperType) { case WrapperTypes.StringReturnType: - ReturnType.CurrentType = "string"; + ReturnType.QualifiedType = "String"; break; } } @@ -388,10 +389,10 @@ namespace Bind.Structures #region public void CreateBody(bool wantCLSCompliance) - readonly List handle_statements = new List(); - readonly List handle_release_statements = new List(); - readonly List fixed_statements = new List(); - readonly List assign_statements = new List(); + readonly static List handle_statements = new List(); + readonly static List handle_release_statements = new List(); + readonly static List fixed_statements = new List(); + readonly static List assign_statements = new List(); // For example, if parameter foo has indirection level = 1, then it // is consumed as 'foo*' in the fixed_statements and the call string. @@ -428,7 +429,7 @@ namespace Bind.Structures { assign_statements.Add(String.Format( "{0} = ({1}){0}_ptr.Target;", - p.Name, p.CurrentType)); + p.Name, p.QualifiedType)); } // Note! The following line modifies f.Parameters, *not* this.Parameters @@ -441,7 +442,7 @@ namespace Bind.Structures // A fixed statement is issued for all non-generic pointers, arrays and references. fixed_statements.Add(String.Format( "fixed ({0}{3} {1} = {2})", - wantCLSCompliance && !p.CLSCompliant ? p.GetCLSCompliantType() : p.CurrentType, + wantCLSCompliance && !p.CLSCompliant ? p.GetCLSCompliantType() : p.QualifiedType, p.Name + "_ptr", p.Array > 0 ? p.Name : "&" + p.Name, indirection_levels[p.IndirectionLevel])); @@ -504,16 +505,36 @@ namespace Bind.Structures f.Body.Indent(); } + // Hack: When creating untyped enum wrappers, it is possible that the wrapper uses an "All" + // enum, while the delegate uses a specific enum (e.g. "TextureUnit"). For this reason, we need + // to modify the parameters before generating the call string. + // Note: We cannot generate a callstring using WrappedDelegate directly, as its parameters will + // typically be different than the parameters of the wrapper. We need to modify the parameters + // of the wrapper directly. + if ((Settings.Compatibility & Settings.Legacy.KeepUntypedEnums) != 0) + { + int parameter_index = -1; // Used for comparing wrapper parameters with delegate parameters + foreach (Parameter p in f.Parameters) + { + parameter_index++; + if (p.IsEnum && p.QualifiedType != f.WrappedDelegate.Parameters[parameter_index].QualifiedType) + { + p.QualifiedType = f.WrappedDelegate.Parameters[parameter_index].QualifiedType; + } + } + } + if (assign_statements.Count > 0) { // Call function + string method_call = f.CallString(); if (f.ReturnType.CurrentType.ToLower().Contains("void")) - f.Body.Add(String.Format("{0};", f.CallString())); + f.Body.Add(String.Format("{0};", method_call)); else if (ReturnType.CurrentType.ToLower().Contains("string")) f.Body.Add(String.Format("{0} {1} = Marshal.PtrToStringAnsi({2});", - ReturnType.CurrentType, "retval", CallString())); + ReturnType.QualifiedType, "retval", method_call)); else - f.Body.Add(String.Format("{0} {1} = {2};", f.ReturnType.CurrentType, "retval", f.CallString())); + f.Body.Add(String.Format("{0} {1} = {2};", f.ReturnType.QualifiedType, "retval", method_call)); // Assign out parameters f.Body.AddRange(assign_statements); @@ -526,14 +547,12 @@ namespace Bind.Structures } else { - //if (Name == "EnqueueCopyBufferToImage") - // Debugger.Break(); // Call function and return if (f.ReturnType.CurrentType.ToLower().Contains("void")) f.Body.Add(String.Format("{0};", f.CallString())); else if (ReturnType.CurrentType.ToLower().Contains("string")) f.Body.Add(String.Format("return System.Runtime.InteropServices.Marshal.PtrToStringAnsi({0});", - CallString())); + f.CallString())); else f.Body.Add(String.Format("return {0};", f.CallString())); } diff --git a/Source/Bind/Structures/Parameter.cs b/Source/Bind/Structures/Parameter.cs index a5978cc1..f9c09ad1 100644 --- a/Source/Bind/Structures/Parameter.cs +++ b/Source/Bind/Structures/Parameter.cs @@ -244,7 +244,7 @@ namespace Bind.Structures } else { - sb.Append(CurrentType); + sb.Append(base.ToString()); if (Array > 0) { sb.Append("["); @@ -256,7 +256,7 @@ namespace Bind.Structures } else { - sb.Append(CurrentType); + sb.Append(base.ToString()); for (int i = 0; i < Pointer; i++) sb.Append("*"); if (Array > 0) @@ -293,9 +293,9 @@ namespace Bind.Structures if (CurrentType.ToLower().Contains("string")) { // string* -> [In] String[] or [Out] StringBuilder[] - CurrentType = + QualifiedType = Flow == FlowDirection.Out ? - "System.Text.StringBuilder[]" : + "StringBuilder[]" : "String[]"; Pointer = 0; @@ -304,9 +304,9 @@ namespace Bind.Structures else if (CurrentType.ToLower().Contains("char")) { // char* -> [In] String or [Out] StringBuilder - CurrentType = + QualifiedType = Flow == FlowDirection.Out ? - "System.Text.StringBuilder" : + "StringBuilder" : "String"; Pointer = 0; @@ -385,6 +385,12 @@ namespace Bind.Structures } } + public ParameterCollection(IEnumerable parameters) + { + foreach (Parameter p in parameters) + Add(new Parameter(p)); + } + #endregion #region void BuildCache() @@ -581,24 +587,24 @@ namespace Bind.Structures foreach (Parameter p in this) { if (p.Unchecked) - sb.Append("unchecked((" + p.CurrentType + ")"); + sb.Append("unchecked((" + p.QualifiedType + ")"); if (!p.Generic && p.CurrentType != "object") { if (p.CurrentType.ToLower().Contains("string")) { sb.Append(String.Format("({0}{1})", - p.CurrentType, (p.Array > 0) ? "[]" : "")); + p.QualifiedType, (p.Array > 0) ? "[]" : "")); } else if (p.IndirectionLevel != 0) { if (((Settings.Compatibility & Settings.Legacy.TurnVoidPointersToIntPtr) != Settings.Legacy.None) && p.Pointer != 0 && p.CurrentType.Contains("void")) - sb.Append("(IntPtr)"); + sb.Append("(System.IntPtr)"); else { sb.Append("("); - sb.Append(p.CurrentType); + sb.Append(p.QualifiedType); for (int i = 0; i < p.IndirectionLevel; i++) sb.Append("*"); sb.Append(")"); @@ -606,7 +612,7 @@ namespace Bind.Structures } else { - sb.Append(String.Format("({0})", p.CurrentType)); + sb.Append(String.Format("({0})", p.QualifiedType)); } } diff --git a/Source/Bind/Structures/Type.cs b/Source/Bind/Structures/Type.cs index be5ed2d8..1b4564da 100644 --- a/Source/Bind/Structures/Type.cs +++ b/Source/Bind/Structures/Type.cs @@ -18,6 +18,8 @@ namespace Bind.Structures private static bool typesLoaded; + string current_qualifier = "", previous_qualifier = ""; + #region internal static void Initialize(string glTypes, string csTypes) internal static void Initialize(string glTypes, string csTypes) @@ -54,8 +56,9 @@ namespace Bind.Structures { if (t != null) { - CurrentType = t.CurrentType; + QualifiedType = t.QualifiedType; // Covers current type and qualifier PreviousType = t.PreviousType; + PreviousQualifier = t.PreviousQualifier; WrapperType = t.WrapperType; Array = t.Array; Pointer = t.Pointer; @@ -66,6 +69,44 @@ namespace Bind.Structures #endregion + public string CurrentQualifier + { + get { return current_qualifier; } + set { PreviousQualifier = CurrentQualifier; current_qualifier = value; } + } + + public string PreviousQualifier + { + get { return previous_qualifier; } + private set { previous_qualifier = value; } + } + + public string QualifiedType { + get + { + if (!String.IsNullOrEmpty(CurrentQualifier)) + return String.Format("{0}.{1}", CurrentQualifier, CurrentType); + else + return CurrentType; + } + set + { + if (String.IsNullOrEmpty(value)) + throw new ArgumentException(); + + int qualifier_end = value.LastIndexOf('.'); + if (qualifier_end > -1) + { + CurrentQualifier = value.Substring(0, qualifier_end); + CurrentType = value.Substring(qualifier_end + 1); + } + else + { + CurrentType = value; + } + } + } + #region public string CurrentType string type; @@ -84,6 +125,9 @@ namespace Bind.Structures } set { + if (String.IsNullOrEmpty(value)) + throw new ArgumentException(); + if (!String.IsNullOrEmpty(type)) PreviousType = type; if (!String.IsNullOrEmpty(value)) @@ -106,10 +150,9 @@ namespace Bind.Structures public string PreviousType { get { return _previous_type; } - set { _previous_type = value; } + private set { _previous_type = value; } } - #endregion #region public bool Reference @@ -161,6 +204,16 @@ namespace Bind.Structures #endregion + // Returns true if parameter is an enum. + public bool IsEnum + { + get + { + return Enum.GLEnums.ContainsKey(CurrentType) || + Enum.AuxEnums.ContainsKey(CurrentType); + } + } + #region IndirectionLevel // Gets the the level of indirection for this type. For example, @@ -291,7 +344,7 @@ namespace Bind.Structures public override string ToString() { - return CurrentType; + return QualifiedType; } #endregion @@ -316,13 +369,14 @@ namespace Bind.Structures if ((normal || aux) && @enum.Name != "GLenum" && @enum.Name != "Boolean") { if ((Settings.Compatibility & Settings.Legacy.ConstIntEnums) != Settings.Legacy.None) - CurrentType = "int"; + QualifiedType = "int"; else { +#warning "Unecessary code" if (normal) - CurrentType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsOutput)); + QualifiedType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsOutput)); else if (aux) - CurrentType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsAuxOutput)); + QualifiedType = CurrentType.Insert(0, String.Format("{0}.", Settings.EnumsAuxOutput)); } } else if (GLTypes.TryGetValue(CurrentType, out s)) @@ -333,23 +387,30 @@ namespace Bind.Structures { if ((Settings.Compatibility & Settings.Legacy.ConstIntEnums) != Settings.Legacy.None) { - CurrentType = "int"; + QualifiedType = "int"; } else { // Better match: enum.Name == function.Category (e.g. GL_VERSION_1_1 etc) if (Enum.GLEnums.ContainsKey(category)) { - CurrentType = String.Format("{0}.{1}", Settings.EnumsOutput, Enum.TranslateName(category)); + QualifiedType = String.Format("{0}.{1}", Settings.EnumsOutput, Enum.TranslateName(category)); } else { - CurrentType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName); + QualifiedType = String.Format("{0}.{1}", Settings.EnumsOutput, Settings.CompleteEnumName); } } } else { + // A few translations for consistency + switch (CurrentType.ToLower()) + { + case "string": QualifiedType = "String"; break; + } + +#warning "Stale code" // This is not enum, default translation: if (CurrentType == "PIXELFORMATDESCRIPTOR" || CurrentType == "LAYERPLANEDESCRIPTOR" || CurrentType == "GLYPHMETRICSFLOAT") @@ -370,10 +431,9 @@ namespace Bind.Structures { //p.Pointer = false; //p.Reference = true; - } else - CurrentType = s; + QualifiedType = s; } } @@ -386,7 +446,15 @@ namespace Bind.Structures // of type ErrorCodes should also be overriden to ErrorCode. XPathNavigator enum_override = overrides.SelectSingleNode(String.Format("/overrides/replace/enum[@name='{0}']/name", CurrentType)); if (enum_override != null) - CurrentType = enum_override.Value; + { + // For consistency - many overrides use string instead of String. + if (enum_override.Value == "string") + QualifiedType = "String"; + else if (enum_override.Value == "StringBuilder") + QualifiedType = "StringBuilder"; + else + CurrentType = enum_override.Value; + } if (CurrentType == "IntPtr" && String.IsNullOrEmpty(PreviousType)) Pointer = 0; From 923ebc7efbef8fc481eaa8cb584a9abce1effde1 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 27 Oct 2009 22:51:57 +0000 Subject: [PATCH 17/18] Renegerated bindings using the latest version of the generator (improved handling of types in the System and System.Text namespaces). --- Source/OpenTK/Compute/CL10/CL.cs | 33 +-- Source/OpenTK/Compute/CL10/Core.cs | 5 +- Source/OpenTK/Compute/CL10/Delegates.cs | 5 +- Source/OpenTK/Graphics/ES10/Core.cs | 3 +- Source/OpenTK/Graphics/ES10/Delegates.cs | 3 +- Source/OpenTK/Graphics/ES10/ES.cs | 3 +- Source/OpenTK/Graphics/ES11/Core.cs | 5 +- Source/OpenTK/Graphics/ES11/Delegates.cs | 5 +- Source/OpenTK/Graphics/ES11/ES.cs | 5 +- Source/OpenTK/Graphics/ES20/Core.cs | 21 +- Source/OpenTK/Graphics/ES20/Delegates.cs | 21 +- Source/OpenTK/Graphics/ES20/ES.cs | 197 ++++++------- Source/OpenTK/Graphics/OpenGL/GL.cs | 285 ++++++++++--------- Source/OpenTK/Graphics/OpenGL/GLCore.cs | 51 ++-- Source/OpenTK/Graphics/OpenGL/GLDelegates.cs | 51 ++-- 15 files changed, 354 insertions(+), 339 deletions(-) diff --git a/Source/OpenTK/Compute/CL10/CL.cs b/Source/OpenTK/Compute/CL10/CL.cs index 66d83b42..631cd8fc 100644 --- a/Source/OpenTK/Compute/CL10/CL.cs +++ b/Source/OpenTK/Compute/CL10/CL.cs @@ -28,6 +28,7 @@ namespace OpenTK.Compute.CL10 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -3107,7 +3108,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) { return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); } @@ -3115,7 +3116,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) { fixed (IntPtr* event_wait_list_ptr = event_wait_list) fixed (IntPtr* @event_ptr = @event) @@ -3128,13 +3129,13 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) { fixed (IntPtr* event_wait_list_ptr = &event_wait_list) fixed (IntPtr* @event_ptr = &@event) fixed (int* errcode_ret_ptr = &errcode_ret) { - IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + System.IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); errcode_ret = *errcode_ret_ptr; return retval; } @@ -3143,7 +3144,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) { return Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); } @@ -3151,7 +3152,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) { fixed (IntPtr* event_wait_list_ptr = event_wait_list) fixed (IntPtr* @event_ptr = @event) @@ -3164,13 +3165,13 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapBuffer")] public static - unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) { fixed (IntPtr* event_wait_list_ptr = &event_wait_list) fixed (IntPtr* @event_ptr = &@event) fixed (int* errcode_ret_ptr = &errcode_ret) { - IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + System.IntPtr retval = Delegates.clEnqueueMapBuffer((IntPtr)command_queue, (IntPtr)buffer, (bool)blocking_map, (MapFlags)map_flags, (IntPtr)offset, (IntPtr)cb, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); errcode_ret = *errcode_ret_ptr; return retval; } @@ -3179,7 +3180,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, Int32 num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) { return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); } @@ -3187,7 +3188,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) + unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret) { return Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin, (IntPtr**)region, (IntPtr*)image_row_pitch, (IntPtr*)image_slice_pitch, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list, (IntPtr*)@event, (int*)errcode_ret); } @@ -3195,7 +3196,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, Int32 num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) { fixed (IntPtr** origin_ptr = origin) fixed (IntPtr** region_ptr = region) @@ -3212,7 +3213,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) + unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr*[] origin, IntPtr*[] region, IntPtr[] image_row_pitch, IntPtr[] image_slice_pitch, uint num_events_in_wait_list, IntPtr[] event_wait_list, IntPtr[] @event, [OutAttribute] int[] errcode_ret) { fixed (IntPtr** origin_ptr = origin) fixed (IntPtr** region_ptr = region) @@ -3229,7 +3230,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, Int32 num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) { fixed (IntPtr** origin_ptr = &origin) fixed (IntPtr** region_ptr = ®ion) @@ -3239,7 +3240,7 @@ namespace OpenTK.Compute.CL10 fixed (IntPtr* @event_ptr = &@event) fixed (int* errcode_ret_ptr = &errcode_ret) { - IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + System.IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); errcode_ret = *errcode_ret_ptr; return retval; } @@ -3248,7 +3249,7 @@ namespace OpenTK.Compute.CL10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "clEnqueueMapImage")] public static - unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) + unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, ref IntPtr* origin, ref IntPtr* region, ref IntPtr image_row_pitch, ref IntPtr image_slice_pitch, uint num_events_in_wait_list, ref IntPtr event_wait_list, ref IntPtr @event, [OutAttribute] out int errcode_ret) { fixed (IntPtr** origin_ptr = &origin) fixed (IntPtr** region_ptr = ®ion) @@ -3258,7 +3259,7 @@ namespace OpenTK.Compute.CL10 fixed (IntPtr* @event_ptr = &@event) fixed (int* errcode_ret_ptr = &errcode_ret) { - IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); + System.IntPtr retval = Delegates.clEnqueueMapImage((IntPtr)command_queue, (IntPtr)image, (bool)blocking_map, (MapFlags)map_flags, (IntPtr**)origin_ptr, (IntPtr**)region_ptr, (IntPtr*)image_row_pitch_ptr, (IntPtr*)image_slice_pitch_ptr, (uint)num_events_in_wait_list, (IntPtr*)event_wait_list_ptr, (IntPtr*)@event_ptr, (int*)errcode_ret_ptr); errcode_ret = *errcode_ret_ptr; return retval; } diff --git a/Source/OpenTK/Compute/CL10/Core.cs b/Source/OpenTK/Compute/CL10/Core.cs index eda6473a..48bbe6b6 100644 --- a/Source/OpenTK/Compute/CL10/Core.cs +++ b/Source/OpenTK/Compute/CL10/Core.cs @@ -28,6 +28,7 @@ namespace OpenTK.Compute.CL10 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -91,10 +92,10 @@ namespace OpenTK.Compute.CL10 internal extern static unsafe int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapBuffer", ExactSpelling = true)] - internal extern static unsafe IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + internal extern static unsafe System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMapImage", ExactSpelling = true)] - internal extern static unsafe IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + internal extern static unsafe System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(CL.Library, EntryPoint = "clEnqueueMarker", ExactSpelling = true)] internal extern static unsafe int EnqueueMarker(IntPtr command_queue, IntPtr* @event); diff --git a/Source/OpenTK/Compute/CL10/Delegates.cs b/Source/OpenTK/Compute/CL10/Delegates.cs index c1ec4fbd..447e673a 100644 --- a/Source/OpenTK/Compute/CL10/Delegates.cs +++ b/Source/OpenTK/Compute/CL10/Delegates.cs @@ -28,6 +28,7 @@ namespace OpenTK.Compute.CL10 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 0649 #pragma warning disable 3019 @@ -89,10 +90,10 @@ namespace OpenTK.Compute.CL10 internal unsafe delegate int EnqueueCopyImageToBuffer(IntPtr command_queue, IntPtr src_image, IntPtr dst_buffer, IntPtr** src_origin, IntPtr** region, IntPtr dst_offset, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event); internal unsafe static EnqueueCopyImageToBuffer clEnqueueCopyImageToBuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + internal unsafe delegate System.IntPtr EnqueueMapBuffer(IntPtr command_queue, IntPtr buffer, bool blocking_map, MapFlags map_flags, IntPtr offset, IntPtr cb, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); internal unsafe static EnqueueMapBuffer clEnqueueMapBuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); + internal unsafe delegate System.IntPtr EnqueueMapImage(IntPtr command_queue, IntPtr image, bool blocking_map, MapFlags map_flags, IntPtr** origin, IntPtr** region, IntPtr* image_row_pitch, IntPtr* image_slice_pitch, uint num_events_in_wait_list, IntPtr* event_wait_list, IntPtr* @event, [OutAttribute] int* errcode_ret); internal unsafe static EnqueueMapImage clEnqueueMapImage; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate int EnqueueMarker(IntPtr command_queue, IntPtr* @event); diff --git a/Source/OpenTK/Graphics/ES10/Core.cs b/Source/OpenTK/Graphics/ES10/Core.cs index f58b059e..a94cf0c9 100644 --- a/Source/OpenTK/Graphics/ES10/Core.cs +++ b/Source/OpenTK/Graphics/ES10/Core.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES10 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -172,7 +173,7 @@ namespace OpenTK.Graphics.ES10 internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES10.All pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES10.All name); + internal extern static unsafe System.IntPtr GetString(OpenTK.Graphics.ES10.All name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] internal extern static void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode); diff --git a/Source/OpenTK/Graphics/ES10/Delegates.cs b/Source/OpenTK/Graphics/ES10/Delegates.cs index 8f99f2b5..8a6d11e8 100644 --- a/Source/OpenTK/Graphics/ES10/Delegates.cs +++ b/Source/OpenTK/Graphics/ES10/Delegates.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES10 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 0649 #pragma warning disable 3019 @@ -170,7 +171,7 @@ namespace OpenTK.Graphics.ES10 internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES10.All pname, Int32* @params); internal unsafe static GetIntegerv glGetIntegerv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES10.All name); + internal unsafe delegate System.IntPtr GetString(OpenTK.Graphics.ES10.All name); internal unsafe static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode); diff --git a/Source/OpenTK/Graphics/ES10/ES.cs b/Source/OpenTK/Graphics/ES10/ES.cs index 249f7d92..8ede4550 100644 --- a/Source/OpenTK/Graphics/ES10/ES.cs +++ b/Source/OpenTK/Graphics/ES10/ES.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES10 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -2592,7 +2593,7 @@ namespace OpenTK.Graphics.ES10 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetString")] public static - unsafe string GetString(OpenTK.Graphics.ES10.All name) + unsafe System.String GetString(OpenTK.Graphics.ES10.All name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) diff --git a/Source/OpenTK/Graphics/ES11/Core.cs b/Source/OpenTK/Graphics/ES11/Core.cs index 9bbc0efc..2df43124 100644 --- a/Source/OpenTK/Graphics/ES11/Core.cs +++ b/Source/OpenTK/Graphics/ES11/Core.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES11 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -394,7 +395,7 @@ namespace OpenTK.Graphics.ES11 internal extern static unsafe void GetRenderbufferParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES11.All name); + internal extern static unsafe System.IntPtr GetString(OpenTK.Graphics.ES11.All name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexEnvfv", ExactSpelling = true)] internal extern static unsafe void GetTexEnvfv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params); @@ -514,7 +515,7 @@ namespace OpenTK.Graphics.ES11 internal extern static void LogicOp(OpenTK.Graphics.ES11.All opcode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferOES", ExactSpelling = true)] - internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access); + internal extern static unsafe System.IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialf", ExactSpelling = true)] internal extern static void Materialf(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param); diff --git a/Source/OpenTK/Graphics/ES11/Delegates.cs b/Source/OpenTK/Graphics/ES11/Delegates.cs index 7050ebfa..25979aea 100644 --- a/Source/OpenTK/Graphics/ES11/Delegates.cs +++ b/Source/OpenTK/Graphics/ES11/Delegates.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES11 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 0649 #pragma warning disable 3019 @@ -392,7 +393,7 @@ namespace OpenTK.Graphics.ES11 internal unsafe delegate void GetRenderbufferParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); internal unsafe static GetRenderbufferParameterivOES glGetRenderbufferParameterivOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES11.All name); + internal unsafe delegate System.IntPtr GetString(OpenTK.Graphics.ES11.All name); internal unsafe static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetTexEnvfv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params); @@ -512,7 +513,7 @@ namespace OpenTK.Graphics.ES11 internal delegate void LogicOp(OpenTK.Graphics.ES11.All opcode); internal static LogicOp glLogicOp; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access); + internal unsafe delegate System.IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access); internal unsafe static MapBufferOES glMapBufferOES; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Materialf(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param); diff --git a/Source/OpenTK/Graphics/ES11/ES.cs b/Source/OpenTK/Graphics/ES11/ES.cs index 76537929..3c0d6bfd 100644 --- a/Source/OpenTK/Graphics/ES11/ES.cs +++ b/Source/OpenTK/Graphics/ES11/ES.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES11 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -5011,7 +5012,7 @@ namespace OpenTK.Graphics.ES11 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetString")] public static - unsafe string GetString(OpenTK.Graphics.ES11.All name) + unsafe System.String GetString(OpenTK.Graphics.ES11.All name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -12497,7 +12498,7 @@ namespace OpenTK.Graphics.ES11 [System.CLSCompliant(false)] [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMapBufferOES")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index 77e3ba22..e7b43343 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES20 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -247,10 +248,10 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GenTextures(Int32 n, [OutAttribute] UInt32* textures); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] - internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); @@ -271,7 +272,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlStringQCOM", ExactSpelling = true)] - internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString); + internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetError", ExactSpelling = true)] internal extern static OpenTK.Graphics.ES20.ErrorCode GetError(); @@ -298,19 +299,19 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString); + internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)] internal extern static unsafe void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString); + internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramBinaryOES", ExactSpelling = true)] internal extern static unsafe void GetProgramBinaryOES(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); + internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)] internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params); @@ -319,7 +320,7 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); + internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)] internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params); @@ -328,10 +329,10 @@ namespace OpenTK.Graphics.ES20 internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] - internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.StringName name); + internal extern static unsafe System.IntPtr GetString(OpenTK.Graphics.ES20.StringName name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params); @@ -391,7 +392,7 @@ namespace OpenTK.Graphics.ES20 internal extern static void LinkProgram(UInt32 program); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferOES", ExactSpelling = true)] - internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); + internal extern static unsafe System.IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] internal extern static void PixelStorei(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param); diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 609c7755..7fc4aaa0 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES20 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 0649 #pragma warning disable 3019 @@ -245,10 +246,10 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GenTextures(Int32 n, [OutAttribute] UInt32* textures); internal unsafe static GenTextures glGenTextures; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveAttrib glGetActiveAttrib; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveUniform glGetActiveUniform; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, [OutAttribute] Int32* count, [OutAttribute] UInt32* shaders); @@ -269,7 +270,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetDriverControlsQCOM([OutAttribute] Int32* num, Int32 size, [OutAttribute] UInt32* driverControls); internal unsafe static GetDriverControlsQCOM glGetDriverControlsQCOM; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString); + internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString); internal unsafe static GetDriverControlStringQCOM glGetDriverControlStringQCOM; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate OpenTK.Graphics.ES20.ErrorCode GetError(); @@ -296,19 +297,19 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters); internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString); + internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString); internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups); internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString); + internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString); internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetProgramBinaryOES(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] OpenTK.Graphics.ES20.All* binaryFormat, [OutAttribute] IntPtr binary); internal unsafe static GetProgramBinaryOES glGetProgramBinaryOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); + internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog); internal unsafe static GetProgramInfoLog glGetProgramInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.ProgramParameter pname, [OutAttribute] Int32* @params); @@ -317,7 +318,7 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.RenderbufferTarget target, OpenTK.Graphics.ES20.RenderbufferParameterName pname, [OutAttribute] Int32* @params); internal unsafe static GetRenderbufferParameteriv glGetRenderbufferParameteriv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog); + internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog); internal unsafe static GetShaderInfoLog glGetShaderInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.ShaderParameter pname, [OutAttribute] Int32* @params); @@ -326,10 +327,10 @@ namespace OpenTK.Graphics.ES20 internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.ShaderType shadertype, OpenTK.Graphics.ES20.ShaderPrecision precisiontype, [OutAttribute] Int32* range, [OutAttribute] Int32* precision); internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); internal unsafe static GetShaderSource glGetShaderSource; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.StringName name); + internal unsafe delegate System.IntPtr GetString(OpenTK.Graphics.ES20.StringName name); internal unsafe static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.GetTextureParameter pname, [OutAttribute] Single* @params); @@ -389,7 +390,7 @@ namespace OpenTK.Graphics.ES20 internal delegate void LinkProgram(UInt32 program); internal static LinkProgram glLinkProgram; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); + internal unsafe delegate System.IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); internal unsafe static MapBufferOES glMapBufferOES; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void PixelStorei(OpenTK.Graphics.ES20.PixelStoreParameter pname, Int32 param); diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index decd2b4f..7ca68d4d 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.ES20 { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -791,13 +792,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) + unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -805,7 +806,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -815,7 +816,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); } } #if DEBUG @@ -825,7 +826,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -835,7 +836,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); length = *length_ptr; } } @@ -847,13 +848,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) + unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -862,7 +863,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -872,7 +873,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); } } #if DEBUG @@ -883,7 +884,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -893,7 +894,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); length = *length_ptr; } } @@ -1025,13 +1026,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) + unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1039,7 +1040,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1049,7 +1050,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); } } #if DEBUG @@ -1059,7 +1060,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1069,7 +1070,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); length = *length_ptr; } } @@ -1081,13 +1082,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) + unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1096,7 +1097,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1106,7 +1107,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); } } #if DEBUG @@ -1117,7 +1118,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1127,7 +1128,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); length = *length_ptr; } } @@ -5257,13 +5258,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5310,7 +5311,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5322,7 +5323,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5371,7 +5372,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5383,7 +5384,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -5436,13 +5437,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5490,7 +5491,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveAttribType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5502,7 +5503,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5552,7 +5553,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5564,7 +5565,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -5617,13 +5618,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5670,7 +5671,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5682,7 +5683,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5731,7 +5732,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5743,7 +5744,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -5796,13 +5797,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -5850,7 +5851,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] Int32[] size, [OutAttribute] OpenTK.Graphics.ES20.ActiveUniformType[] type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5862,7 +5863,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); } } #if DEBUG @@ -5912,7 +5913,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.ES20.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -5924,7 +5925,7 @@ namespace OpenTK.Graphics.ES20 fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.ES20.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.ActiveUniformType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -6548,13 +6549,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString) + unsafe void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (StringBuilder)driverControlString); #if DEBUG } #endif @@ -6562,7 +6563,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder driverControlString) + void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6572,7 +6573,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); } } #if DEBUG @@ -6582,7 +6583,7 @@ namespace OpenTK.Graphics.ES20 [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder driverControlString) + void GetDriverControlStringQCOM(Int32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6592,7 +6593,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); length = *length_ptr; } } @@ -6604,13 +6605,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder driverControlString) + unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (StringBuilder)driverControlString); #if DEBUG } #endif @@ -6619,7 +6620,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder driverControlString) + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6629,7 +6630,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); } } #if DEBUG @@ -6640,7 +6641,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] public static - void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder driverControlString) + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder driverControlString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6650,7 +6651,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)driverControlString); + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)driverControlString); length = *length_ptr; } } @@ -6865,13 +6866,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -6903,7 +6904,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6913,7 +6914,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -6947,7 +6948,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(Int32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -6957,7 +6958,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); length = *length_ptr; } } @@ -6993,13 +6994,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -7032,7 +7033,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7042,7 +7043,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -7077,7 +7078,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetProgramInfoLog(UInt32 program, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7087,7 +7088,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); length = *length_ptr; } } @@ -7407,13 +7408,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -7445,7 +7446,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7455,7 +7456,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -7489,7 +7490,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetShaderInfoLog(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7499,7 +7500,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); length = *length_ptr; } } @@ -7535,13 +7536,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infolog) + unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)infolog); #if DEBUG } #endif @@ -7574,7 +7575,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder infolog) + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7584,7 +7585,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); } } #if DEBUG @@ -7619,7 +7620,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infolog) + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infolog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7629,7 +7630,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)infolog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)infolog); length = *length_ptr; } } @@ -7952,13 +7953,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -7990,7 +7991,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8000,7 +8001,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); } } #if DEBUG @@ -8034,7 +8035,7 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8044,7 +8045,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -8080,13 +8081,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -8119,7 +8120,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] Int32[] length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8129,7 +8130,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); } } #if DEBUG @@ -8164,7 +8165,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufsize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8174,7 +8175,7 @@ namespace OpenTK.Graphics.ES20 { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -8195,7 +8196,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetString")] public static - unsafe string GetString(OpenTK.Graphics.ES20.StringName name) + unsafe System.String GetString(OpenTK.Graphics.ES20.StringName name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -17850,7 +17851,7 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glMapBufferOES")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 8f67dba5..7f4143cf 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.OpenGL { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -926,13 +927,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) + unsafe void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -940,7 +941,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(Int32 group, Int32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -950,7 +951,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); length = *length_ptr; } } @@ -962,13 +963,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString) + unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (StringBuilder)counterString); #if DEBUG } #endif @@ -977,7 +978,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorCounterStringAMD")] public static - void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder counterString) + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder counterString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -987,7 +988,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)counterString); + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)counterString); length = *length_ptr; } } @@ -1112,13 +1113,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) + unsafe void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1126,7 +1127,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(Int32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1136,7 +1137,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); length = *length_ptr; } } @@ -1148,13 +1149,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString) + unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (StringBuilder)groupString); #if DEBUG } #endif @@ -1163,7 +1164,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AmdPerformanceMonitor", Version = "1.2", EntryPoint = "glGetPerfMonitorGroupStringAMD")] public static - void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder groupString) + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder groupString) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -1173,7 +1174,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)groupString); + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)groupString); length = *length_ptr; } } @@ -3126,7 +3127,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectPurgeableAPPLE")] public static - IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -3141,7 +3142,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectPurgeableAPPLE")] public static - IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectPurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -3155,7 +3156,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectUnpurgeableAPPLE")] public static - IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, Int32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -3170,7 +3171,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AppleObjectPurgeable", Version = "1.5", EntryPoint = "glObjectUnpurgeableAPPLE")] public static - IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) + System.IntPtr ObjectUnpurgeable(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7918,13 +7919,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - unsafe void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (StringBuilder)name); #if DEBUG } #endif @@ -7971,7 +7972,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -7983,7 +7984,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbVertexShader* type_ptr = &type) { - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -8036,13 +8037,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - unsafe void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type, (StringBuilder)name); #if DEBUG } #endif @@ -8090,7 +8091,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexShader", Version = "1.2", EntryPoint = "glGetActiveAttribARB")] public static - void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbVertexShader type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8102,7 +8103,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbVertexShader* type_ptr = &type) { - Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttribARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbVertexShader*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -8155,13 +8156,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - unsafe void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (StringBuilder)name); #if DEBUG } #endif @@ -8208,7 +8209,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(Int32 programObj, Int32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8220,7 +8221,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbShaderObjects* type_ptr = &type) { - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -8273,13 +8274,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - unsafe void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type, (StringBuilder)name); #if DEBUG } #endif @@ -8327,7 +8328,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetActiveUniformARB")] public static - void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ArbShaderObjects type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -8339,7 +8340,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ArbShaderObjects* type_ptr = &type) { - Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniformARB((UInt32)programObj, (UInt32)index, (Int32)maxLength, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ArbShaderObjects*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -9129,13 +9130,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - unsafe void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -9143,7 +9144,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetInfoLog(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9153,7 +9154,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -9165,13 +9166,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - unsafe void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -9180,7 +9181,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetInfoLogARB")] public static - void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetInfoLog(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -9190,7 +9191,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetInfoLogARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -10490,13 +10491,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - unsafe void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -10528,7 +10529,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10538,7 +10539,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -10574,13 +10575,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - unsafe void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -10613,7 +10614,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbShaderObjects", Version = "1.2", EntryPoint = "glGetShaderSourceARB")] public static - void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 obj, Int32 maxLength, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -10623,7 +10624,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSourceARB((UInt32)obj, (Int32)maxLength, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -12417,7 +12418,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbVertexBufferObject", Version = "1.2", EntryPoint = "glMapBufferARB")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24133,7 +24134,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AtiMapObjectBuffer", Version = "1.2", EntryPoint = "glMapObjectBufferATI")] public static - unsafe IntPtr MapObjectBuffer(Int32 buffer) + unsafe System.IntPtr MapObjectBuffer(Int32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -24148,7 +24149,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "AtiMapObjectBuffer", Version = "1.2", EntryPoint = "glMapObjectBufferATI")] public static - unsafe IntPtr MapObjectBuffer(UInt32 buffer) + unsafe System.IntPtr MapObjectBuffer(UInt32 buffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41376,13 +41377,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41429,7 +41430,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41441,7 +41442,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41494,13 +41495,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41548,7 +41549,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveAttrib")] public static - void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41560,7 +41561,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41613,13 +41614,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41666,7 +41667,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41678,7 +41679,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41731,13 +41732,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -41785,7 +41786,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetActiveUniform")] public static - void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveUniformType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41797,7 +41798,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveUniformType* type_ptr = &type) { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveUniformType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -41925,13 +41926,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - unsafe void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + unsafe void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformBlockName); #if DEBUG } #endif @@ -41939,7 +41940,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + void GetActiveUniformBlockName(Int32 program, Int32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41949,7 +41950,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformBlockName); length = *length_ptr; } } @@ -41961,13 +41962,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformBlockName); #if DEBUG } #endif @@ -41976,7 +41977,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformBlockName")] public static - void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformBlockName) + void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformBlockName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -41986,7 +41987,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformBlockName); + Delegates.glGetActiveUniformBlockName((UInt32)program, (UInt32)uniformBlockIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformBlockName); length = *length_ptr; } } @@ -41998,13 +41999,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - unsafe void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName) + unsafe void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformName); #if DEBUG } #endif @@ -42012,7 +42013,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformName) + void GetActiveUniformName(Int32 program, Int32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42022,7 +42023,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformName); length = *length_ptr; } } @@ -42034,13 +42035,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName) + unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length, (StringBuilder)uniformName); #if DEBUG } #endif @@ -42049,7 +42050,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbUniformBufferObject", Version = "2.0", EntryPoint = "glGetActiveUniformName")] public static - void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder uniformName) + void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder uniformName) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -42059,7 +42060,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)uniformName); + Delegates.glGetActiveUniformName((UInt32)program, (UInt32)uniformIndex, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)uniformName); length = *length_ptr; } } @@ -47664,13 +47665,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -47702,7 +47703,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetProgramInfoLog(Int32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -47712,7 +47713,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -47748,13 +47749,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -47787,7 +47788,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] public static - void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -47797,7 +47798,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -49344,13 +49345,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -49382,7 +49383,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetShaderInfoLog(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49392,7 +49393,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -49428,13 +49429,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog) + unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)infoLog); #if DEBUG } #endif @@ -49467,7 +49468,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] public static - void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder infoLog) + void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder infoLog) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49477,7 +49478,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)infoLog); + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)infoLog); length = *length_ptr; } } @@ -49741,13 +49742,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -49779,7 +49780,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(Int32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49789,7 +49790,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -49825,13 +49826,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source) + unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length, (StringBuilder)source); #if DEBUG } #endif @@ -49864,7 +49865,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version20", Version = "2.0", EntryPoint = "glGetShaderSource")] public static - void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] System.Text.StringBuilder source) + void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] StringBuilder source) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49874,7 +49875,7 @@ namespace OpenTK.Graphics.OpenGL { fixed (Int32* length_ptr = &length) { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufSize, (Int32*)length_ptr, (StringBuilder)source); length = *length_ptr; } } @@ -49894,7 +49895,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version10", Version = "1.0", EntryPoint = "glGetString")] public static - string GetString(OpenTK.Graphics.OpenGL.StringName name) + System.String GetString(OpenTK.Graphics.OpenGL.StringName name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49917,7 +49918,7 @@ namespace OpenTK.Graphics.OpenGL /// [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetStringi")] public static - string GetString(OpenTK.Graphics.OpenGL.StringName name, Int32 index) + System.String GetString(OpenTK.Graphics.OpenGL.StringName name, Int32 index) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -49941,7 +49942,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetStringi")] public static - string GetString(OpenTK.Graphics.OpenGL.StringName name, UInt32 index) + System.String GetString(OpenTK.Graphics.OpenGL.StringName name, UInt32 index) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -51425,13 +51426,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -51439,7 +51440,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -51451,7 +51452,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -51465,13 +51466,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type, (StringBuilder)name); #if DEBUG } #endif @@ -51480,7 +51481,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version30", Version = "3.0", EntryPoint = "glGetTransformFeedbackVarying")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ActiveAttribType type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -51492,7 +51493,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ActiveAttribType* type_ptr = &type) { - Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVarying((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ActiveAttribType*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -56364,7 +56365,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "Version15", Version = "1.5", EntryPoint = "glMapBuffer")] public static - unsafe IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access) + unsafe System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -56379,7 +56380,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")] public static - unsafe IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access) + unsafe System.IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -98917,13 +98918,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -98931,7 +98932,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -98943,7 +98944,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ExtTransformFeedback* type_ptr = &type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -98957,13 +98958,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -98972,7 +98973,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtTransformFeedback", Version = "2.0", EntryPoint = "glGetTransformFeedbackVaryingEXT")] public static - void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.ExtTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -98984,7 +98985,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.ExtTransformFeedback* type_ptr = &type) { - Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.ExtTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -100429,7 +100430,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMapNamedBufferEXT")] public static - unsafe IntPtr MapNamedBuffer(Int32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) + unsafe System.IntPtr MapNamedBuffer(Int32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -100444,7 +100445,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ExtDirectStateAccess", Version = "", EntryPoint = "glMapNamedBufferEXT")] public static - unsafe IntPtr MapNamedBuffer(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) + unsafe System.IntPtr MapNamedBuffer(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -124317,13 +124318,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - unsafe void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -124331,7 +124332,7 @@ namespace OpenTK.Graphics.OpenGL [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveVarying(Int32 program, Int32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -124343,7 +124344,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.NvTransformFeedback* type_ptr = &type) { - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; @@ -124357,13 +124358,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - unsafe void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name) + unsafe void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type, (StringBuilder)name); #if DEBUG } #endif @@ -124372,7 +124373,7 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "NvTransformFeedback", Version = "1.5", EntryPoint = "glGetActiveVaryingNV")] public static - void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] System.Text.StringBuilder name) + void GetActiveVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] out Int32 length, [OutAttribute] out Int32 size, [OutAttribute] out OpenTK.Graphics.OpenGL.NvTransformFeedback type, [OutAttribute] StringBuilder name) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) @@ -124384,7 +124385,7 @@ namespace OpenTK.Graphics.OpenGL fixed (Int32* size_ptr = &size) fixed (OpenTK.Graphics.OpenGL.NvTransformFeedback* type_ptr = &type) { - Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (System.Text.StringBuilder)name); + Delegates.glGetActiveVaryingNV((UInt32)program, (UInt32)index, (Int32)bufSize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.OpenGL.NvTransformFeedback*)type_ptr, (StringBuilder)name); length = *length_ptr; size = *size_ptr; type = *type_ptr; diff --git a/Source/OpenTK/Graphics/OpenGL/GLCore.cs b/Source/OpenTK/Graphics/OpenGL/GLCore.cs index 0908d0bf..0edf6d1a 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLCore.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLCore.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.OpenGL { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 3019 #pragma warning disable 1591 @@ -1513,31 +1514,31 @@ namespace OpenTK.Graphics.OpenGL internal extern static Int32 GenVertexShadersEXT(UInt32 range); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] - internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttribARB", ExactSpelling = true)] - internal extern static unsafe void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformARB", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformBlockiv", ExactSpelling = true)] internal extern static unsafe void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformBlockName", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName); + internal extern static unsafe void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformName", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName); + internal extern static unsafe void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniformsiv", ExactSpelling = true)] internal extern static unsafe void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveVaryingNV", ExactSpelling = true)] - internal extern static unsafe void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetArrayObjectfvATI", ExactSpelling = true)] internal extern static unsafe void GetArrayObjectfvATI(OpenTK.Graphics.OpenGL.EnableCap array, OpenTK.Graphics.OpenGL.AtiVertexArrayObject pname, [OutAttribute] Single* @params); @@ -1747,7 +1748,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetImageTransformParameterivHP(OpenTK.Graphics.OpenGL.HpImageTransform target, OpenTK.Graphics.OpenGL.HpImageTransform pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInfoLogARB", ExactSpelling = true)] - internal extern static unsafe void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog); + internal extern static unsafe void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetInstrumentsSGIX", ExactSpelling = true)] internal extern static Int32 GetInstrumentsSGIX(); @@ -1951,13 +1952,13 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString); + internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)] internal extern static unsafe void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)] - internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString); + internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPixelMapfv", ExactSpelling = true)] internal extern static unsafe void GetPixelMapfv(OpenTK.Graphics.OpenGL.PixelMap map, [OutAttribute] Single* values); @@ -1999,7 +2000,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetProgramEnvParameterIuivNV(OpenTK.Graphics.OpenGL.NvGpuProgram4 target, UInt32 index, [OutAttribute] UInt32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog); + internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)] internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.OpenGL.ProgramParameter pname, [OutAttribute] Int32* @params); @@ -2077,25 +2078,25 @@ namespace OpenTK.Graphics.OpenGL internal extern static void GetSeparableFilterEXT(OpenTK.Graphics.OpenGL.ExtConvolution target, OpenTK.Graphics.OpenGL.PixelFormat format, OpenTK.Graphics.OpenGL.PixelType type, [OutAttribute] IntPtr row, [OutAttribute] IntPtr column, [OutAttribute] IntPtr span); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog); + internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)] internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL.ShaderParameter pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] - internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSourceARB", ExactSpelling = true)] - internal extern static unsafe void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal extern static unsafe void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetSharpenTexFuncSGIS", ExactSpelling = true)] internal extern static unsafe void GetSharpenTexFuncSGIS(OpenTK.Graphics.OpenGL.TextureTarget target, [OutAttribute] Single* points); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name); + internal extern static System.IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetStringi", ExactSpelling = true)] - internal extern static IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index); + internal extern static System.IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetSynciv", ExactSpelling = true)] internal extern static unsafe void GetSynciv(IntPtr sync, OpenTK.Graphics.OpenGL.ArbSync pname, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* values); @@ -2179,10 +2180,10 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void GetTrackMatrixivNV(OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb target, UInt32 address, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb pname, [OutAttribute] Int32* @params); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVarying", ExactSpelling = true)] - internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVaryingEXT", ExactSpelling = true)] - internal extern static unsafe void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name); + internal extern static unsafe void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTransformFeedbackVaryingNV", ExactSpelling = true)] internal extern static unsafe void GetTransformFeedbackVaryingNV(UInt32 program, UInt32 index, [OutAttribute] Int32* location); @@ -2611,13 +2612,13 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void Map2f(OpenTK.Graphics.OpenGL.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single* points); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBuffer", ExactSpelling = true)] - internal extern static unsafe IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access); + internal extern static unsafe System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferARB", ExactSpelling = true)] - internal extern static unsafe IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access); + internal extern static unsafe System.IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferRange", ExactSpelling = true)] - internal extern static unsafe IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access); + internal extern static unsafe System.IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapControlPointsNV", ExactSpelling = true)] internal extern static void MapControlPointsNV(OpenTK.Graphics.OpenGL.NvEvaluators target, UInt32 index, OpenTK.Graphics.OpenGL.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, IntPtr points); @@ -2635,10 +2636,10 @@ namespace OpenTK.Graphics.OpenGL internal extern static void MapGrid2f(Int32 un, Single u1, Single u2, Int32 vn, Single v1, Single v2); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapNamedBufferEXT", ExactSpelling = true)] - internal extern static unsafe IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access); + internal extern static unsafe System.IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapObjectBufferATI", ExactSpelling = true)] - internal extern static unsafe IntPtr MapObjectBufferATI(UInt32 buffer); + internal extern static unsafe System.IntPtr MapObjectBufferATI(UInt32 buffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapParameterfvNV", ExactSpelling = true)] internal extern static unsafe void MapParameterfvNV(OpenTK.Graphics.OpenGL.NvEvaluators target, OpenTK.Graphics.OpenGL.NvEvaluators pname, Single* @params); @@ -3250,10 +3251,10 @@ namespace OpenTK.Graphics.OpenGL internal extern static unsafe void NormalStream3svATI(OpenTK.Graphics.OpenGL.AtiVertexStreams stream, Int16* coords); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glObjectPurgeableAPPLE", ExactSpelling = true)] - internal extern static IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); + internal extern static System.IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glObjectUnpurgeableAPPLE", ExactSpelling = true)] - internal extern static IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); + internal extern static System.IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrtho", ExactSpelling = true)] internal extern static void Ortho(Double left, Double right, Double bottom, Double top, Double zNear, Double zFar); diff --git a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs index ac149bdc..253e966c 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs @@ -28,6 +28,7 @@ namespace OpenTK.Graphics.OpenGL { using System; + using System.Text; using System.Runtime.InteropServices; #pragma warning disable 0649 #pragma warning disable 3019 @@ -1511,31 +1512,31 @@ namespace OpenTK.Graphics.OpenGL internal delegate Int32 GenVertexShadersEXT(UInt32 range); internal static GenVertexShadersEXT glGenVertexShadersEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveAttrib glGetActiveAttrib; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveAttribARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbVertexShader* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveAttribARB glGetActiveAttribARB; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveUniformType* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveUniform glGetActiveUniform; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveUniformARB(UInt32 programObj, UInt32 index, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ArbShaderObjects* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveUniformARB glGetActiveUniformARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetActiveUniformBlockiv(UInt32 program, UInt32 uniformBlockIndex, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params); internal unsafe static GetActiveUniformBlockiv glGetActiveUniformBlockiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformBlockName); + internal unsafe delegate void GetActiveUniformBlockName(UInt32 program, UInt32 uniformBlockIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformBlockName); internal unsafe static GetActiveUniformBlockName glGetActiveUniformBlockName; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder uniformName); + internal unsafe delegate void GetActiveUniformName(UInt32 program, UInt32 uniformIndex, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder uniformName); internal unsafe static GetActiveUniformName glGetActiveUniformName; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetActiveUniformsiv(UInt32 program, Int32 uniformCount, UInt32* uniformIndices, OpenTK.Graphics.OpenGL.ArbUniformBufferObject pname, [OutAttribute] Int32* @params); internal unsafe static GetActiveUniformsiv glGetActiveUniformsiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetActiveVaryingNV(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.NvTransformFeedback* type, [OutAttribute] StringBuilder name); internal unsafe static GetActiveVaryingNV glGetActiveVaryingNV; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetArrayObjectfvATI(OpenTK.Graphics.OpenGL.EnableCap array, OpenTK.Graphics.OpenGL.AtiVertexArrayObject pname, [OutAttribute] Single* @params); @@ -1745,7 +1746,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetImageTransformParameterivHP(OpenTK.Graphics.OpenGL.HpImageTransform target, OpenTK.Graphics.OpenGL.HpImageTransform pname, [OutAttribute] Int32* @params); internal unsafe static GetImageTransformParameterivHP glGetImageTransformParameterivHP; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog); + internal unsafe delegate void GetInfoLogARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog); internal unsafe static GetInfoLogARB glGetInfoLogARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate Int32 GetInstrumentsSGIX(); @@ -1949,13 +1950,13 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, [OutAttribute] Int32* numCounters, [OutAttribute] Int32* maxActiveCounters, Int32 counterSize, [OutAttribute] UInt32* counters); internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder counterString); + internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder counterString); internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetPerfMonitorGroupsAMD([OutAttribute] Int32* numGroups, Int32 groupsSize, [OutAttribute] UInt32* groups); internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder groupString); + internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder groupString); internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetPixelMapfv(OpenTK.Graphics.OpenGL.PixelMap map, [OutAttribute] Single* values); @@ -1997,7 +1998,7 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetProgramEnvParameterIuivNV(OpenTK.Graphics.OpenGL.NvGpuProgram4 target, UInt32 index, [OutAttribute] UInt32* @params); internal unsafe static GetProgramEnvParameterIuivNV glGetProgramEnvParameterIuivNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog); + internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog); internal unsafe static GetProgramInfoLog glGetProgramInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.OpenGL.ProgramParameter pname, [OutAttribute] Int32* @params); @@ -2075,25 +2076,25 @@ namespace OpenTK.Graphics.OpenGL internal delegate void GetSeparableFilterEXT(OpenTK.Graphics.OpenGL.ExtConvolution target, OpenTK.Graphics.OpenGL.PixelFormat format, OpenTK.Graphics.OpenGL.PixelType type, [OutAttribute] IntPtr row, [OutAttribute] IntPtr column, [OutAttribute] IntPtr span); internal static GetSeparableFilterEXT glGetSeparableFilterEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder infoLog); + internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder infoLog); internal unsafe static GetShaderInfoLog glGetShaderInfoLog; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.OpenGL.ShaderParameter pname, [OutAttribute] Int32* @params); internal unsafe static GetShaderiv glGetShaderiv; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); internal unsafe static GetShaderSource glGetShaderSource; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal unsafe delegate void GetShaderSourceARB(UInt32 obj, Int32 maxLength, [OutAttribute] Int32* length, [OutAttribute] StringBuilder source); internal unsafe static GetShaderSourceARB glGetShaderSourceARB; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetSharpenTexFuncSGIS(OpenTK.Graphics.OpenGL.TextureTarget target, [OutAttribute] Single* points); internal unsafe static GetSharpenTexFuncSGIS glGetSharpenTexFuncSGIS; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name); + internal delegate System.IntPtr GetString(OpenTK.Graphics.OpenGL.StringName name); internal static GetString glGetString; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index); + internal delegate System.IntPtr GetStringi(OpenTK.Graphics.OpenGL.StringName name, UInt32 index); internal static GetStringi glGetStringi; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetSynciv(IntPtr sync, OpenTK.Graphics.OpenGL.ArbSync pname, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* values); @@ -2177,10 +2178,10 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void GetTrackMatrixivNV(OpenTK.Graphics.OpenGL.AssemblyProgramTargetArb target, UInt32 address, OpenTK.Graphics.OpenGL.AssemblyProgramParameterArb pname, [OutAttribute] Int32* @params); internal unsafe static GetTrackMatrixivNV glGetTrackMatrixivNV; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetTransformFeedbackVarying(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ActiveAttribType* type, [OutAttribute] StringBuilder name); internal unsafe static GetTransformFeedbackVarying glGetTransformFeedbackVarying; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] System.Text.StringBuilder name); + internal unsafe delegate void GetTransformFeedbackVaryingEXT(UInt32 program, UInt32 index, Int32 bufSize, [OutAttribute] Int32* length, [OutAttribute] Int32* size, [OutAttribute] OpenTK.Graphics.OpenGL.ExtTransformFeedback* type, [OutAttribute] StringBuilder name); internal unsafe static GetTransformFeedbackVaryingEXT glGetTransformFeedbackVaryingEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void GetTransformFeedbackVaryingNV(UInt32 program, UInt32 index, [OutAttribute] Int32* location); @@ -2609,13 +2610,13 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void Map2f(OpenTK.Graphics.OpenGL.MapTarget target, Single u1, Single u2, Int32 ustride, Int32 uorder, Single v1, Single v2, Int32 vstride, Int32 vorder, Single* points); internal unsafe static Map2f glMap2f; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access); + internal unsafe delegate System.IntPtr MapBuffer(OpenTK.Graphics.OpenGL.BufferTarget target, OpenTK.Graphics.OpenGL.BufferAccess access); internal unsafe static MapBuffer glMapBuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access); + internal unsafe delegate System.IntPtr MapBufferARB(OpenTK.Graphics.OpenGL.BufferTargetArb target, OpenTK.Graphics.OpenGL.ArbVertexBufferObject access); internal unsafe static MapBufferARB glMapBufferARB; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access); + internal unsafe delegate System.IntPtr MapBufferRange(OpenTK.Graphics.OpenGL.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.OpenGL.BufferAccessMask access); internal unsafe static MapBufferRange glMapBufferRange; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void MapControlPointsNV(OpenTK.Graphics.OpenGL.NvEvaluators target, UInt32 index, OpenTK.Graphics.OpenGL.NvEvaluators type, Int32 ustride, Int32 vstride, Int32 uorder, Int32 vorder, bool packed, IntPtr points); @@ -2633,10 +2634,10 @@ namespace OpenTK.Graphics.OpenGL internal delegate void MapGrid2f(Int32 un, Single u1, Single u2, Int32 vn, Single v1, Single v2); internal static MapGrid2f glMapGrid2f; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access); + internal unsafe delegate System.IntPtr MapNamedBufferEXT(UInt32 buffer, OpenTK.Graphics.OpenGL.ExtDirectStateAccess access); internal unsafe static MapNamedBufferEXT glMapNamedBufferEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr MapObjectBufferATI(UInt32 buffer); + internal unsafe delegate System.IntPtr MapObjectBufferATI(UInt32 buffer); internal unsafe static MapObjectBufferATI glMapObjectBufferATI; [System.Security.SuppressUnmanagedCodeSecurity()] internal unsafe delegate void MapParameterfvNV(OpenTK.Graphics.OpenGL.NvEvaluators target, OpenTK.Graphics.OpenGL.NvEvaluators pname, Single* @params); @@ -3248,10 +3249,10 @@ namespace OpenTK.Graphics.OpenGL internal unsafe delegate void NormalStream3svATI(OpenTK.Graphics.OpenGL.AtiVertexStreams stream, Int16* coords); internal unsafe static NormalStream3svATI glNormalStream3svATI; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); + internal delegate System.IntPtr ObjectPurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); internal static ObjectPurgeableAPPLE glObjectPurgeableAPPLE; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); + internal delegate System.IntPtr ObjectUnpurgeableAPPLE(OpenTK.Graphics.OpenGL.AppleObjectPurgeable objectType, UInt32 name, OpenTK.Graphics.OpenGL.AppleObjectPurgeable option); internal static ObjectUnpurgeableAPPLE glObjectUnpurgeableAPPLE; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void Ortho(Double left, Double right, Double bottom, Double top, Double zNear, Double zFar); From f65df96c15cd7010ba54cf1fd4d780dac50d40a8 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 28 Oct 2009 19:55:52 +0000 Subject: [PATCH 18/18] Updated mergeinfo.