public interface ITextureUnit
extends java.io.Closeable
ITextureUnit
represents a texture in the memory that shared between GPU and CPU and can be sampled by the shader,
where the Texture
only represents a reference to an external file.
More details can be found https://en.wikipedia.org/wiki/Texture_mapping_unitModifier and Type | Method and Description |
---|---|
int |
getDepth()
Gets the height of this texture, for none-3D texture it's always 1.
|
int |
getHeight()
Gets the height of this texture.
|
TextureFilter |
getMagnification()
Gets the filter mode for magnification.
|
TextureFilter |
getMinification()
Gets the filter mode for minification.
|
TextureFilter |
getMipmap()
Gets the filter mode for mipmap.
|
Vector2 |
getScale()
Gets the scale of the UV coordinate.
|
Vector2 |
getScroll()
Gets the scroll of the UV coordinate.
|
TextureType |
getType()
Gets the type of this texture unit.
|
WrapMode |
getUWrap()
Gets the wrap mode for texture's U coordinate.
|
WrapMode |
getVWrap()
Gets the wrap mode for texture's V coordinate.
|
int |
getWidth()
Gets the width of this texture.
|
WrapMode |
getWWrap()
Gets the wrap mode for texture's W coordinate.
|
void |
setMagnification(TextureFilter value)
Sets the filter mode for magnification.
|
void |
setMinification(TextureFilter value)
Sets the filter mode for minification.
|
void |
setMipmap(TextureFilter value)
Sets the filter mode for mipmap.
|
void |
setScale(Vector2 value)
Sets the scale of the UV coordinate.
|
void |
setScroll(Vector2 value)
Sets the scroll of the UV coordinate.
|
void |
setUWrap(WrapMode value)
Sets the wrap mode for texture's U coordinate.
|
void |
setVWrap(WrapMode value)
Sets the wrap mode for texture's V coordinate.
|
void |
setWWrap(WrapMode value)
Sets the wrap mode for texture's W coordinate.
|
TextureType getType()
int getWidth()
int getHeight()
int getDepth()
WrapMode getUWrap()
void setUWrap(WrapMode value)
value
- New valueWrapMode getVWrap()
void setVWrap(WrapMode value)
value
- New valueWrapMode getWWrap()
void setWWrap(WrapMode value)
value
- New valueTextureFilter getMinification()
void setMinification(TextureFilter value)
value
- New valueTextureFilter getMagnification()
void setMagnification(TextureFilter value)
value
- New valueTextureFilter getMipmap()
void setMipmap(TextureFilter value)
value
- New valueVector2 getScroll()
void setScroll(Vector2 value)
value
- New valueVector2 getScale()
void setScale(Vector2 value)
value
- New value