ITextureUnit
All Implemented Interfaces: java.io.Closeable
public interface ITextureUnit extends 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_unit
Metode
| Metode | Deskripsi |
|---|---|
| getDepth() | Mendapatkan tinggi tekstur ini, untuk tekstur non-3D selalu 1. |
| getHeight() | Mendapatkan tinggi tekstur ini. |
| getMagnification() | Mendapatkan mode filter untuk pembesaran. |
| getMinification() | Mendapatkan mode filter untuk pengecilan. |
| getMipmap() | Mendapatkan mode filter untuk mipmap. |
| getScale() | Mendapatkan skala koordinat UV. |
| getScroll() | Mendapatkan gulir koordinat UV. |
| getType() | Mendapatkan tipe unit tekstur ini. |
| getUWrap() | Mendapatkan mode pembungkus untuk koordinat U tekstur. |
| getVWrap() | Mendapatkan mode pembungkus untuk koordinat V tekstur. |
| getWWrap() | Mendapatkan mode pembungkus untuk koordinat W tekstur. |
| getWidth() | Mendapatkan lebar tekstur ini. |
| setMagnification(TextureFilter value) | Mengatur mode filter untuk pembesaran. |
| setMinification(TextureFilter value) | Mengatur mode filter untuk pengecilan. |
| setMipmap(TextureFilter value) | Mengatur mode filter untuk mipmap. |
| setScale(Vector2 value) | Mengatur skala koordinat UV. |
| setScroll(Vector2 value) | Mengatur gulir koordinat UV. |
| setUWrap(WrapMode value) | Mengatur mode pembungkus untuk koordinat U tekstur. |
| setVWrap(WrapMode value) | Mengatur mode pembungkus untuk koordinat V tekstur. |
| setWWrap(WrapMode value) | Mengatur mode pembungkus untuk koordinat W tekstur. |
getDepth()
public abstract int getDepth()
Mendapatkan tinggi tekstur ini, untuk tekstur non-3D selalu 1.
Returns: int - tinggi tekstur ini, untuk tekstur non-3D selalu 1.
getHeight()
public abstract int getHeight()
Mendapatkan tinggi tekstur ini.
Returns: int - tinggi tekstur ini.
getMagnification()
public abstract TextureFilter getMagnification()
Mendapatkan mode filter untuk pembesaran.
Returns: TextureFilter - the filter mode for magnification.
getMinification()
public abstract TextureFilter getMinification()
Mendapatkan mode filter untuk pengecilan.
Returns: TextureFilter - the filter mode for minification.
getMipmap()
public abstract TextureFilter getMipmap()
Mendapatkan mode filter untuk mipmap.
Returns: TextureFilter - the filter mode for mipmap.
getScale()
public abstract Vector2 getScale()
Mendapatkan skala koordinat UV.
Returns: Vector2 - the scale of the UV coordinate.
getScroll()
public abstract Vector2 getScroll()
Mendapatkan gulir koordinat UV.
Returns: Vector2 - the scroll of the UV coordinate.
getType()
public abstract TextureType getType()
Mendapatkan tipe unit tekstur ini.
Returns: TextureType - the type of this texture unit.
getUWrap()
public abstract WrapMode getUWrap()
Mendapatkan mode pembungkus untuk koordinat U tekstur.
Returns: WrapMode - the wrap mode for texture’s U coordinate.
getVWrap()
public abstract WrapMode getVWrap()
Mendapatkan mode pembungkus untuk koordinat V tekstur.
Returns: WrapMode - the wrap mode for texture’s V coordinate.
getWWrap()
public abstract WrapMode getWWrap()
Mendapatkan mode pembungkus untuk koordinat W tekstur.
Returns: WrapMode - the wrap mode for texture’s W coordinate.
getWidth()
public abstract int getWidth()
Mendapatkan lebar tekstur ini.
Returns: int - lebar tekstur ini.
setMagnification(TextureFilter value)
public abstract void setMagnification(TextureFilter value)
Mengatur mode filter untuk pembesaran.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | TextureFilter | Nilai baru |
setMinification(TextureFilter value)
public abstract void setMinification(TextureFilter value)
Mengatur mode filter untuk pengecilan.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | TextureFilter | Nilai baru |
setMipmap(TextureFilter value)
public abstract void setMipmap(TextureFilter value)
Mengatur mode filter untuk mipmap.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | TextureFilter | Nilai baru |
setScale(Vector2 value)
public abstract void setScale(Vector2 value)
Mengatur skala koordinat UV.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | Vector2 | Nilai baru |
setScroll(Vector2 value)
public abstract void setScroll(Vector2 value)
Mengatur gulir koordinat UV.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | Vector2 | Nilai baru |
setUWrap(WrapMode value)
public abstract void setUWrap(WrapMode value)
Mengatur mode pembungkus untuk koordinat U tekstur.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | WrapMode | Nilai baru |
setVWrap(WrapMode value)
public abstract void setVWrap(WrapMode value)
Mengatur mode pembungkus untuk koordinat V tekstur.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | WrapMode | Nilai baru |
setWWrap(WrapMode value)
public abstract void setWWrap(WrapMode value)
Mengatur mode pembungkus untuk koordinat W tekstur.
Parameters:
| Parameter | Tipe | Deskripsi |
|---|---|---|
| value | WrapMode | Nilai baru |