core.texture.texture_filter
Client
Enumeration of sampling filters that can be applied to an individual texture, overriding whatever draws it
Values
Constants are ordered from the shared default through crisp (nearest) to smooth (linear) sampling.
| Constant | Description |
|---|---|
core.texture.texture_filter.DEFAULT | No per-texture override — inherits whatever filter the drawing call defaults to |
core.texture.texture_filter.NEAREST | Point sampling — crisp, blocky edges, no blur at non-integer scales; ideal for pixel art |
core.texture.texture_filter.NEAREST_MIPMAP | Nearest sampling with mipmaps Requires the source to have mip levels — generate via core.texture.create's mipmaps parameter |
core.texture.texture_filter.NEAREST_MIPMAP_ANISOTROPIC | Nearest sampling with anisotropic mipmaps Requires the source to have mip levels — generate via core.texture.create's mipmaps parameter |
core.texture.texture_filter.LINEAR | Bilinear sampling — smooth, blurred edges at non-integer scales; the effective default before any override is set |
core.texture.texture_filter.LINEAR_MIPMAP | Linear sampling with mipmaps Requires the source to have mip levels — generate via core.texture.create's mipmaps parameter |
core.texture.texture_filter.LINEAR_MIPMAP_ANISOTROPIC | Linear sampling with anisotropic mipmaps Requires the source to have mip levels — generate via core.texture.create's mipmaps parameter |