TextureBase

Overview

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

Base class for all concrete textures. Texture defines the look and feel of a geometry surface.

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 alpha.
AlphaSourceAlphaSourceRead/WriteGets or sets the alpha source.
WrapModeUWrapModeRead/WriteGets or sets the wrap mode u.
WrapModeVWrapModeRead/WriteGets or sets the wrap mode v.
WrapModeWWrapModeRead/WriteGets or sets the wrap mode w.
MinFilterTextureFilterRead/WriteGets or sets the min filter.
MagFilterTextureFilterRead/WriteGets or sets the mag filter.
MipFilterTextureFilterRead/WriteGets or sets the mip filter.
UVRotationVector3Read/WriteGets or sets the uv rotation.
UVScaleVector2Read/WriteGets or sets the uv scale.
UVTranslationVector2Read/WriteGets or sets the uv translation.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

Methods

SignatureDescription
TextureBase(name: string)
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()
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. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

See Also