diff --git a/Source/Bind/Specifications/GL2/overrides.xml b/Source/Bind/Specifications/GL2/overrides.xml index 2c3715b2..79409bcf 100644 --- a/Source/Bind/Specifications/GL2/overrides.xml +++ b/Source/Bind/Specifications/GL2/overrides.xml @@ -4217,7 +4217,7 @@ - CullFaceMode + StencilFace StencilFunction @@ -4232,10 +4232,11 @@ - CullFaceMode - StencilOp - StencilOp - StencilOp + StencilFace + StencilFunction + StencilOp + StencilOp + StencilOp @@ -4457,6 +4458,22 @@ + + + + + + + + + + + + + + + + @@ -4752,6 +4769,12 @@ + + + + + + @@ -5292,11 +5315,56 @@ TextureTarget - + TextureTarget GetTextureParameterName - + + + + + StencilFunction + + + StencilFace + StencilFunction + + + StencilOp + StencilOp + StencilOp + + + StencilFace + StencilFunction + StencilOp + StencilOp + StencilOp + + + + + DepthFunction + + + + + BlendEquationMode + + + BlendEquationMode + BlendEquationMode + + + BlendingFactorSrc + BlendingFactorDest + + + BlendingFactorSrc + BlendingFactorDest + BlendingFactorSrc + BlendingFactorDest + @@ -5383,6 +5451,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5455,6 +5548,9 @@ + + + @@ -5464,6 +5560,13 @@ + + + + + + + @@ -5642,6 +5745,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Source/OpenTK/Graphics/ES20/ES20.cs b/Source/OpenTK/Graphics/ES20/ES20.cs index 295ad813..d2a5f13e 100644 --- a/Source/OpenTK/Graphics/ES20/ES20.cs +++ b/Source/OpenTK/Graphics/ES20/ES20.cs @@ -16503,13 +16503,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, Int32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.StencilFace)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -16542,13 +16542,13 @@ namespace OpenTK.Graphics.ES20 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.StencilFace)face, (OpenTK.Graphics.ES20.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -16717,13 +16717,13 @@ namespace OpenTK.Graphics.ES20 /// [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilOpSeparate")] public static - void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass) + void StencilOpSeparate(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (OpenTK.Graphics.ES20.StencilOp)sfail, (OpenTK.Graphics.ES20.StencilOp)dpfail, (OpenTK.Graphics.ES20.StencilOp)dppass); + Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.StencilFace)face, (OpenTK.Graphics.ES20.StencilOp)sfail, (OpenTK.Graphics.ES20.StencilOp)dpfail, (OpenTK.Graphics.ES20.StencilOp)dppass); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES20/ES20Core.cs b/Source/OpenTK/Graphics/ES20/ES20Core.cs index e6388d3f..ccfed0ed 100644 --- a/Source/OpenTK/Graphics/ES20/ES20Core.cs +++ b/Source/OpenTK/Graphics/ES20/ES20Core.cs @@ -878,7 +878,10 @@ namespace OpenTK.Graphics.ES20 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.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); + internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES20.StencilFace face, 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 StencilFuncSeparate1(OpenTK.Graphics.ES20.StencilFace 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); @@ -890,7 +893,10 @@ namespace OpenTK.Graphics.ES20 internal extern static void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] - internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass); + internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] + internal extern static void StencilOpSeparate1(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] internal extern static bool TestFenceNV(UInt32 fence); diff --git a/Source/OpenTK/Graphics/ES20/ES20Delegates.cs b/Source/OpenTK/Graphics/ES20/ES20Delegates.cs index 63a05158..541e6863 100644 --- a/Source/OpenTK/Graphics/ES20/ES20Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/ES20Delegates.cs @@ -876,9 +876,12 @@ namespace OpenTK.Graphics.ES20 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.CullFaceMode face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); + internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); internal static StencilFuncSeparate glStencilFuncSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilFuncSeparate1(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilFunction func, Int32 @ref, UInt32 mask); + internal static StencilFuncSeparate1 glStencilFuncSeparate1; + [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void StencilMask(UInt32 mask); internal static StencilMask glStencilMask; [System.Security.SuppressUnmanagedCodeSecurity()] @@ -888,9 +891,12 @@ namespace OpenTK.Graphics.ES20 internal delegate void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass); internal static StencilOp glStencilOp; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.CullFaceMode face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass); + internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass); internal static StencilOpSeparate glStencilOpSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilOpSeparate1(OpenTK.Graphics.ES20.StencilFace face, OpenTK.Graphics.ES20.StencilOp sfail, OpenTK.Graphics.ES20.StencilOp dpfail, OpenTK.Graphics.ES20.StencilOp dppass); + internal static StencilOpSeparate1 glStencilOpSeparate1; + [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate bool TestFenceNV(UInt32 fence); internal static TestFenceNV glTestFenceNV; [System.Security.SuppressUnmanagedCodeSecurity()] diff --git a/Source/OpenTK/Graphics/ES20/ES20Enums.cs b/Source/OpenTK/Graphics/ES20/ES20Enums.cs index 1687332a..a7427d97 100644 --- a/Source/OpenTK/Graphics/ES20/ES20Enums.cs +++ b/Source/OpenTK/Graphics/ES20/ES20Enums.cs @@ -8618,7 +8618,7 @@ namespace OpenTK.Graphics.ES20 } /// - /// Used in GL.CullFace, GL.StencilFuncSeparate and 2 other functions + /// Used in GL.CullFace, GL.StencilMaskSeparate /// public enum CullFaceMode : int { @@ -19083,6 +19083,25 @@ namespace OpenTK.Graphics.ES20 Smooth = ((int)0x1D01) , } + /// + /// Used in GL.StencilFuncSeparate, GL.StencilOpSeparate + /// + public enum StencilFace : int + { + /// + /// Original was GL_FRONT = 0X0404 + /// + Front = ((int)0X0404) , + /// + /// Original was GL_BACK = 0X0405 + /// + Back = ((int)0X0405) , + /// + /// Original was GL_FRONT_AND_BACK = 0x0408 + /// + FrontAndBack = ((int)0x0408) , + } + /// /// Used in GL.StencilFunc, GL.StencilFuncSeparate /// diff --git a/Source/OpenTK/Graphics/ES30/ES30.cs b/Source/OpenTK/Graphics/ES30/ES30.cs index eff8441c..1173c74d 100644 --- a/Source/OpenTK/Graphics/ES30/ES30.cs +++ b/Source/OpenTK/Graphics/ES30/ES30.cs @@ -27116,13 +27116,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, Int32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, Int32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES30.CullFaceMode)face, (OpenTK.Graphics.ES30.StencilFunction)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES30.StencilFace)face, (OpenTK.Graphics.ES30.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -27155,13 +27155,13 @@ namespace OpenTK.Graphics.ES30 [System.CLSCompliant(false)] [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] public static - void StencilFuncSeparate(OpenTK.Graphics.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask) + void StencilFuncSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES30.CullFaceMode)face, (OpenTK.Graphics.ES30.StencilFunction)func, (Int32)@ref, (UInt32)mask); + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES30.StencilFace)face, (OpenTK.Graphics.ES30.StencilFunction)func, (Int32)@ref, (UInt32)mask); #if DEBUG } #endif @@ -27330,13 +27330,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilOpSeparate")] public static - void StencilOpSeparate(OpenTK.Graphics.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass) + void StencilOpSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glStencilOpSeparate((OpenTK.Graphics.ES30.CullFaceMode)face, (OpenTK.Graphics.ES30.StencilOp)sfail, (OpenTK.Graphics.ES30.StencilOp)dpfail, (OpenTK.Graphics.ES30.StencilOp)dppass); + Delegates.glStencilOpSeparate((OpenTK.Graphics.ES30.StencilFace)face, (OpenTK.Graphics.ES30.StencilOp)sfail, (OpenTK.Graphics.ES30.StencilOp)dpfail, (OpenTK.Graphics.ES30.StencilOp)dppass); #if DEBUG } #endif @@ -35084,13 +35084,13 @@ namespace OpenTK.Graphics.ES30 /// [AutoGenerated(Category = "EXT_blend_minmax", Version = "", EntryPoint = "glBlendEquationEXT")] public static - void BlendEquation(OpenTK.Graphics.ES30.All mode) + void BlendEquation(OpenTK.Graphics.ES30.BlendEquationMode mode) { #if DEBUG using (new ErrorHelper(GraphicsContext.CurrentContext)) { #endif - Delegates.glBlendEquationEXT((OpenTK.Graphics.ES30.All)mode); + Delegates.glBlendEquationEXT((OpenTK.Graphics.ES30.BlendEquationMode)mode); #if DEBUG } #endif diff --git a/Source/OpenTK/Graphics/ES30/ES30Delegates.cs b/Source/OpenTK/Graphics/ES30/ES30Delegates.cs index 9fbdb65b..9cea4ab0 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Delegates.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Delegates.cs @@ -111,7 +111,7 @@ namespace OpenTK.Graphics.ES30 internal delegate void BlendEquation(OpenTK.Graphics.ES30.BlendEquationMode mode); internal static BlendEquation glBlendEquation; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquationEXT(OpenTK.Graphics.ES30.All mode); + internal delegate void BlendEquationEXT(OpenTK.Graphics.ES30.BlendEquationMode mode); internal static BlendEquationEXT glBlendEquationEXT; [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES30.BlendEquationMode modeRGB, OpenTK.Graphics.ES30.BlendEquationMode modeAlpha); @@ -1104,9 +1104,12 @@ namespace OpenTK.Graphics.ES30 internal delegate void StencilFunc(OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask); internal static StencilFunc glStencilFunc; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask); + internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask); internal static StencilFuncSeparate glStencilFuncSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilFuncSeparate1(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask); + internal static StencilFuncSeparate1 glStencilFuncSeparate1; + [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate void StencilMask(UInt32 mask); internal static StencilMask glStencilMask; [System.Security.SuppressUnmanagedCodeSecurity()] @@ -1116,9 +1119,12 @@ namespace OpenTK.Graphics.ES30 internal delegate void StencilOp(OpenTK.Graphics.ES30.StencilOp fail, OpenTK.Graphics.ES30.StencilOp zfail, OpenTK.Graphics.ES30.StencilOp zpass); internal static StencilOp glStencilOp; [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOpSeparate(OpenTK.Graphics.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass); + internal delegate void StencilOpSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass); internal static StencilOpSeparate glStencilOpSeparate; [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilOpSeparate1(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass); + internal static StencilOpSeparate1 glStencilOpSeparate1; + [System.Security.SuppressUnmanagedCodeSecurity()] internal delegate bool TestFenceNV(UInt32 fence); internal static TestFenceNV glTestFenceNV; [System.Security.SuppressUnmanagedCodeSecurity()] diff --git a/Source/OpenTK/Graphics/ES30/ES30Enums.cs b/Source/OpenTK/Graphics/ES30/ES30Enums.cs index a21622aa..e197d5ca 100644 --- a/Source/OpenTK/Graphics/ES30/ES30Enums.cs +++ b/Source/OpenTK/Graphics/ES30/ES30Enums.cs @@ -385,7 +385,7 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 79 other functions + /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 78 other functions /// public enum All : int { @@ -9219,22 +9219,30 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.BlendEquation, GL.BlendEquationSeparate + /// Used in GL.BlendEquation, GL.BlendEquationSeparate and 1 other function /// public enum BlendEquationMode : int { /// - /// Original was GL_FuncAdd = 0X8006 + /// Original was GL_FUNC_ADD = 0x8006 /// - FuncAdd = ((int)0X8006) , + FuncAdd = ((int)0x8006) , /// - /// Original was GL_FuncSubtract = 0X800a + /// Original was GL_MIN = 0x8007 /// - FuncSubtract = ((int)0X800a) , + Min = ((int)0x8007) , /// - /// Original was GL_FuncReverseSubtract = 0X800b + /// Original was GL_MAX = 0x8008 /// - FuncReverseSubtract = ((int)0X800b) , + Max = ((int)0x8008) , + /// + /// Original was GL_FUNC_SUBTRACT = 0x800A + /// + FuncSubtract = ((int)0x800A) , + /// + /// Original was GL_FUNC_REVERSE_SUBTRACT = 0x800B + /// + FuncReverseSubtract = ((int)0x800B) , } /// @@ -9310,50 +9318,50 @@ namespace OpenTK.Graphics.ES30 /// OneMinusDstAlpha = ((int)0x0305) , /// - /// Original was GL_DstColor = 0X0306 + /// Original was GL_DST_COLOR = 0x0306 /// - DstColor = ((int)0X0306) , + DstColor = ((int)0x0306) , /// - /// Original was GL_OneMinusDstColor = 0X0307 + /// Original was GL_ONE_MINUS_DST_COLOR = 0x0307 /// - OneMinusDstColor = ((int)0X0307) , + OneMinusDstColor = ((int)0x0307) , /// - /// Original was GL_SrcAlphaSaturate = 0X0308 + /// Original was GL_SRC_ALPHA_SATURATE = 0x0308 /// - SrcAlphaSaturate = ((int)0X0308) , + SrcAlphaSaturate = ((int)0x0308) , + /// + /// Original was GL_CONSTANT_COLOR = 0x8001 + /// + ConstantColor = ((int)0x8001) , /// /// Original was GL_CONSTANT_COLOR_EXT = 0x8001 /// ConstantColorExt = ((int)0x8001) , /// - /// Original was GL_ConstantColor = 0X8001 + /// Original was GL_ONE_MINUS_CONSTANT_COLOR = 0x8002 /// - ConstantColor = ((int)0X8001) , + OneMinusConstantColor = ((int)0x8002) , /// /// Original was GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002 /// OneMinusConstantColorExt = ((int)0x8002) , /// - /// Original was GL_OneMinusConstantColor = 0X8002 + /// Original was GL_CONSTANT_ALPHA = 0x8003 /// - OneMinusConstantColor = ((int)0X8002) , + ConstantAlpha = ((int)0x8003) , /// /// Original was GL_CONSTANT_ALPHA_EXT = 0x8003 /// ConstantAlphaExt = ((int)0x8003) , /// - /// Original was GL_ConstantAlpha = 0X8003 + /// Original was GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004 /// - ConstantAlpha = ((int)0X8003) , + OneMinusConstantAlpha = ((int)0x8004) , /// /// Original was GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004 /// OneMinusConstantAlphaExt = ((int)0x8004) , /// - /// Original was GL_OneMinusConstantAlpha = 0X8004 - /// - OneMinusConstantAlpha = ((int)0X8004) , - /// /// Original was GL_One = 1 /// One = ((int)1) , @@ -9369,13 +9377,13 @@ namespace OpenTK.Graphics.ES30 /// Zero = ((int)0) , /// - /// Original was GL_SrcColor = 0X0300 + /// Original was GL_SRC_COLOR = 0x0300 /// - SrcColor = ((int)0X0300) , + SrcColor = ((int)0x0300) , /// - /// Original was GL_OneMinusSrcColor = 0X0301 + /// Original was GL_ONE_MINUS_SRC_COLOR = 0x0301 /// - OneMinusSrcColor = ((int)0X0301) , + OneMinusSrcColor = ((int)0x0301) , /// /// Original was GL_SRC_ALPHA = 0x0302 /// @@ -9405,38 +9413,38 @@ namespace OpenTK.Graphics.ES30 /// SrcAlphaSaturate = ((int)0x0308) , /// + /// Original was GL_CONSTANT_COLOR = 0x8001 + /// + ConstantColor = ((int)0x8001) , + /// /// Original was GL_CONSTANT_COLOR_EXT = 0x8001 /// ConstantColorExt = ((int)0x8001) , /// - /// Original was GL_ConstantColor = 0X8001 + /// Original was GL_ONE_MINUS_CONSTANT_COLOR = 0x8002 /// - ConstantColor = ((int)0X8001) , + OneMinusConstantColor = ((int)0x8002) , /// /// Original was GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002 /// OneMinusConstantColorExt = ((int)0x8002) , /// - /// Original was GL_OneMinusConstantColor = 0X8002 + /// Original was GL_CONSTANT_ALPHA = 0x8003 /// - OneMinusConstantColor = ((int)0X8002) , + ConstantAlpha = ((int)0x8003) , /// /// Original was GL_CONSTANT_ALPHA_EXT = 0x8003 /// ConstantAlphaExt = ((int)0x8003) , /// - /// Original was GL_ConstantAlpha = 0X8003 + /// Original was GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004 /// - ConstantAlpha = ((int)0X8003) , + OneMinusConstantAlpha = ((int)0x8004) , /// /// Original was GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004 /// OneMinusConstantAlphaExt = ((int)0x8004) , /// - /// Original was GL_OneMinusConstantAlpha = 0X8004 - /// - OneMinusConstantAlpha = ((int)0X8004) , - /// /// Original was GL_One = 1 /// One = ((int)1) , @@ -10101,7 +10109,7 @@ namespace OpenTK.Graphics.ES30 } /// - /// Used in GL.CullFace, GL.StencilFuncSeparate and 2 other functions + /// Used in GL.CullFace, GL.StencilMaskSeparate /// public enum CullFaceMode : int { @@ -10789,26 +10797,26 @@ namespace OpenTK.Graphics.ES30 /// MultisampleSgis = ((int)0x809D) , /// + /// Original was GL_SAMPLE_ALPHA_TO_COVERAGE = 0x809E + /// + SampleAlphaToCoverage = ((int)0x809E) , + /// /// Original was GL_SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E /// SampleAlphaToMaskSgis = ((int)0x809E) , /// - /// Original was GL_SampleAlphaToCoverage = 0X809e - /// - SampleAlphaToCoverage = ((int)0X809e) , - /// /// Original was GL_SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F /// SampleAlphaToOneSgis = ((int)0x809F) , /// + /// Original was GL_SAMPLE_COVERAGE = 0x80A0 + /// + SampleCoverage = ((int)0x80A0) , + /// /// Original was GL_SAMPLE_MASK_SGIS = 0x80A0 /// SampleMaskSgis = ((int)0x80A0) , /// - /// Original was GL_SampleCoverage = 0X80a0 - /// - SampleCoverage = ((int)0X80a0) , - /// /// Original was GL_TEXTURE_COLOR_TABLE_SGI = 0x80BC /// TextureColorTableSgi = ((int)0x80BC) , @@ -22294,6 +22302,25 @@ namespace OpenTK.Graphics.ES30 Rgb10A2ui = ((int)0x906F) , } + /// + /// Used in GL.StencilFuncSeparate, GL.StencilOpSeparate + /// + public enum StencilFace : int + { + /// + /// Original was GL_FRONT = 0X0404 + /// + Front = ((int)0X0404) , + /// + /// Original was GL_BACK = 0X0405 + /// + Back = ((int)0X0405) , + /// + /// Original was GL_FRONT_AND_BACK = 0x0408 + /// + FrontAndBack = ((int)0x0408) , + } + /// /// Used in GL.StencilFunc, GL.StencilFuncSeparate /// @@ -22363,13 +22390,13 @@ namespace OpenTK.Graphics.ES30 /// Decr = ((int)0X1e03) , /// - /// Original was GL_IncrWrap = 0X8507 + /// Original was GL_INCR_WRAP = 0x8507 /// - IncrWrap = ((int)0X8507) , + IncrWrap = ((int)0x8507) , /// - /// Original was GL_DecrWrap = 0X8508 + /// Original was GL_DECR_WRAP = 0x8508 /// - DecrWrap = ((int)0X8508) , + DecrWrap = ((int)0x8508) , } /// diff --git a/Source/OpenTK/Graphics/ES30/ES3Core.cs b/Source/OpenTK/Graphics/ES30/ES3Core.cs index e209c59e..11fb215d 100644 --- a/Source/OpenTK/Graphics/ES30/ES3Core.cs +++ b/Source/OpenTK/Graphics/ES30/ES3Core.cs @@ -113,7 +113,7 @@ namespace OpenTK.Graphics.ES30 internal extern static void BlendEquation(OpenTK.Graphics.ES30.BlendEquationMode mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationEXT", ExactSpelling = true)] - internal extern static void BlendEquationEXT(OpenTK.Graphics.ES30.All mode); + internal extern static void BlendEquationEXT(OpenTK.Graphics.ES30.BlendEquationMode mode); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)] internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES30.BlendEquationMode modeRGB, OpenTK.Graphics.ES30.BlendEquationMode modeAlpha); @@ -1106,7 +1106,10 @@ namespace OpenTK.Graphics.ES30 internal extern static void StencilFunc(OpenTK.Graphics.ES30.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.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask); + internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilFunction func, Int32 @ref, UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)] + internal extern static void StencilFuncSeparate1(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.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); @@ -1118,7 +1121,10 @@ namespace OpenTK.Graphics.ES30 internal extern static void StencilOp(OpenTK.Graphics.ES30.StencilOp fail, OpenTK.Graphics.ES30.StencilOp zfail, OpenTK.Graphics.ES30.StencilOp zpass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] - internal extern static void StencilOpSeparate(OpenTK.Graphics.ES30.CullFaceMode face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass); + internal extern static void StencilOpSeparate(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] + internal extern static void StencilOpSeparate1(OpenTK.Graphics.ES30.StencilFace face, OpenTK.Graphics.ES30.StencilOp sfail, OpenTK.Graphics.ES30.StencilOp dpfail, OpenTK.Graphics.ES30.StencilOp dppass); [System.Security.SuppressUnmanagedCodeSecurity()] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] internal extern static bool TestFenceNV(UInt32 fence);