mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 11:45:29 +00:00
StencilFuncSeparate and BlendingFactorDest/Src fixes.
This commit is contained in:
parent
04cc9238f6
commit
981b8ab4c5
|
@ -9532,15 +9532,15 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
[System.CLSCompliant(false)]
|
[System.CLSCompliant(false)]
|
||||||
public static
|
public static
|
||||||
void StencilFuncSeparate(OpenTK.Graphics.StencilFunction frontfunc, OpenTK.Graphics.StencilFunction backfunc, Int32 @ref, UInt32 mask)
|
void StencilFuncSeparate(OpenTK.Graphics.StencilFace face, OpenTK.Graphics.StencilFunction func, Int32 @ref, UInt32 mask)
|
||||||
{
|
{
|
||||||
Delegates.glStencilFuncSeparate((OpenTK.Graphics.StencilFunction)frontfunc, (OpenTK.Graphics.StencilFunction)backfunc, (Int32)@ref, (UInt32)mask);
|
Delegates.glStencilFuncSeparate((OpenTK.Graphics.StencilFace)face, (OpenTK.Graphics.StencilFunction)func, (Int32)@ref, (UInt32)mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static
|
public static
|
||||||
void StencilFuncSeparate(OpenTK.Graphics.StencilFunction frontfunc, OpenTK.Graphics.StencilFunction backfunc, Int32 @ref, Int32 mask)
|
void StencilFuncSeparate(OpenTK.Graphics.StencilFace face, OpenTK.Graphics.StencilFunction func, Int32 @ref, Int32 mask)
|
||||||
{
|
{
|
||||||
Delegates.glStencilFuncSeparate((OpenTK.Graphics.StencilFunction)frontfunc, (OpenTK.Graphics.StencilFunction)backfunc, (Int32)@ref, (UInt32)mask);
|
Delegates.glStencilFuncSeparate((OpenTK.Graphics.StencilFace)face, (OpenTK.Graphics.StencilFunction)func, (Int32)@ref, (UInt32)mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
[System.CLSCompliant(false)]
|
[System.CLSCompliant(false)]
|
||||||
|
|
|
@ -1471,7 +1471,7 @@ namespace OpenTK.Graphics
|
||||||
internal extern static void StencilOpSeparate(OpenTK.Graphics.All face, OpenTK.Graphics.StencilOp sfail, OpenTK.Graphics.StencilOp dpfail, OpenTK.Graphics.StencilOp dppass);
|
internal extern static void StencilOpSeparate(OpenTK.Graphics.All face, OpenTK.Graphics.StencilOp sfail, OpenTK.Graphics.StencilOp dpfail, OpenTK.Graphics.StencilOp dppass);
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)]
|
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)]
|
||||||
internal extern static void StencilFuncSeparate(OpenTK.Graphics.StencilFunction frontfunc, OpenTK.Graphics.StencilFunction backfunc, Int32 @ref, UInt32 mask);
|
internal extern static void StencilFuncSeparate(OpenTK.Graphics.StencilFace face, OpenTK.Graphics.StencilFunction func, Int32 @ref, UInt32 mask);
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)]
|
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)]
|
||||||
internal extern static void StencilMaskSeparate(OpenTK.Graphics.All face, UInt32 mask);
|
internal extern static void StencilMaskSeparate(OpenTK.Graphics.All face, UInt32 mask);
|
||||||
|
|
|
@ -1472,7 +1472,7 @@ namespace OpenTK.Graphics
|
||||||
internal delegate void StencilOpSeparate(OpenTK.Graphics.All face, OpenTK.Graphics.StencilOp sfail, OpenTK.Graphics.StencilOp dpfail, OpenTK.Graphics.StencilOp dppass);
|
internal delegate void StencilOpSeparate(OpenTK.Graphics.All face, OpenTK.Graphics.StencilOp sfail, OpenTK.Graphics.StencilOp dpfail, OpenTK.Graphics.StencilOp dppass);
|
||||||
internal static StencilOpSeparate glStencilOpSeparate;
|
internal static StencilOpSeparate glStencilOpSeparate;
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
internal delegate void StencilFuncSeparate(OpenTK.Graphics.StencilFunction frontfunc, OpenTK.Graphics.StencilFunction backfunc, Int32 @ref, UInt32 mask);
|
internal delegate void StencilFuncSeparate(OpenTK.Graphics.StencilFace face, OpenTK.Graphics.StencilFunction func, Int32 @ref, UInt32 mask);
|
||||||
internal static StencilFuncSeparate glStencilFuncSeparate;
|
internal static StencilFuncSeparate glStencilFuncSeparate;
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
internal delegate void StencilMaskSeparate(OpenTK.Graphics.All face, UInt32 mask);
|
internal delegate void StencilMaskSeparate(OpenTK.Graphics.All face, UInt32 mask);
|
||||||
|
|
|
@ -2,6 +2,13 @@ namespace OpenTK.Graphics
|
||||||
{
|
{
|
||||||
#pragma warning disable 1591
|
#pragma warning disable 1591
|
||||||
|
|
||||||
|
public enum StencilFace
|
||||||
|
{
|
||||||
|
Front = ((int)0X0404),
|
||||||
|
FrontAndBack = ((int)0X0408),
|
||||||
|
Back = ((int)0X0405),
|
||||||
|
}
|
||||||
|
|
||||||
public enum DrawElementsType
|
public enum DrawElementsType
|
||||||
{
|
{
|
||||||
UnsignedByte = ((int)0X1401),
|
UnsignedByte = ((int)0X1401),
|
||||||
|
@ -100,10 +107,12 @@ namespace OpenTK.Graphics
|
||||||
OneMinusConstantColorExt = ((int)0X8002),
|
OneMinusConstantColorExt = ((int)0X8002),
|
||||||
SrcColor = ((int)0X0300),
|
SrcColor = ((int)0X0300),
|
||||||
OneMinusSrcColor = ((int)0X0301),
|
OneMinusSrcColor = ((int)0X0301),
|
||||||
|
OneMinusDstColor = ((int)0X0307),
|
||||||
ConstantAlphaExt = ((int)0X8003),
|
ConstantAlphaExt = ((int)0X8003),
|
||||||
SrcAlpha = ((int)0X0302),
|
SrcAlpha = ((int)0X0302),
|
||||||
DstAlpha = ((int)0X0304),
|
DstColor = ((int)0X0306),
|
||||||
Zero = ((int)0),
|
Zero = ((int)0),
|
||||||
|
DstAlpha = ((int)0X0304),
|
||||||
OneMinusConstantAlphaExt = ((int)0X8004),
|
OneMinusConstantAlphaExt = ((int)0X8004),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,9 +121,11 @@ namespace OpenTK.Graphics
|
||||||
ConstantColorExt = ((int)0X8001),
|
ConstantColorExt = ((int)0X8001),
|
||||||
OneMinusSrcAlpha = ((int)0X0303),
|
OneMinusSrcAlpha = ((int)0X0303),
|
||||||
One = ((int)1),
|
One = ((int)1),
|
||||||
SrcAlphaSaturate = ((int)0X0308),
|
|
||||||
OneMinusConstantColorExt = ((int)0X8002),
|
|
||||||
OneMinusDstAlpha = ((int)0X0305),
|
OneMinusDstAlpha = ((int)0X0305),
|
||||||
|
OneMinusConstantColorExt = ((int)0X8002),
|
||||||
|
SrcColor = ((int)0X0300),
|
||||||
|
SrcAlphaSaturate = ((int)0X0308),
|
||||||
|
OneMinusSrcColor = ((int)0X0301),
|
||||||
OneMinusDstColor = ((int)0X0307),
|
OneMinusDstColor = ((int)0X0307),
|
||||||
ConstantAlphaExt = ((int)0X8003),
|
ConstantAlphaExt = ((int)0X8003),
|
||||||
SrcAlpha = ((int)0X0302),
|
SrcAlpha = ((int)0X0302),
|
||||||
|
|
Loading…
Reference in a new issue