// Copyright (c) 2012-2021 Wojciech Figat. All rights reserved.
using System;
using System.ComponentModel;
using FlaxEngine;
namespace FlaxEditor.Content.Settings
{
///
/// The Universal Windows Platform (UWP) platform settings asset archetype. Allows to edit asset via editor.
///
public class UWPPlatformSettings : SettingsBase
{
///
/// The preferred launch windowing mode.
///
public enum WindowMode
{
///
/// The full screen mode
///
FullScreen = 0,
///
/// The view size.
///
ViewSize = 1,
}
///
/// The display orientation modes. Can be combined as flags.
///
[Flags]
public enum DisplayOrientations
{
///
/// The none.
///
None = 0,
///
/// The landscape.
///
Landscape = 1,
///
/// The landscape flipped.
///
LandscapeFlipped = 2,
///
/// The portrait.
///
Portrait = 4,
///
/// The portrait flipped.
///
PortraitFlipped = 8,
}
///
/// The preferred launch windowing mode. Always fullscreen on Xbox.
///
[DefaultValue(WindowMode.FullScreen)]
[EditorOrder(10), EditorDisplay("Window"), Tooltip("The preferred launch windowing mode. Always fullscreen on Xbox.")]
public WindowMode PreferredLaunchWindowingMode = WindowMode.FullScreen;
///
/// The display orientation modes. Can be combined as flags.
///
[DefaultValue(DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped | DisplayOrientations.Portrait | DisplayOrientations.PortraitFlipped)]
[EditorOrder(20), EditorDisplay("Window"), Tooltip("The display orientation modes. Can be combined as flags.")]
public DisplayOrientations AutoRotationPreferences = DisplayOrientations.Landscape | DisplayOrientations.LandscapeFlipped | DisplayOrientations.Portrait | DisplayOrientations.PortraitFlipped;
///
/// The location of the package certificate (relative to the project).
///
[DefaultValue("")]
[EditorOrder(1010), EditorDisplay("Other"), Tooltip("The location of the package certificate (relative to the project).")]
public string CertificateLocation = string.Empty;
///
/// Enables support for DirectX 11. Disabling it reduces compiled shaders count.
///
[DefaultValue(true)]
[EditorOrder(2000), EditorDisplay("Graphics", "Support DirectX 11"), Tooltip("Enables support for DirectX 11. Disabling it reduces compiled shaders count.")]
public bool SupportDX11 = true;
///
/// Enables support for DirectX 10 and DirectX 10.1. Disabling it reduces compiled shaders count.
///
[DefaultValue(false)]
[EditorOrder(2010), EditorDisplay("Graphics", "Support DirectX 10"), Tooltip("Enables support for DirectX 10 and DirectX 10.1. Disabling it reduces compiled shaders count.")]
public bool SupportDX10 = false;
}
}