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(Inherited from TextureBase .) |
AlphaSource { get; set; } | Gets or sets whether the texture defines the alpha channel. Default value is None(Inherited from TextureBase .) |
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.(Inherited from TextureBase .) |
MinFilter { get; set; } | Gets or sets the filter for minification.(Inherited from TextureBase .) |
MipFilter { get; set; } | Gets or sets the filter for mip-level sampling.(Inherited from TextureBase .) |
virtual Name { get; set; } | Gets or sets the name.(Inherited from A3DObject .) |
Properties { get; } | Gets the collection of all properties.(Inherited from A3DObject .) |
UVRotation { get; set; } | Gets or sets the rotation of the texture(Inherited from TextureBase .) |
UVScale { get; set; } | Gets or sets the UV scale.(Inherited from TextureBase .) |
UVTranslation { get; set; } | Gets or sets the UV translation.(Inherited from TextureBase .) |
WrapModeU { get; set; } | Gets or sets the texture wrap modes in U.(Inherited from TextureBase .) |
WrapModeV { get; set; } | Gets or sets the texture wrap modes in V.(Inherited from TextureBase .) |
WrapModeW { get; set; } | Gets or sets the texture wrap modes in W.(Inherited from TextureBase .) |
Methods
See Also