TextureBase
Contents
[
Hide
]TextureBase class
Base class for all concrete textures. Texture defines the look and feel of a geometry surface.
Methods
constructor
Name | Description |
---|---|
constructor(name) | Initializes a new instance of the TextureBase class. |
Parameters:
Name | Type | Description |
---|---|---|
name | String | Name. |
Result:
getAlpha
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
getWrapModeU() | Gets or sets the texture wrap modes in U. The value of the property is WrapMode integer constant. |
Result:
setWrapModeU
Name | Description |
---|---|
setWrapModeU(value) | Gets or sets the texture wrap modes in U. The value of the property is WrapMode integer constant. |
Result:
getWrapModeV
Name | Description |
---|---|
getWrapModeV() | Gets or sets the texture wrap modes in V. The value of the property is WrapMode integer constant. |
Result:
setWrapModeV
Name | Description |
---|---|
setWrapModeV(value) | Gets or sets the texture wrap modes in V. The value of the property is WrapMode integer constant. |
Result:
getWrapModeW
Name | Description |
---|---|
getWrapModeW() | Gets or sets the texture wrap modes in W. The value of the property is WrapMode integer constant. |
Result:
setWrapModeW
Name | Description |
---|---|
setWrapModeW(value) | Gets or sets the texture wrap modes in W. The value of the property is WrapMode integer constant. |
Result:
getMinFilter
Name | Description |
---|---|
getMinFilter() | Gets or sets the filter for minification. The value of the property is TextureFilter integer constant. |
Result:
setMinFilter
Name | Description |
---|---|
setMinFilter(value) | Gets or sets the filter for minification. The value of the property is TextureFilter integer constant. |
Result:
getMagFilter
Name | Description |
---|---|
getMagFilter() | Gets or sets the filter for magnification. The value of the property is TextureFilter integer constant. |
Result:
setMagFilter
Name | Description |
---|---|
setMagFilter(value) | Gets or sets the filter for magnification. The value of the property is TextureFilter integer constant. |
Result:
getMipFilter
Name | Description |
---|---|
getMipFilter() | Gets or sets the filter for mip-level sampling. The value of the property is TextureFilter integer constant. |
Result:
setMipFilter
Name | Description |
---|---|
setMipFilter(value) | Gets or sets the filter for mip-level sampling. The value of the property is TextureFilter integer constant. |
Result:
getUVRotation
Name | Description |
---|---|
getUVRotation() | Gets or sets the rotation of the texture |
Result:
setUVRotation
Name | Description |
---|---|
setUVRotation(value) | Gets or sets the rotation of the texture |
Result:
getUVScale
Name | Description |
---|---|
getUVScale() | Gets or sets the UV scale. The UV scale. |
Result:
setUVScale
Name | Description |
---|---|
setUVScale(value) | Gets or sets the UV scale. The UV scale. |
Result:
getUVTranslation
Name | Description |
---|---|
getUVTranslation() | Gets or sets the UV translation. The UV translation. |
Result:
setUVTranslation
Name | Description |
---|---|
setUVTranslation(value) | Gets or sets the UV translation. The UV translation. |
Result:
getName
Name | Description |
---|---|
getName() | Gets or sets the name. The name. |
Result:
setName
Name | Description |
---|---|
setName(value) | Gets or sets the name. The name. |
Result:
getProperties
Name | Description |
---|---|
getProperties() | Gets the collection of all properties. |
Result:
setTranslation
Name | Description |
---|---|
setTranslation(u, v) | Sets the UV translation. |
Parameters:
Name | Type | Description |
---|---|---|
u | Number | U. |
v | Number | V. |
Result:
setScale
Name | Description |
---|---|
setScale(u, v) | Sets the UV scale. |
Parameters:
Name | Type | Description |
---|---|---|
u | Number | U. |
v | Number | V. |
Result:
setRotation
Name | Description |
---|---|
setRotation(u, v) | Sets the UV rotation. |
Parameters:
Name | Type | Description |
---|---|---|
u | Number | U. |
v | Number | V. |
Result:
removeProperty
Name | Description |
---|---|
removeProperty(property) | Removes a dynamic property. |
Parameters:
Name | Type | Description |
---|---|---|
property | Property | Which property to remove |
Result: boolean
removeProperty
Name | Description |
---|---|
removeProperty(property) | Remove the specified property identified by name |
Parameters:
Name | Type | Description |
---|---|---|
propert | String | null |
Result: boolean
getProperty
Name | Description |
---|---|
getProperty(property) | Get the value of specified property |
Parameters:
Name | Type | Description |
---|---|---|
property | String | Property name |
Result: Object
setProperty
Name | Description |
---|---|
setProperty(property, value) | Sets the value of specified property |
Parameters:
Name | Type | Description |
---|---|---|
property | String | Property name |
value | Object | The value of the property |
Result: Object
findProperty
Name | Description |
---|---|
findProperty(propertyName) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Parameters:
Name | Type | Description |
---|---|---|
propertyName | String | Property name. |
Result: Property