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 Texture
Declaration
public TextureProfile()
TextureProfile(TextureSource)
Initializes a new instance of the Texture
Declaration
public TextureProfile(TextureSource textureSource = null)
Parameters
Type | Name | Description |
---|---|---|
Texture |
textureSource | texture source. |
Fields
ExportedItem
The exported file.
Declaration
public ContentFile ExportedItem
Field Value
Type | Description |
---|---|
Content |
PixelFormat
Gets or sets the output form.
Declaration
public PixelFormat PixelFormat
Field Value
Type | Description |
---|---|
Pixel |
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 |
---|---|
Texture |
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 |
---|---|---|
Texture |
asset | The asset meta file. |
uint | width | The with result. |
uint | height | The height result. |