/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
namespace Live2D.Cubism.Rendering
{
///
/// Extensions for .
///
public static class CubismSortingModeExtensionMethods
{
///
/// Checks whether a mode sorts by depth.
///
/// Mode to query.
/// if mode sorts by depth; otherwise.
public static bool SortByDepth(this CubismSortingMode self)
{
return self == CubismSortingMode.BackToFrontZ || self == CubismSortingMode.FrontToBackZ;
}
///
/// Checks whether a mode sorts by order.
///
/// Mode to query.
/// if mode sorts by order; otherwise.
public static bool SortByOrder(this CubismSortingMode self)
{
return !self.SortByDepth();
}
}
}