3 using System.ComponentModel;
4 using SiliconStudio.Assets;
5 using SiliconStudio.Assets.Compiler;
6 using SiliconStudio.Core;
7 using SiliconStudio.Core.Mathematics;
14 [DataContract(
"Texture")]
15 [AssetFileExtension(FileExtension)]
16 [AssetCompiler(typeof(TextureAssetCompiler))]
17 [ThumbnailCompiler(PreviewerCompilerNames.TextureThumbnailCompilerQualifiedName)]
24 public const string FileExtension =
".pdxtex";
42 [DefaultValue(100.0f)]
44 public float Width {
get; set; }
54 [DefaultValue(100.0f)]
56 public float Height {
get; set; }
72 public bool IsSizeInPercentage {
get; set; }
83 public bool ColorKeyEnabled {
get; set; }
93 public Color ColorKeyColor {
get; set; }
126 public bool GenerateMipmaps {
get; set; }
143 Format = TextureFormat.Compressed;
144 Alpha = AlphaFormat.None;
145 ColorKeyColor =
new Color(255, 0, 255);
146 ColorKeyEnabled =
false;
147 IsSizeInPercentage =
true;
148 GenerateMipmaps =
true;
override void SetDefaults()
Sets the defaults values for this instance
TextureAsset()
Initializes a new instance of the TextureAsset class.
SiliconStudio.Core.Mathematics.Color Color
Represents a 32-bit color (4 bytes) in the form of RGBA (in byte order: R, G, B, A).
Describes a texture asset.
Same as Deferred mode, except sprites are sorted by texture prior to drawing. This can improve perfor...
This attribute allows to define boundaries for a numeric property, and advice small and large increme...
Contains user-friendly names and descriptions of an asset type.
HRESULT PremultiplyAlpha(_In_ const Image &srcImage, _In_ DWORD flags, _Out_ ScratchImage &image)