/// <summary> /// specify the alpha test function. /// </summary> /// <param name="alphaTestFunc"></param> /// <param name="alphaTestReferenceValue"></param> /// <param name="enableCapacity"></param> public AlphaFuncState(AlphaTestFunction alphaTestFunc, float alphaTestReferenceValue, bool enableCapacity = true) : base(GL.GL_ALPHA_TEST, enableCapacity) { this.AlphaTestFunc = alphaTestFunc; this.AlphaTestReferenceValue = alphaTestReferenceValue; }
/// <summary> /// specify the alpha test function. /// </summary> /// <param name="alphaTestFunc"></param> /// <param name="alphaTestReferenceValue"></param> public AlphaFuncState(AlphaTestFunction alphaTestFunc, float alphaTestReferenceValue) : base(OpenGL.GL_ALPHA_TEST, true) { this.AlphaTestFunc = alphaTestFunc; this.AlphaTestReferenceValue = alphaTestReferenceValue; }