mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
Update to latest OpenTK.
This commit is contained in:
parent
32884159a0
commit
bdd41a8f24
2 changed files with 5 additions and 10 deletions
|
@ -55,18 +55,13 @@ namespace ClassicalSharp.GraphicsAPI {
|
|||
GL.AlphaFunc( alphaFuncs[(int)func], value );
|
||||
}
|
||||
|
||||
BlendingFactorSrc[] srcBlendFuncs = {
|
||||
BlendingFactorSrc.Zero, BlendingFactorSrc.One,
|
||||
BlendingFactorSrc.SrcAlpha, BlendingFactorSrc.OneMinusSrcAlpha,
|
||||
BlendingFactorSrc.DstAlpha, BlendingFactorSrc.OneMinusDstAlpha,
|
||||
};
|
||||
BlendingFactorDest[] destBlendFuncs = {
|
||||
BlendingFactorDest.Zero, BlendingFactorDest.One,
|
||||
BlendingFactorDest.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha,
|
||||
BlendingFactorDest.DstAlpha, BlendingFactorDest.OneMinusDstAlpha,
|
||||
BlendingFactor[] blendFuncs = {
|
||||
BlendingFactor.Zero, BlendingFactor.One,
|
||||
BlendingFactor.SrcAlpha, BlendingFactor.OneMinusSrcAlpha,
|
||||
BlendingFactor.DstAlpha, BlendingFactor.OneMinusDstAlpha,
|
||||
};
|
||||
public override void AlphaBlendFunc( BlendFunc srcFunc, BlendFunc destFunc ) {
|
||||
GL.BlendFunc( srcBlendFuncs[(int)srcFunc], destBlendFuncs[(int)destFunc] );
|
||||
GL.BlendFunc( blendFuncs[(int)srcFunc], blendFuncs[(int)destFunc] );
|
||||
}
|
||||
|
||||
public override bool Fog {
|
||||
|
|
BIN
OpenTK.dll
BIN
OpenTK.dll
Binary file not shown.
Loading…
Reference in a new issue