Skip to content

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.

ReturnsSignatureSummary
TextureSamplingof(TextureFilter filter, TextureWrap wrap, boolean mipmapped) factoryReturns the shared sampling of that filter, that wrap and that mipmap flag.

ReturnsSignatureSummary
List<TextureSampling>values() staticReturns the 12 samplings, read-only, in the order of their index.
booleanisMipmapFiltered()If true, the sampling reads mipmaps with a linear filter.
intgetIndex()Returns the index of the sampling, from 0 to 11, for a cache of samplers.
TextureWrapgetWrap()Returns the wrap.
booleanisMipmapped()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.
TextureFiltergetFilter()Returns the filter.

TextureSampling of(TextureFilter filter, TextureWrap wrap, boolean mipmapped) factory

Returns the shared sampling of that filter, that wrap and that mipmap flag.

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.


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

Report a problem with this page