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
Methods
Method | Description |
---|---|
getDepth() | Gets the height of this texture, for none-3D texture it’s always 1. |
getHeight() | Gets the height of this texture. |
getMagnification() | Gets the filter mode for magnification. |
getMinification() | Gets the filter mode for minification. |
getMipmap() | Gets the filter mode for mipmap. |
getScale() | Gets the scale of the UV coordinate. |
getScroll() | Gets the scroll of the UV coordinate. |
getType() | Gets the type of this texture unit. |
getUWrap() | Gets the wrap mode for texture’s U coordinate. |
getVWrap() | Gets the wrap mode for texture’s V coordinate. |
getWWrap() | Gets the wrap mode for texture’s W coordinate. |
getWidth() | Gets the width of this texture. |
setMagnification(TextureFilter value) | Sets the filter mode for magnification. |
setMinification(TextureFilter value) | Sets the filter mode for minification. |
setMipmap(TextureFilter value) | Sets the filter mode for mipmap. |
setScale(Vector2 value) | Sets the scale of the UV coordinate. |
setScroll(Vector2 value) | Sets the scroll of the UV coordinate. |
setUWrap(WrapMode value) | Sets the wrap mode for texture’s U coordinate. |
setVWrap(WrapMode value) | Sets the wrap mode for texture’s V coordinate. |
setWWrap(WrapMode value) | Sets the wrap mode for texture’s W coordinate. |
getDepth()
public abstract int getDepth()
Gets the height of this texture, for none-3D texture it’s always 1.
Returns: int
getHeight()
public abstract int getHeight()
Gets the height of this texture.
Returns: int
getMagnification()
public abstract TextureFilter getMagnification()
Gets the filter mode for magnification.
Returns: TextureFilter
getMinification()
public abstract TextureFilter getMinification()
Gets the filter mode for minification.
Returns: TextureFilter
getMipmap()
public abstract TextureFilter getMipmap()
Gets the filter mode for mipmap.
Returns: TextureFilter
getScale()
public abstract Vector2 getScale()
Gets the scale of the UV coordinate.
Returns: Vector2
getScroll()
public abstract Vector2 getScroll()
Gets the scroll of the UV coordinate.
Returns: Vector2
getType()
public abstract TextureType getType()
Gets the type of this texture unit.
Returns: TextureType
getUWrap()
public abstract WrapMode getUWrap()
Gets the wrap mode for texture’s U coordinate.
Returns: WrapMode
getVWrap()
public abstract WrapMode getVWrap()
Gets the wrap mode for texture’s V coordinate.
Returns: WrapMode
getWWrap()
public abstract WrapMode getWWrap()
Gets the wrap mode for texture’s W coordinate.
Returns: WrapMode
getWidth()
public abstract int getWidth()
Gets the width of this texture.
Returns: int
setMagnification(TextureFilter value)
public abstract void setMagnification(TextureFilter value)
Sets the filter mode for magnification.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextureFilter | New value |
setMinification(TextureFilter value)
public abstract void setMinification(TextureFilter value)
Sets the filter mode for minification.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextureFilter | New value |
setMipmap(TextureFilter value)
public abstract void setMipmap(TextureFilter value)
Sets the filter mode for mipmap.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextureFilter | New value |
setScale(Vector2 value)
public abstract void setScale(Vector2 value)
Sets the scale of the UV coordinate.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Vector2 | New value |
setScroll(Vector2 value)
public abstract void setScroll(Vector2 value)
Sets the scroll of the UV coordinate.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Vector2 | New value |
setUWrap(WrapMode value)
public abstract void setUWrap(WrapMode value)
Sets the wrap mode for texture’s U coordinate.
Parameters:
Parameter | Type | Description |
---|---|---|
value | WrapMode | New value |
setVWrap(WrapMode value)
public abstract void setVWrap(WrapMode value)
Sets the wrap mode for texture’s V coordinate.
Parameters:
Parameter | Type | Description |
---|---|---|
value | WrapMode | New value |
setWWrap(WrapMode value)
public abstract void setWWrap(WrapMode value)
Sets the wrap mode for texture’s W coordinate.
Parameters:
Parameter | Type | Description |
---|---|---|
value | WrapMode | New value |