Switch-Toolbox/File_Format_Library/GL/Helpers/DepthGLControl.cs
KillzXGaming 7cf2e9c571 Cleanup
2019-07-16 17:45:10 -04:00

24 lines
557 B
C#

using OpenTK;
using OpenTK.Graphics.OpenGL;
namespace FirstPlugin
{
public class DepthGLControl
{
public DepthFunction DepthFunction = DepthFunction.Lequal;
public bool EnableTest{ get; set; }
public bool EnableWrite { get; set; }
public void LoadRenderPass()
{
if (EnableTest)
GL.Enable(EnableCap.DepthTest);
else
GL.Disable(EnableCap.DepthTest);
GL.DepthFunc(DepthFunction);
GL.DepthMask(EnableWrite);
}
}
}