コード例 #1
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 SetPolygonModeSettings(PolygonModeSettings settings, PolygonModeSettings previousSettings)
 {
     if (settings.materialFace != previousSettings.materialFace || settings.polygonMode != previousSettings.polygonMode)
     {
         GL.PolygonMode(settings.materialFace, settings.polygonMode);
     }
 }
コード例 #2
0
 private static void SetPolygonModeSettings(PolygonModeSettings settings)
 {
     GL.PolygonMode(settings.materialFace, settings.polygonMode);
 }