TextureBase

Overview

TextureBase is a class in Aspose.3D FOSS for .NET. Inherits from: A3DObject, INamedObject.

Base class for all concrete textures.

This class provides 9 methods for working with TextureBase objects in .NET programs. Available methods include: A3DObject, FindProperty, GetProperty, RemoveProperty, SetProperty, SetRotation, SetScale, SetTranslation, TextureBase. All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package. Properties: Alpha, AlphaSource, MagFilter, MinFilter, MipFilter, Name, and 7 more.

Properties

NameTypeAccessDescription
AlphadoubleRead/WriteGets or sets the default alpha value of the texture.
AlphaSourceAlphaSourceRead/WriteGets or sets whether the texture defines the alpha channel.
WrapModeUWrapModeRead/WriteGets or sets the texture wrap modes in U.
WrapModeVWrapModeRead/WriteGets or sets the texture wrap modes in V.
WrapModeWWrapModeRead/WriteGets or sets the texture wrap modes in W.
MinFilterTextureFilterRead/WriteGets or sets the filter for minification.
MagFilterTextureFilterRead/WriteGets or sets the filter for magnification.
MipFilterTextureFilterRead/WriteGets or sets the filter for mip-level sampling.
UVRotationVector3Read/WriteGets or sets the rotation of the texture.
UVScaleVector2Read/WriteGets or sets the UV scale.
UVTranslationVector2Read/WriteGets or sets the UV translation.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the collection of all properties.

Methods

SignatureDescription
TextureBase(name: string)Initializes a new instance of the TextureBase class.
SetTranslation(u: double, v: double)Sets the UV translation.
SetScale(u: double, v: double)Sets the UV scale.
SetRotation(u: double, v: double)Sets the UV rotation.
A3DObject()Initializes a new instance of the A3DObject class with no name.
RemoveProperty(property: Property)Removes a dynamic property.
GetProperty(property: string)Get the value of specified property
SetProperty(property: string, value: object?)Sets the value of specified property
FindProperty(propertyName: string)Finds the property.

See Also

 English