From 407446c286b4b7698b223913f7729073fe064d21 Mon Sep 17 00:00:00 2001 From: Bigfoot71 Date: Sat, 7 Dec 2024 13:24:03 +0100 Subject: [PATCH] put back 'rlTextureFilter' --- src/rlgl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/rlgl.h b/src/rlgl.h index e419821b1..a54bfdf83 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -474,6 +474,18 @@ typedef enum { RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA // 2 bpp } rlPixelFormat; +// Texture parameters: filter mode +// NOTE 1: Filtering considers mipmaps if available in the texture +// NOTE 2: Filter is accordingly set for minification and magnification +typedef enum { + RL_TEXTURE_FILTER_POINT = 0, // No filter, just pixel approximation + RL_TEXTURE_FILTER_BILINEAR, // Linear filtering + RL_TEXTURE_FILTER_TRILINEAR, // Trilinear filtering (linear with mipmaps) + RL_TEXTURE_FILTER_ANISOTROPIC_4X, // Anisotropic filtering 4x + RL_TEXTURE_FILTER_ANISOTROPIC_8X, // Anisotropic filtering 8x + RL_TEXTURE_FILTER_ANISOTROPIC_16X, // Anisotropic filtering 16x +} rlTextureFilter; + // Color blending modes (pre-defined) typedef enum { RL_BLEND_ALPHA = 0, // Blend textures considering alpha (default)