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

MethodDescription
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 - the height of this texture, for none-3D texture it’s always 1.

getHeight()

public abstract int getHeight()

Gets the height of this texture.

Returns: int - the height of this texture.

getMagnification()

public abstract TextureFilter getMagnification()

Gets the filter mode for magnification.

Returns: TextureFilter - the filter mode for magnification.

getMinification()

public abstract TextureFilter getMinification()

Gets the filter mode for minification.

Returns: TextureFilter - the filter mode for minification.

getMipmap()

public abstract TextureFilter getMipmap()

Gets the filter mode for mipmap.

Returns: TextureFilter - the filter mode for mipmap.

getScale()

public abstract Vector2 getScale()

Gets the scale of the UV coordinate.

Returns: Vector2 - the scale of the UV coordinate.

getScroll()

public abstract Vector2 getScroll()

Gets the scroll of the UV coordinate.

Returns: Vector2 - the scroll of the UV coordinate.

getType()

public abstract TextureType getType()

Gets the type of this texture unit.

Returns: TextureType - the type of this texture unit.

getUWrap()

public abstract WrapMode getUWrap()

Gets the wrap mode for texture’s U coordinate.

Returns: WrapMode - the wrap mode for texture’s U coordinate.

getVWrap()

public abstract WrapMode getVWrap()

Gets the wrap mode for texture’s V coordinate.

Returns: WrapMode - the wrap mode for texture’s V coordinate.

getWWrap()

public abstract WrapMode getWWrap()

Gets the wrap mode for texture’s W coordinate.

Returns: WrapMode - the wrap mode for texture’s W coordinate.

getWidth()

public abstract int getWidth()

Gets the width of this texture.

Returns: int - the width of this texture.

setMagnification(TextureFilter value)

public abstract void setMagnification(TextureFilter value)

Sets the filter mode for magnification.

Parameters:

ParameterTypeDescription
valueTextureFilterNew value

setMinification(TextureFilter value)

public abstract void setMinification(TextureFilter value)

Sets the filter mode for minification.

Parameters:

ParameterTypeDescription
valueTextureFilterNew value

setMipmap(TextureFilter value)

public abstract void setMipmap(TextureFilter value)

Sets the filter mode for mipmap.

Parameters:

ParameterTypeDescription
valueTextureFilterNew value

setScale(Vector2 value)

public abstract void setScale(Vector2 value)

Sets the scale of the UV coordinate.

Parameters:

ParameterTypeDescription
valueVector2New value

setScroll(Vector2 value)

public abstract void setScroll(Vector2 value)

Sets the scroll of the UV coordinate.

Parameters:

ParameterTypeDescription
valueVector2New value

setUWrap(WrapMode value)

public abstract void setUWrap(WrapMode value)

Sets the wrap mode for texture’s U coordinate.

Parameters:

ParameterTypeDescription
valueWrapModeNew value

setVWrap(WrapMode value)

public abstract void setVWrap(WrapMode value)

Sets the wrap mode for texture’s V coordinate.

Parameters:

ParameterTypeDescription
valueWrapModeNew value

setWWrap(WrapMode value)

public abstract void setWWrap(WrapMode value)

Sets the wrap mode for texture’s W coordinate.

Parameters:

ParameterTypeDescription
valueWrapModeNew value