diff --git a/Source/Bind/Specifications/GL2/gloverrides.xml b/Source/Bind/Specifications/GL2/gloverrides.xml index 19d2d4f4..7264e380 100644 --- a/Source/Bind/Specifications/GL2/gloverrides.xml +++ b/Source/Bind/Specifications/GL2/gloverrides.xml @@ -984,6 +984,15 @@ + + + ImageTarget + + + ImageTarget + + + FramebufferTarget @@ -1129,7 +1138,7 @@ PixelFormat - TextureTarget3d + TexImageTarget @@ -1138,7 +1147,7 @@ PixelFormat - TextureTarget3d + TexImageTarget @@ -1970,6 +1979,9 @@ + + + @@ -2588,6 +2600,20 @@ + + + + + + + + + + + + + + @@ -3036,6 +3062,7 @@ + @@ -3243,7 +3270,7 @@ - + @@ -3258,6 +3285,19 @@ + + + + + + + + + + + + + diff --git a/Source/OpenTK/Graphics/OpenGL/GL.cs b/Source/OpenTK/Graphics/OpenGL/GL.cs index 12c00289..3409e2c4 100644 --- a/Source/OpenTK/Graphics/OpenGL/GL.cs +++ b/Source/OpenTK/Graphics/OpenGL/GL.cs @@ -42094,13 +42094,13 @@ namespace OpenTK.Graphics.OpenGL /// [requires: v4.3 and ARB_copy_image] [AutoGenerated(Category = "ARB_copy_image", Version = "4.3", EntryPoint = "glCopyImageSubData")] public static - void CopyImageSubData(Int32 srcName, OpenTK.Graphics.OpenGL.ArbCopyImage srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, Int32 dstName, OpenTK.Graphics.OpenGL.ArbCopyImage dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth) + void CopyImageSubData(Int32 srcName, OpenTK.Graphics.OpenGL.ImageTarget srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, Int32 dstName, OpenTK.Graphics.OpenGL.ImageTarget dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCopyImageSubData((UInt32)srcName, (OpenTK.Graphics.OpenGL.ArbCopyImage)srcTarget, (Int32)srcLevel, (Int32)srcX, (Int32)srcY, (Int32)srcZ, (UInt32)dstName, (OpenTK.Graphics.OpenGL.ArbCopyImage)dstTarget, (Int32)dstLevel, (Int32)dstX, (Int32)dstY, (Int32)dstZ, (Int32)srcWidth, (Int32)srcHeight, (Int32)srcDepth); + Delegates.glCopyImageSubData((UInt32)srcName, (OpenTK.Graphics.OpenGL.ImageTarget)srcTarget, (Int32)srcLevel, (Int32)srcX, (Int32)srcY, (Int32)srcZ, (UInt32)dstName, (OpenTK.Graphics.OpenGL.ImageTarget)dstTarget, (Int32)dstLevel, (Int32)dstX, (Int32)dstY, (Int32)dstZ, (Int32)srcWidth, (Int32)srcHeight, (Int32)srcDepth); #if DEBUG } #endif @@ -42110,13 +42110,13 @@ namespace OpenTK.Graphics.OpenGL [System.CLSCompliant(false)] [AutoGenerated(Category = "ARB_copy_image", Version = "4.3", EntryPoint = "glCopyImageSubData")] public static - void CopyImageSubData(UInt32 srcName, OpenTK.Graphics.OpenGL.ArbCopyImage srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.ArbCopyImage dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth) + void CopyImageSubData(UInt32 srcName, OpenTK.Graphics.OpenGL.ImageTarget srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.ImageTarget dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glCopyImageSubData((UInt32)srcName, (OpenTK.Graphics.OpenGL.ArbCopyImage)srcTarget, (Int32)srcLevel, (Int32)srcX, (Int32)srcY, (Int32)srcZ, (UInt32)dstName, (OpenTK.Graphics.OpenGL.ArbCopyImage)dstTarget, (Int32)dstLevel, (Int32)dstX, (Int32)dstY, (Int32)dstZ, (Int32)srcWidth, (Int32)srcHeight, (Int32)srcDepth); + Delegates.glCopyImageSubData((UInt32)srcName, (OpenTK.Graphics.OpenGL.ImageTarget)srcTarget, (Int32)srcLevel, (Int32)srcX, (Int32)srcY, (Int32)srcZ, (UInt32)dstName, (OpenTK.Graphics.OpenGL.ImageTarget)dstTarget, (Int32)dstLevel, (Int32)dstX, (Int32)dstY, (Int32)dstZ, (Int32)srcWidth, (Int32)srcHeight, (Int32)srcDepth); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/OpenGL/GLCore.cs b/Source/OpenTK/Graphics/OpenGL/GLCore.cs index ad39c37b..44051efd 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLCore.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLCore.cs @@ -914,7 +914,7 @@ namespace OpenTK.Graphics.OpenGL internal extern static void CopyConvolutionFilter2DEXT(OpenTK.Graphics.OpenGL.ExtConvolution target, OpenTK.Graphics.OpenGL.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyImageSubData", ExactSpelling = true)] - internal extern static void CopyImageSubData(UInt32 srcName, OpenTK.Graphics.OpenGL.ArbCopyImage srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.ArbCopyImage dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth); + internal extern static void CopyImageSubData(UInt32 srcName, OpenTK.Graphics.OpenGL.ImageTarget srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.ImageTarget dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyImageSubDataNV", ExactSpelling = true)] internal extern static void CopyImageSubDataNV(UInt32 srcName, OpenTK.Graphics.OpenGL.NvCopyImage srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.NvCopyImage dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 width, Int32 height, Int32 depth); diff --git a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs index 54d7642c..0a1b4f31 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLDelegates.cs @@ -912,7 +912,7 @@ namespace OpenTK.Graphics.OpenGL internal delegate void CopyConvolutionFilter2DEXT(OpenTK.Graphics.OpenGL.ExtConvolution target, OpenTK.Graphics.OpenGL.PixelInternalFormat internalformat, Int32 x, Int32 y, Int32 width, Int32 height); internal static CopyConvolutionFilter2DEXT glCopyConvolutionFilter2DEXT; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyImageSubData(UInt32 srcName, OpenTK.Graphics.OpenGL.ArbCopyImage srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.ArbCopyImage dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth); + internal delegate void CopyImageSubData(UInt32 srcName, OpenTK.Graphics.OpenGL.ImageTarget srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.ImageTarget dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 srcWidth, Int32 srcHeight, Int32 srcDepth); internal static CopyImageSubData glCopyImageSubData; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void CopyImageSubDataNV(UInt32 srcName, OpenTK.Graphics.OpenGL.NvCopyImage srcTarget, Int32 srcLevel, Int32 srcX, Int32 srcY, Int32 srcZ, UInt32 dstName, OpenTK.Graphics.OpenGL.NvCopyImage dstTarget, Int32 dstLevel, Int32 dstX, Int32 dstY, Int32 dstZ, Int32 width, Int32 height, Int32 depth); diff --git a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs index d815229a..e908bb64 100644 --- a/Source/OpenTK/Graphics/OpenGL/GLEnums.cs +++ b/Source/OpenTK/Graphics/OpenGL/GLEnums.cs @@ -740,10 +740,6 @@ namespace OpenTK.Graphics.OpenGL /// public enum All : int { - /// - /// Original was GL_DEFAULT = 0 - /// - Default = ((int)0) , /// /// Original was GL_FALSE = 0 /// @@ -21421,7 +21417,7 @@ namespace OpenTK.Graphics.OpenGL } /// - /// Used in GL.CopyImageSubData + /// Not used directly. /// public enum ArbCopyImage : int { @@ -29443,6 +29439,10 @@ namespace OpenTK.Graphics.OpenGL [Flags] public enum ClearBufferMask : int { + /// + /// Original was GL_NONE = 0 + /// + None = ((int)0) , /// /// Original was GL_DEPTH_BUFFER_BIT = 0x00000100 /// @@ -39763,6 +39763,61 @@ namespace OpenTK.Graphics.OpenGL SecondaryColorArrayListStrideIbm = ((int)103087) , } + /// + /// Used in GL.CopyImageSubData + /// + public enum ImageTarget : int + { + /// + /// Original was GL_TEXTURE_1D = 0x0DE0 + /// + Texture1D = ((int)0x0DE0) , + /// + /// Original was GL_TEXTURE_2D = 0x0DE1 + /// + Texture2D = ((int)0x0DE1) , + /// + /// Original was GL_TEXTURE_3D = 0x806F + /// + Texture3D = ((int)0x806F) , + /// + /// Original was GL_TEXTURE_RECTANGLE = 0x84F5 + /// + TextureRectangle = ((int)0x84F5) , + /// + /// Original was GL_TEXTURE_CUBE_MAP = 0x8513 + /// + TextureCubeMap = ((int)0x8513) , + /// + /// Original was GL_TEXTURE_1D_ARRAY = 0x8C18 + /// + Texture1DArray = ((int)0x8C18) , + /// + /// Original was GL_TEXTURE_2D_ARRAY = 0x8C1A + /// + Texture2DArray = ((int)0x8C1A) , + /// + /// Original was GL_TEXTURE_BUFFER = 0x8C2A + /// + TextureBuffer = ((int)0x8C2A) , + /// + /// Original was GL_RENDERBUFFER = 0x8D41 + /// + Renderbuffer = ((int)0x8D41) , + /// + /// Original was GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009 + /// + TextureCubeMapArray = ((int)0x9009) , + /// + /// Original was GL_TEXTURE_2D_MULTISAMPLE = 0x9100 + /// + Texture2DMultisample = ((int)0x9100) , + /// + /// Original was GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102 + /// + Texture2DMultisampleArray = ((int)0x9102) , + } + /// /// Not used directly. /// @@ -48941,6 +48996,10 @@ namespace OpenTK.Graphics.OpenGL /// Right = ((int)0x0407) , /// + /// Original was GL_FRONT_AND_BACK = 0x0408 + /// + FrontAndBack = ((int)0x0408) , + /// /// Original was GL_AUX0 = 0x0409 /// Aux0 = ((int)0x0409) , @@ -51761,6 +51820,57 @@ namespace OpenTK.Graphics.OpenGL Int2101010Rev = ((int)0x8D9F) , } + /// + /// Not used directly. + /// + public enum TexImageTarget : int + { + /// + /// Original was GL_TEXTURE_1D = 0x0DE0 + /// + Texture1D = ((int)0x0DE0) , + /// + /// Original was GL_TEXTURE_2D = 0x0DE1 + /// + Texture2D = ((int)0x0DE1) , + /// + /// Original was GL_TEXTURE_3D = 0x806F + /// + Texture3D = ((int)0x806F) , + /// + /// Original was GL_TEXTURE_RECTANGLE = 0x84F5 + /// + TextureRectangle = ((int)0x84F5) , + /// + /// Original was GL_TEXTURE_CUBE_MAP = 0x8513 + /// + TextureCubeMap = ((int)0x8513) , + /// + /// Original was GL_TEXTURE_1D_ARRAY = 0x8C18 + /// + Texture1DArray = ((int)0x8C18) , + /// + /// Original was GL_TEXTURE_2D_ARRAY = 0x8C1A + /// + Texture2DArray = ((int)0x8C1A) , + /// + /// Original was GL_TEXTURE_BUFFER = 0x8C2A + /// + TextureBuffer = ((int)0x8C2A) , + /// + /// Original was GL_TEXTURE_CUBE_MAP_ARRAY = 0x9009 + /// + TextureCubeMapArray = ((int)0x9009) , + /// + /// Original was GL_TEXTURE_2D_MULTISAMPLE = 0x9100 + /// + Texture2DMultisample = ((int)0x9100) , + /// + /// Original was GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102 + /// + Texture2DMultisampleArray = ((int)0x9102) , + } + /// /// Used in GL.BindImageTexture /// @@ -60725,9 +60835,9 @@ namespace OpenTK.Graphics.OpenGL public enum WaitSyncFlags : int { /// - /// Original was GL_DEFAULT = 0 + /// Original was GL_NONE = 0 /// - Default = ((int)0) , + None = ((int)0) , /// /// Original was GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001 ///