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

メソッド

メソッド説明
getDepth()このテクスチャの高さを取得します。3D でないテクスチャの場合は常に 1 です。
getHeight()このテクスチャの高さを取得します。
getMagnification()拡大時のフィルターモードを取得します。
getMinification()縮小時のフィルターモードを取得します。
getMipmap()ミップマップのフィルターモードを取得します。
getScale()UV 座標のスケールを取得します。
getScroll()UV 座標のスクロールを取得します。
getType()このテクスチャユニットのタイプを取得します。
getUWrap()テクスチャの U 座標のラップモードを取得します。
getVWrap()テクスチャの V 座標のラップモードを取得します。
getWWrap()テクスチャの W 座標のラップモードを取得します。
getWidth()このテクスチャの幅を取得します。
setMagnification(TextureFilter value)拡大時のフィルターモードを設定します。
setMinification(TextureFilter value)縮小時のフィルターモードを設定します。
setMipmap(TextureFilter value)ミップマップのフィルターモードを設定します。
setScale(Vector2 value)UV 座標のスケールを設定します。
setScroll(Vector2 value)UV 座標のスクロールを設定します。
setUWrap(WrapMode value)テクスチャの U 座標のラップモードを設定します。
setVWrap(WrapMode value)テクスチャの V 座標のラップモードを設定します。
setWWrap(WrapMode value)テクスチャの W 座標のラップモードを設定します。

getDepth()

public abstract int getDepth()

このテクスチャの高さを取得します。3D でないテクスチャの場合は常に 1 です。

Returns: int - このテクスチャの高さ。3D でないテクスチャの場合は常に 1 です。

getHeight()

public abstract int getHeight()

このテクスチャの高さを取得します。

Returns: int - このテクスチャの高さ。

getMagnification()

public abstract TextureFilter getMagnification()

拡大時のフィルターモードを取得します。

Returns: TextureFilter - the filter mode for magnification.

getMinification()

public abstract TextureFilter getMinification()

縮小時のフィルターモードを取得します。

Returns: TextureFilter - the filter mode for minification.

getMipmap()

public abstract TextureFilter getMipmap()

ミップマップのフィルターモードを取得します。

Returns: TextureFilter - the filter mode for mipmap.

getScale()

public abstract Vector2 getScale()

UV 座標のスケールを取得します。

Returns: Vector2 - the scale of the UV coordinate.

getScroll()

public abstract Vector2 getScroll()

UV 座標のスクロールを取得します。

Returns: Vector2 - the scroll of the UV coordinate.

getType()

public abstract TextureType getType()

このテクスチャユニットのタイプを取得します。

Returns: TextureType - the type of this texture unit.

getUWrap()

public abstract WrapMode getUWrap()

テクスチャの U 座標のラップモードを取得します。

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

getVWrap()

public abstract WrapMode getVWrap()

テクスチャの V 座標のラップモードを取得します。

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

getWWrap()

public abstract WrapMode getWWrap()

テクスチャの W 座標のラップモードを取得します。

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

getWidth()

public abstract int getWidth()

このテクスチャの幅を取得します。

Returns: int - このテクスチャの幅。

setMagnification(TextureFilter value)

public abstract void setMagnification(TextureFilter value)

拡大時のフィルターモードを設定します。

Parameters:

パラメーター説明
valueTextureFilter新しい値

setMinification(TextureFilter value)

public abstract void setMinification(TextureFilter value)

縮小時のフィルターモードを設定します。

Parameters:

パラメーター説明
valueTextureFilter新しい値

setMipmap(TextureFilter value)

public abstract void setMipmap(TextureFilter value)

ミップマップのフィルターモードを設定します。

Parameters:

パラメーター説明
valueTextureFilter新しい値

setScale(Vector2 value)

public abstract void setScale(Vector2 value)

UV 座標のスケールを設定します。

Parameters:

パラメーター説明
valueVector2新しい値

setScroll(Vector2 value)

public abstract void setScroll(Vector2 value)

UV 座標のスクロールを設定します。

Parameters:

パラメーター説明
valueVector2新しい値

setUWrap(WrapMode value)

public abstract void setUWrap(WrapMode value)

テクスチャの U 座標のラップモードを設定します。

Parameters:

パラメーター説明
valueWrapMode新しい値

setVWrap(WrapMode value)

public abstract void setVWrap(WrapMode value)

テクスチャの V 座標のラップモードを設定します。

Parameters:

パラメーター説明
valueWrapMode新しい値

setWWrap(WrapMode value)

public abstract void setWWrap(WrapMode value)

テクスチャの W 座標のラップモードを設定します。

Parameters:

パラメーター説明
valueWrapMode新しい値