Ejemplo n.º 1
0
 private static void SetAlphaTesting(AlphaTestSettings settings)
 {
     SetGLEnableCap(EnableCap.AlphaTest, settings.enabled);
     GL.AlphaFunc(settings.alphaFunction, settings.referenceAlpha);
 }
Ejemplo n.º 2
0
 /// <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);
 }