From d06191d464c3da900cca24949bec8ca07bf656cc Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 22 Oct 2009 21:49:11 +0000 Subject: [PATCH] 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), + } + }