Add ASTC texture compression on Android
This commit is contained in:
@@ -48,6 +48,24 @@ API_CLASS(sealed, Namespace="FlaxEditor.Content.Settings") class FLAXENGINE_API
|
||||
AutoRotation,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The output textures quality (compression).
|
||||
/// </summary>
|
||||
API_ENUM() enum class TextureQuality
|
||||
{
|
||||
// Raw image data without any compression algorithm. Mostly for testing or compatibility.
|
||||
Uncompressed,
|
||||
// ASTC 4x4 block compression.
|
||||
API_ENUM(Attributes="EditorDisplay(null, \"ASTC High\")")
|
||||
ASTC_High,
|
||||
// ASTC 6x6 block compression.
|
||||
API_ENUM(Attributes="EditorDisplay(null, \"ASTC Medium\")")
|
||||
ASTC_Medium,
|
||||
// ASTC 8x8 block compression.
|
||||
API_ENUM(Attributes="EditorDisplay(null, \"ASTC Low\")")
|
||||
ASTC_Low,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The application package name (eg. com.company.product). Custom tokens: ${PROJECT_NAME}, ${COMPANY_NAME}.
|
||||
/// </summary>
|
||||
@@ -66,6 +84,12 @@ API_CLASS(sealed, Namespace="FlaxEditor.Content.Settings") class FLAXENGINE_API
|
||||
API_FIELD(Attributes = "EditorOrder(110), EditorDisplay(\"General\")")
|
||||
ScreenOrientation DefaultOrientation = ScreenOrientation::AutoRotation;
|
||||
|
||||
/// <summary>
|
||||
/// The output textures quality (compression).
|
||||
/// </summary>
|
||||
API_FIELD(Attributes="EditorOrder(500), EditorDisplay(\"General\")")
|
||||
TextureQuality TexturesQuality = TextureQuality::ASTC_Medium;
|
||||
|
||||
/// <summary>
|
||||
/// Custom icon texture to use for the application (overrides the default one).
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user