private static void SetAlphaTesting(AlphaTestSettings settings) { SetGLEnableCap(EnableCap.AlphaTest, settings.enabled); GL.AlphaFunc(settings.alphaFunction, settings.referenceAlpha); }
/// <summary> /// Updates the current OpenGL rendering state based on <paramref name="settings"/>. /// </summary> /// <param name="settings">The settings used to perform the update</param> /// <param name="previousSettings">The settings used for the previous update</param> public static void SetAlphaTesting(AlphaTestSettings settings, AlphaTestSettings previousSettings) { SetGLEnableCap(EnableCap.AlphaTest, settings.enabled); GL.AlphaFunc(settings.alphaFunction, settings.referenceAlpha); }