1
0
mirror of synced 2024-12-11 07:16:05 +01:00
Switch-Toolbox/File_Format_Library/GL/Helpers/AlphaGLControl.cs
KillzXGaming 7cf2e9c571 Cleanup
2019-07-16 17:45:10 -04:00

25 lines
525 B
C#

using System;
using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace FirstPlugin
{
public class AlphaGLControl
{
public bool EnableAlphaTest = false;
public AlphaFunction AlphaFunction;
public float AlphaTestRef = 0.5f;
public void LoadRenderPass()
{
if (EnableAlphaTest)
GL.Enable(EnableCap.AlphaTest);
else
GL.Disable(EnableCap.AlphaTest);
GL.AlphaFunc(AlphaFunction, AlphaTestRef);
}
}
}