TextureBase

TextureBase class

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

Methods

constructor

NameDescription
constructor(name)Initializes a new instance of the TextureBase class.

Parameters:

NameTypeDescription
nameStringName.

Result:


getAlpha

NameDescription
getAlpha()Gets or sets the default alpha value of the texture This is valid when the AlphaSource is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1

Result:


setAlpha

NameDescription
setAlpha(value)Gets or sets the default alpha value of the texture This is valid when the AlphaSource is AlphaSource.PIXEL_ALPHA Default value is 1.0, valid value range is between 0 and 1

Result:


getAlphaSource

NameDescription
getAlphaSource()Gets or sets whether the texture defines the alpha channel. Default value is AlphaSource.NONEThe value of the property is AlphaSource integer constant.

Result:


setAlphaSource

NameDescription
setAlphaSource(value)Gets or sets whether the texture defines the alpha channel. Default value is AlphaSource.NONEThe value of the property is AlphaSource integer constant.

Result:


getWrapModeU

NameDescription
getWrapModeU()Gets or sets the texture wrap modes in U. The value of the property is WrapMode integer constant.

Result:


setWrapModeU

NameDescription
setWrapModeU(value)Gets or sets the texture wrap modes in U. The value of the property is WrapMode integer constant.

Result:


getWrapModeV

NameDescription
getWrapModeV()Gets or sets the texture wrap modes in V. The value of the property is WrapMode integer constant.

Result:


setWrapModeV

NameDescription
setWrapModeV(value)Gets or sets the texture wrap modes in V. The value of the property is WrapMode integer constant.

Result:


getWrapModeW

NameDescription
getWrapModeW()Gets or sets the texture wrap modes in W. The value of the property is WrapMode integer constant.

Result:


setWrapModeW

NameDescription
setWrapModeW(value)Gets or sets the texture wrap modes in W. The value of the property is WrapMode integer constant.

Result:


getMinFilter

NameDescription
getMinFilter()Gets or sets the filter for minification. The value of the property is TextureFilter integer constant.

Result:


setMinFilter

NameDescription
setMinFilter(value)Gets or sets the filter for minification. The value of the property is TextureFilter integer constant.

Result:


getMagFilter

NameDescription
getMagFilter()Gets or sets the filter for magnification. The value of the property is TextureFilter integer constant.

Result:


setMagFilter

NameDescription
setMagFilter(value)Gets or sets the filter for magnification. The value of the property is TextureFilter integer constant.

Result:


getMipFilter

NameDescription
getMipFilter()Gets or sets the filter for mip-level sampling. The value of the property is TextureFilter integer constant.

Result:


setMipFilter

NameDescription
setMipFilter(value)Gets or sets the filter for mip-level sampling. The value of the property is TextureFilter integer constant.

Result:


getUVRotation

NameDescription
getUVRotation()Gets or sets the rotation of the texture

Result:


setUVRotation

NameDescription
setUVRotation(value)Gets or sets the rotation of the texture

Result:


getUVScale

NameDescription
getUVScale()Gets or sets the UV scale. The UV scale.

Result:


setUVScale

NameDescription
setUVScale(value)Gets or sets the UV scale. The UV scale.

Result:


getUVTranslation

NameDescription
getUVTranslation()Gets or sets the UV translation. The UV translation.

Result:


setUVTranslation

NameDescription
setUVTranslation(value)Gets or sets the UV translation. The UV translation.

Result:


getName

NameDescription
getName()Gets or sets the name. The name.

Result:


setName

NameDescription
setName(value)Gets or sets the name. The name.

Result:


getProperties

NameDescription
getProperties()Gets the collection of all properties.

Result:


setTranslation

NameDescription
setTranslation(u, v)Sets the UV translation.

Parameters:

NameTypeDescription
uNumberU.
vNumberV.

Result:


setScale

NameDescription
setScale(u, v)Sets the UV scale.

Parameters:

NameTypeDescription
uNumberU.
vNumberV.

Result:


setRotation

NameDescription
setRotation(u, v)Sets the UV rotation.

Parameters:

NameTypeDescription
uNumberU.
vNumberV.

Result:


removeProperty

NameDescription
removeProperty(property)Removes a dynamic property.

Parameters:

NameTypeDescription
propertyPropertyWhich property to remove

Result: boolean


removeProperty

NameDescription
removeProperty(property)Remove the specified property identified by name

Parameters:

NameTypeDescription
propertStringnull

Result: boolean


getProperty

NameDescription
getProperty(property)Get the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name

Result: Object


setProperty

NameDescription
setProperty(property, value)Sets the value of specified property

Parameters:

NameTypeDescription
propertyStringProperty name
valueObjectThe value of the property

Result: Object


findProperty

NameDescription
findProperty(propertyName)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)

Parameters:

NameTypeDescription
propertyNameStringProperty name.

Result: Property