Class TextureProfile
The texture profile class.
Inherited Members
Namespace: Evergine.Assets.Exporters
Assembly: Evergine.Assets.dll
Syntax
public class TextureProfile : AssetProfile
Constructors
TextureProfile()
Initializes a new instance of the TextureProfile class.
Declaration
public TextureProfile()
TextureProfile(TextureSource)
Initializes a new instance of the TextureProfile class.
Declaration
public TextureProfile(TextureSource textureSource = null)
Parameters
Type | Name | Description |
---|---|---|
TextureSource | textureSource | The texture source. |
Fields
ExportedItem
The exported file.
Declaration
public ContentFile ExportedItem
Field Value
Type | Description |
---|---|
ContentFile |
PixelFormat
Gets or sets the output form.
Declaration
public PixelFormat PixelFormat
Field Value
Type | Description |
---|---|
PixelFormat |
ScaledHeight
Gets or sets the scaled height.
Declaration
[RenderPropertyAsInput(MinLimit = 1)]
public uint ScaledHeight
Field Value
Type | Description |
---|---|
uint |
ScaledPercentage
Gets or sets the scaled percentage.
Declaration
[RenderPropertyAsFInput(MinLimit = 0.1, MaxLimit = 2, AsSlider = true, DesiredChange = 0.1, DesiredLargeChange = 0.2)]
public float ScaledPercentage
Field Value
Type | Description |
---|---|
float |
ScaledWidth
Gets or sets the scaled height.
Declaration
[RenderPropertyAsInput(MinLimit = 1)]
public uint ScaledWidth
Field Value
Type | Description |
---|---|
uint |
ScalingType
Gets or sets the scaling type.
Declaration
public TextureProfile.TextureScalingType ScalingType
Field Value
Type | Description |
---|---|
TextureProfile.TextureScalingType |
Methods
GetOutputSize(TextureMetaFile, out uint, out uint)
Gets the output size of the texture profile.
Declaration
public void GetOutputSize(TextureMetaFile asset, out uint width, out uint height)
Parameters
Type | Name | Description |
---|---|---|
TextureMetaFile | asset | The asset meta file. |
uint | width | The width result. |
uint | height | The height result. |