name, properties
Constructor and Description |
---|
TextureBase(java.lang.String name)
Initializes a new instance of the
TextureBase class. |
Modifier and Type | Method and Description |
---|---|
double |
getAlpha()
Gets the default alpha value of the texture
This is valid when the
getAlphaSource() is AlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1 |
AlphaSource |
getAlphaSource()
Gets whether the texture defines the alpha channel.
|
TextureFilter |
getMagFilter()
Gets the filter for magnification.
|
TextureFilter |
getMinFilter()
Gets the filter for minification.
|
TextureFilter |
getMipFilter()
Gets the filter for mip-level sampling.
|
Vector3 |
getUVRotation()
Gets the rotation of the texture
|
Vector2 |
getUVScale()
Gets the UV scale.
|
Vector2 |
getUVTranslation()
Gets the UV translation.
|
WrapMode |
getWrapModeU()
Gets the texture wrap modes in U.
|
WrapMode |
getWrapModeV()
Gets the texture wrap modes in V.
|
WrapMode |
getWrapModeW()
Gets the texture wrap modes in W.
|
void |
setAlpha(double value)
Sets the default alpha value of the texture
This is valid when the
getAlphaSource() is AlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1 |
void |
setAlphaSource(AlphaSource value)
Sets whether the texture defines the alpha channel.
|
void |
setMagFilter(TextureFilter value)
Sets the filter for magnification.
|
void |
setMinFilter(TextureFilter value)
Sets the filter for minification.
|
void |
setMipFilter(TextureFilter value)
Sets the filter for mip-level sampling.
|
void |
setRotation(double u,
double v)
Sets the UV rotation.
|
void |
setScale(double u,
double v)
Sets the UV scale.
|
void |
setTranslation(double u,
double v)
Sets the UV translation.
|
void |
setUVRotation(Vector3 value)
Sets the rotation of the texture
|
void |
setUVScale(Vector2 value)
Sets the UV scale.
|
void |
setUVTranslation(Vector2 value)
Sets the UV translation.
|
void |
setWrapModeU(WrapMode value)
Sets the texture wrap modes in U.
|
void |
setWrapModeV(WrapMode value)
Sets the texture wrap modes in V.
|
void |
setWrapModeW(WrapMode value)
Sets the texture wrap modes in W.
|
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
public TextureBase(java.lang.String name)
TextureBase
class.name
- Name.public double getAlpha()
getAlphaSource()
is AlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1public void setAlpha(double value)
getAlphaSource()
is AlphaSource.PIXEL_ALPHA
Default value is 1.0, valid value range is between 0 and 1value
- New valuepublic AlphaSource getAlphaSource()
AlphaSource.NONE
public void setAlphaSource(AlphaSource value)
AlphaSource.NONE
value
- New valuepublic WrapMode getWrapModeU()
public void setWrapModeU(WrapMode value)
value
- New valuepublic WrapMode getWrapModeV()
public void setWrapModeV(WrapMode value)
value
- New valuepublic WrapMode getWrapModeW()
public void setWrapModeW(WrapMode value)
value
- New valuepublic TextureFilter getMinFilter()
public void setMinFilter(TextureFilter value)
value
- New valuepublic TextureFilter getMagFilter()
public void setMagFilter(TextureFilter value)
value
- New valuepublic TextureFilter getMipFilter()
public void setMipFilter(TextureFilter value)
value
- New valuepublic Vector3 getUVRotation()
public void setUVRotation(Vector3 value)
value
- New valuepublic Vector2 getUVScale()
public void setUVScale(Vector2 value)
value
- New valuepublic Vector2 getUVTranslation()
public void setUVTranslation(Vector2 value)
value
- New valuepublic void setTranslation(double u, double v)
u
- U.v
- V.public void setScale(double u, double v)
u
- U.v
- V.public void setRotation(double u, double v)
u
- U.v
- V.