Package com.aspose.threed
Interface ITextureUnit
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Subinterfaces:
ITexture1D
,ITexture2D
,ITextureCubemap
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 theTexture
only represents a reference to an external file. More details can be found https://en.wikipedia.org/wiki/Texture_mapping_unit
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getType
TextureType getType()
Gets the type of this texture unit.
-
getWidth
int getWidth()
Gets the width of this texture.
-
getHeight
int getHeight()
Gets the height of this texture.
-
getDepth
int getDepth()
Gets the height of this texture, for none-3D texture it's always 1.
-
getUWrap
WrapMode getUWrap()
Gets the wrap mode for texture's U coordinate.
-
setUWrap
void setUWrap(WrapMode value)
Sets the wrap mode for texture's U coordinate.- Parameters:
value
- New value
-
getVWrap
WrapMode getVWrap()
Gets the wrap mode for texture's V coordinate.
-
setVWrap
void setVWrap(WrapMode value)
Sets the wrap mode for texture's V coordinate.- Parameters:
value
- New value
-
getWWrap
WrapMode getWWrap()
Gets the wrap mode for texture's W coordinate.
-
setWWrap
void setWWrap(WrapMode value)
Sets the wrap mode for texture's W coordinate.- Parameters:
value
- New value
-
getMinification
TextureFilter getMinification()
Gets the filter mode for minification.
-
setMinification
void setMinification(TextureFilter value)
Sets the filter mode for minification.- Parameters:
value
- New value
-
getMagnification
TextureFilter getMagnification()
Gets the filter mode for magnification.
-
setMagnification
void setMagnification(TextureFilter value)
Sets the filter mode for magnification.- Parameters:
value
- New value
-
getMipmap
TextureFilter getMipmap()
Gets the filter mode for mipmap.
-
setMipmap
void setMipmap(TextureFilter value)
Sets the filter mode for mipmap.- Parameters:
value
- New value
-
getScroll
Vector2 getScroll()
Gets the scroll of the UV coordinate.
-
setScroll
void setScroll(Vector2 value)
Sets the scroll of the UV coordinate.- Parameters:
value
- New value
-
getScale
Vector2 getScale()
Gets the scale of the UV coordinate.
-
setScale
void setScale(Vector2 value)
Sets the scale of the UV coordinate.- Parameters:
value
- New value
-
-