TextureSampling
final class TextureSampling
Package: dev.joid.lib.bridge.render.texture · Module: core · Source: TextureSampling.java
A filter, a wrap and a mipmap flag, one of the 12 shared samplings that a render bridge can cache.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
TextureSampling | of(TextureFilter filter, TextureWrap wrap, boolean mipmapped) factory | Returns the shared sampling of that filter, that wrap and that mipmap flag. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
List<TextureSampling> | values() static | Returns the 12 samplings, read-only, in the order of their index. |
boolean | isMipmapFiltered() | If true, the sampling reads mipmaps with a linear filter. |
int | getIndex() | Returns the index of the sampling, from 0 to 11, for a cache of samplers. |
TextureWrap | getWrap() | Returns the wrap. |
boolean | isMipmapped() | If true, the texture has mip levels that the draw may use; only a LINEAR filter reads them (isMipmapFiltered()), and a NEAREST sampling reads level 0 alone. |
TextureFilter | getFilter() | Returns the filter. |
Creation details
Section titled “Creation details”TextureSampling of(TextureFilter filter, TextureWrap wrap, boolean mipmapped) factory
Returns the shared sampling of that filter, that wrap and that mipmap flag.
Method details
Section titled “Method details”values
Section titled “values”List<TextureSampling> values() static
Returns the 12 samplings, read-only, in the order of their index.
isMipmapFiltered
Section titled “isMipmapFiltered”boolean isMipmapFiltered()
If true, the sampling reads mipmaps with a linear filter.
getIndex
Section titled “getIndex”int getIndex()
Returns the index of the sampling, from 0 to 11, for a cache of samplers.
getWrap
Section titled “getWrap”TextureWrap getWrap()
Returns the wrap.
isMipmapped
Section titled “isMipmapped”boolean isMipmapped()
If true, the texture has mip levels that the draw may use; only a LINEAR filter reads them (isMipmapFiltered()), and a NEAREST sampling reads level 0 alone.
getFilter
Section titled “getFilter”TextureFilter getFilter()
Returns the filter.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
