/// <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 SetPolygonModeSettings(PolygonModeSettings settings, PolygonModeSettings previousSettings) { if (settings.materialFace != previousSettings.materialFace || settings.polygonMode != previousSettings.polygonMode) { GL.PolygonMode(settings.materialFace, settings.polygonMode); } }
private static void SetPolygonModeSettings(PolygonModeSettings settings) { GL.PolygonMode(settings.materialFace, settings.polygonMode); }