Class Texture
Texture class
This class defines the texture from an external file.
public class Texture : TextureBase
Constructors
Name | Description |
---|
Texture() | Initializes a new instance of the Texture class. |
Texture(string) | Initializes a new instance of the Texture class. |
Properties
Name | Description |
---|
Alpha { get; set; } | Gets or sets the default alpha value of the texture This is valid when the AlphaSource is PixelAlpha Default value is 1.0, valid value range is between 0 and 1 |
AlphaSource { get; set; } | Gets or sets whether the texture defines the alpha channel. Default value is None |
Content { get; set; } | Gets or sets the binary content of the texture. The embedded texture content is optional, user should load texture from external file if this is missing. |
EnableMipMap { get; set; } | Gets or sets if the mipmap is enabled for this texture |
FileName { get; set; } | Gets or sets the associated texture file. |
MagFilter { get; set; } | Gets or sets the filter for magnification. |
MinFilter { get; set; } | Gets or sets the filter for minification. |
MipFilter { get; set; } | Gets or sets the filter for mip-level sampling. |
virtual Name { get; set; } | Gets or sets the name. |
Properties { get; } | Gets the collection of all properties. |
UVRotation { get; set; } | Gets or sets the rotation of the texture |
UVScale { get; set; } | Gets or sets the UV scale. |
UVTranslation { get; set; } | Gets or sets the UV translation. |
WrapModeU { get; set; } | Gets or sets the texture wrap modes in U. |
WrapModeV { get; set; } | Gets or sets the texture wrap modes in V. |
WrapModeW { get; set; } | Gets or sets the texture wrap modes in W. |
Methods
Name | Description |
---|
FindProperty(string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
GetProperty(string) | Get the value of specified property |
RemoveProperty(Property) | Removes a dynamic property. |
RemoveProperty(string) | Remove the specified property identified by name |
SetProperty(string, object) | Sets the value of specified property |
SetRotation(double, double) | Sets the UV rotation. |
SetScale(double, double) | Sets the UV scale. |
SetTranslation(double, double) | Sets the UV translation. |
See Also