From 01d40c551a33d5417a5469bb509fa8af525f0832 Mon Sep 17 00:00:00 2001 From: Stefanos A Date: Sun, 17 Nov 2013 23:57:38 +0100 Subject: [PATCH] Aligned FBO API with desktop OpenGL --- Source/OpenTK/Graphics/ES30/ES30.cs | 48 +++--- Source/OpenTK/Graphics/ES30/ES30Core.cs | 10 +- Source/OpenTK/Graphics/ES30/ES30Delegates.cs | 10 +- Source/OpenTK/Graphics/ES30/ES30Enums.cs | 147 ++++++++++++++++++- 4 files changed, 177 insertions(+), 38 deletions(-) diff --git a/Source/OpenTK/Graphics/ES30/ES30.cs b/Source/OpenTK/Graphics/ES30/ES30.cs index 361d14c5..9d09f14b 100644 --- a/Source/OpenTK/Graphics/ES30/ES30.cs +++ b/Source/OpenTK/Graphics/ES30/ES30.cs @@ -16371,7 +16371,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -16410,7 +16410,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -16441,13 +16441,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] public static - void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, Int32 renderbuffer) + void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, Int32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -16479,13 +16479,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] public static - void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) + void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.RenderbufferTarget)renderbuffertarget, (UInt32)renderbuffer); #if DEBUG } #endif @@ -16500,7 +16500,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -16517,7 +16517,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -16526,13 +16526,13 @@ namespace OpenTK.Graphics.ES30 /// [requires: v2.0 and ES_VERSION_2_0] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] public static - void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, Int32 texture, Int32 level) + void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, Int32 texture, Int32 level) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -16542,13 +16542,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] public static - void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, UInt32 texture, Int32 level) + void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, UInt32 texture, Int32 level) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (OpenTK.Graphics.ES30.TextureTarget2d)textarget, (UInt32)texture, (Int32)level); #if DEBUG } #endif @@ -16590,7 +16590,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); #if DEBUG } #endif @@ -16634,7 +16634,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); #if DEBUG } #endif @@ -16670,13 +16670,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glFramebufferTextureLayer")] public static - void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, Int32 texture, Int32 level, Int32 layer) + void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, Int32 texture, Int32 level, Int32 layer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); #if DEBUG } #endif @@ -16713,13 +16713,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glFramebufferTextureLayer")] public static - void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, UInt32 texture, Int32 level, Int32 layer) + void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferSlot)attachment, (UInt32)texture, (Int32)level, (Int32)layer); + Delegates.glFramebufferTextureLayer((OpenTK.Graphics.ES30.FramebufferTarget)target, (OpenTK.Graphics.ES30.FramebufferAttachment)attachment, (UInt32)texture, (Int32)level, (Int32)layer); #if DEBUG } #endif @@ -45141,7 +45141,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexStorage3D((OpenTK.Graphics.ES30.TextureTarget2d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); + Delegates.glTexStorage3D((OpenTK.Graphics.ES30.TextureTarget3d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); #if DEBUG } #endif @@ -45182,13 +45182,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glTexStorage3D")] public static - void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth) + void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexStorage3D((OpenTK.Graphics.ES30.TextureTarget2d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); + Delegates.glTexStorage3D((OpenTK.Graphics.ES30.TextureTarget3d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); #if DEBUG } #endif @@ -66230,7 +66230,7 @@ namespace OpenTK.Graphics.ES30 using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexStorage3DEXT((OpenTK.Graphics.ES30.TextureTarget2d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); + Delegates.glTexStorage3DEXT((OpenTK.Graphics.ES30.TextureTarget3d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); #if DEBUG } #endif @@ -66271,13 +66271,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "EXT_texture_storage", Version = "", EntryPoint = "glTexStorage3DEXT")] public static - void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth) + void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glTexStorage3DEXT((OpenTK.Graphics.ES30.TextureTarget2d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); + Delegates.glTexStorage3DEXT((OpenTK.Graphics.ES30.TextureTarget3d)target, (Int32)levels, (OpenTK.Graphics.ES30.SizedInternalFormat)internalformat, (Int32)width, (Int32)height, (Int32)depth); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES30/ES30Core.cs b/Source/OpenTK/Graphics/ES30/ES30Core.cs index 2fbe3cee..76587f17 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Core.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Core.cs @@ -467,10 +467,10 @@ namespace OpenTK.Graphics.ES30 internal extern static void FlushMappedBufferRangeEXT(OpenTK.Graphics.ES30.BufferTarget target, IntPtr offset, IntPtr length); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)] - internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer); + internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)] - internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, UInt32 texture, Int32 level); + internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, UInt32 texture, Int32 level); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2DMultisampleEXT", ExactSpelling = true)] internal extern static void FramebufferTexture2DMultisampleEXT(OpenTK.Graphics.ES30.All target, OpenTK.Graphics.ES30.All attachment, OpenTK.Graphics.ES30.All textarget, UInt32 texture, Int32 level, Int32 samples); @@ -482,7 +482,7 @@ namespace OpenTK.Graphics.ES30 internal extern static void FramebufferTexture3DOES(OpenTK.Graphics.ES30.All target, OpenTK.Graphics.ES30.All attachment, OpenTK.Graphics.ES30.All textarget, UInt32 texture, Int32 level, Int32 zoffset); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTextureLayer", ExactSpelling = true)] - internal extern static void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, UInt32 texture, Int32 level, Int32 layer); + internal extern static void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] internal extern static void FrontFace(OpenTK.Graphics.ES30.FrontFaceDirection mode); @@ -1148,10 +1148,10 @@ namespace OpenTK.Graphics.ES30 internal extern static void TexStorage2DEXT(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexStorage3D", ExactSpelling = true)] - internal extern static void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); + internal extern static void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexStorage3DEXT", ExactSpelling = true)] - internal extern static void TexStorage3DEXT(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); + internal extern static void TexStorage3DEXT(OpenTK.Graphics.ES30.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] internal extern static void TexSubImage2D(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES30.PixelFormat format, OpenTK.Graphics.ES30.PixelType type, IntPtr pixels); diff --git a/Source/OpenTK/Graphics/ES30/ES30Delegates.cs b/Source/OpenTK/Graphics/ES30/ES30Delegates.cs index 2a82b268..8a8c80c9 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Delegates.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Delegates.cs @@ -465,10 +465,10 @@ namespace OpenTK.Graphics.ES30 internal delegate void FlushMappedBufferRangeEXT(OpenTK.Graphics.ES30.BufferTarget target, IntPtr offset, IntPtr length); internal static FlushMappedBufferRangeEXT glFlushMappedBufferRangeEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer); + internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer); internal static FramebufferRenderbuffer glFramebufferRenderbuffer; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, UInt32 texture, Int32 level); + internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, OpenTK.Graphics.ES30.TextureTarget2d textarget, UInt32 texture, Int32 level); internal static FramebufferTexture2D glFramebufferTexture2D; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void FramebufferTexture2DMultisampleEXT(OpenTK.Graphics.ES30.All target, OpenTK.Graphics.ES30.All attachment, OpenTK.Graphics.ES30.All textarget, UInt32 texture, Int32 level, Int32 samples); @@ -480,7 +480,7 @@ namespace OpenTK.Graphics.ES30 internal delegate void FramebufferTexture3DOES(OpenTK.Graphics.ES30.All target, OpenTK.Graphics.ES30.All attachment, OpenTK.Graphics.ES30.All textarget, UInt32 texture, Int32 level, Int32 zoffset); internal static FramebufferTexture3DOES glFramebufferTexture3DOES; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferSlot attachment, UInt32 texture, Int32 level, Int32 layer); + internal delegate void FramebufferTextureLayer(OpenTK.Graphics.ES30.FramebufferTarget target, OpenTK.Graphics.ES30.FramebufferAttachment attachment, UInt32 texture, Int32 level, Int32 layer); internal static FramebufferTextureLayer glFramebufferTextureLayer; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void FrontFace(OpenTK.Graphics.ES30.FrontFaceDirection mode); @@ -1146,10 +1146,10 @@ namespace OpenTK.Graphics.ES30 internal delegate void TexStorage2DEXT(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height); internal static TexStorage2DEXT glTexStorage2DEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); + internal delegate void TexStorage3D(OpenTK.Graphics.ES30.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); internal static TexStorage3D glTexStorage3D; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexStorage3DEXT(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); + internal delegate void TexStorage3DEXT(OpenTK.Graphics.ES30.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES30.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth); internal static TexStorage3DEXT glTexStorage3DEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void TexSubImage2D(OpenTK.Graphics.ES30.TextureTarget2d target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES30.PixelFormat format, OpenTK.Graphics.ES30.PixelType type, IntPtr pixels); diff --git a/Source/OpenTK/Graphics/ES30/ES30Enums.cs b/Source/OpenTK/Graphics/ES30/ES30Enums.cs index 48f94dad..629f4e67 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Enums.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Enums.cs @@ -14601,7 +14601,7 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.GetFramebufferAttachmentParameter, GL.InvalidateFramebuffer and 1 other function + /// Used in GL.FramebufferRenderbuffer, GL.FramebufferTexture2D and 4 other functions /// public enum FramebufferAttachment : int { @@ -14782,7 +14782,7 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.FramebufferRenderbuffer, GL.FramebufferTexture2D and 1 other function + /// Not used directly. /// public enum FramebufferSlot : int { @@ -22066,6 +22066,53 @@ namespace OpenTK.Graphics.ES30 Patches = ((int)0x000E) , } + /// + /// Not used directly. + /// + public enum ProgramParameter : int + { + /// + /// Original was GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 + /// + ProgramBinaryRetrievableHint = ((int)0x8257) , + /// + /// Original was GL_DELETE_STATUS = 0x8B80 + /// + DeleteStatus = ((int)0x8B80) , + /// + /// Original was GL_LINK_STATUS = 0x8B82 + /// + LinkStatus = ((int)0x8B82) , + /// + /// Original was GL_VALIDATE_STATUS = 0x8B83 + /// + ValidateStatus = ((int)0x8B83) , + /// + /// Original was GL_INFO_LOG_LENGTH = 0x8B84 + /// + InfoLogLength = ((int)0x8B84) , + /// + /// Original was GL_ATTACHED_SHADERS = 0x8B85 + /// + AttachedShaders = ((int)0x8B85) , + /// + /// Original was GL_ACTIVE_UNIFORMS = 0x8B86 + /// + ActiveUniforms = ((int)0x8B86) , + /// + /// Original was GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 + /// + ActiveUniformMaxLength = ((int)0x8B87) , + /// + /// Original was GL_ACTIVE_ATTRIBUTES = 0x8B89 + /// + ActiveAttributes = ((int)0x8B89) , + /// + /// Original was GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A + /// + ActiveAttributeMaxLength = ((int)0x8B8A) , + } + /// /// Used in GL.ProgramParameter, GL.Ext.ProgramParameter /// @@ -23865,10 +23912,26 @@ namespace OpenTK.Graphics.ES30 /// LuminanceAlpha = ((int)0x190A) , /// + /// Original was GL_ALPHA8_EXT = 0x803C + /// + Alpha8Ext = ((int)0x803C) , + /// + /// Original was GL_LUMINANCE8_EXT = 0x8040 + /// + Luminance8Ext = ((int)0x8040) , + /// + /// Original was GL_LUMINANCE8_ALPHA8_EXT = 0x8045 + /// + Luminance8Alpha8Ext = ((int)0x8045) , + /// /// Original was GL_RGB8 = 0x8051 /// Rgb8 = ((int)0x8051) , /// + /// Original was GL_RGB10_EXT = 0x8052 + /// + Rgb10Ext = ((int)0x8052) , + /// /// Original was GL_RGBA4 = 0X8056 /// Rgba4 = ((int)0X8056) , @@ -23885,6 +23948,10 @@ namespace OpenTK.Graphics.ES30 /// Rgb10A2 = ((int)0x8059) , /// + /// Original was GL_RGB10_A2_EXT = 0x8059 + /// + Rgb10A2Ext = ((int)0x8059) , + /// /// Original was GL_DEPTH_COMPONENT16 = 0x81A5 /// DepthComponent16 = ((int)0x81A5) , @@ -23897,26 +23964,50 @@ namespace OpenTK.Graphics.ES30 /// R8 = ((int)0x8229) , /// + /// Original was GL_R8_EXT = 0x8229 + /// + R8Ext = ((int)0x8229) , + /// /// Original was GL_RG8 = 0x822B /// Rg8 = ((int)0x822B) , /// + /// Original was GL_RG8_EXT = 0x822B + /// + Rg8Ext = ((int)0x822B) , + /// /// Original was GL_R16F = 0x822D /// R16f = ((int)0x822D) , /// + /// Original was GL_R16F_EXT = 0x822D + /// + R16fExt = ((int)0x822D) , + /// /// Original was GL_R32F = 0x822E /// R32f = ((int)0x822E) , /// + /// Original was GL_R32F_EXT = 0x822E + /// + R32fExt = ((int)0x822E) , + /// /// Original was GL_RG16F = 0x822F /// Rg16f = ((int)0x822F) , /// + /// Original was GL_RG16F_EXT = 0x822F + /// + Rg16fExt = ((int)0x822F) , + /// /// Original was GL_RG32F = 0x8230 /// Rg32f = ((int)0x8230) , /// + /// Original was GL_RG32F_EXT = 0x8230 + /// + Rg32fExt = ((int)0x8230) , + /// /// Original was GL_R8I = 0x8231 /// R8i = ((int)0x8231) , @@ -23969,22 +24060,66 @@ namespace OpenTK.Graphics.ES30 /// Rgba32f = ((int)0x8814) , /// + /// Original was GL_RGBA32F_EXT = 0x8814 + /// + Rgba32fExt = ((int)0x8814) , + /// /// Original was GL_RGB32F = 0x8815 /// Rgb32f = ((int)0x8815) , /// + /// Original was GL_RGB32F_EXT = 0x8815 + /// + Rgb32fExt = ((int)0x8815) , + /// + /// Original was GL_ALPHA32F_EXT = 0x8816 + /// + Alpha32fExt = ((int)0x8816) , + /// + /// Original was GL_LUMINANCE32F_EXT = 0x8818 + /// + Luminance32fExt = ((int)0x8818) , + /// + /// Original was GL_LUMINANCE_ALPHA32F_EXT = 0x8819 + /// + LuminanceAlpha32fExt = ((int)0x8819) , + /// /// Original was GL_RGBA16F = 0x881A /// Rgba16f = ((int)0x881A) , /// + /// Original was GL_RGBA16F_EXT = 0x881A + /// + Rgba16fExt = ((int)0x881A) , + /// /// Original was GL_RGB16F = 0x881B /// Rgb16f = ((int)0x881B) , /// + /// Original was GL_RGB16F_EXT = 0x881B + /// + Rgb16fExt = ((int)0x881B) , + /// + /// Original was GL_ALPHA16F_EXT = 0x881C + /// + Alpha16fExt = ((int)0x881C) , + /// + /// Original was GL_LUMINANCE16F_EXT = 0x881E + /// + Luminance16fExt = ((int)0x881E) , + /// + /// Original was GL_LUMINANCE_ALPHA16F_EXT = 0x881F + /// + LuminanceAlpha16fExt = ((int)0x881F) , + /// /// Original was GL_DEPTH24_STENCIL8 = 0x88F0 /// Depth24Stencil8 = ((int)0x88F0) , /// + /// Original was GL_RGB_RAW_422_APPLE = 0x8A51 + /// + RgbRaw422Apple = ((int)0x8A51) , + /// /// Original was GL_R11F_G11F_B10F = 0x8C3A /// R11fG11fB10f = ((int)0x8C3A) , @@ -24080,6 +24215,10 @@ namespace OpenTK.Graphics.ES30 /// Original was GL_RGB10_A2UI = 0x906F /// Rgb10A2ui = ((int)0x906F) , + /// + /// Original was GL_BGRA8_EXT = 0x93A1 + /// + Bgra8Ext = ((int)0x93A1) , } /// @@ -24891,7 +25030,7 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.CompressedTexImage2D, GL.CompressedTexSubImage2D and 9 other functions + /// Used in GL.CompressedTexImage2D, GL.CompressedTexSubImage2D and 7 other functions /// public enum TextureTarget2d : int { @@ -24926,7 +25065,7 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.CompressedTexImage3D, GL.CompressedTexSubImage3D and 8 other functions + /// Used in GL.CompressedTexImage3D, GL.CompressedTexSubImage3D and 10 other functions /// public enum TextureTarget3d : int {